From a745636cb546ebd81c1a2d446c572b91225117dc Mon Sep 17 00:00:00 2001 From: Vinay Gera Date: Tue, 5 Oct 2021 03:43:12 +0530 Subject: [PATCH] update --- .../artifacts/ArtifactsClientBuilder.java | 416 +++++++------- .../artifacts/BigDataPoolsAsyncClient.java | 4 +- .../synapse/artifacts/BigDataPoolsClient.java | 4 +- .../artifacts/DataFlowAsyncClient.java | 51 +- .../synapse/artifacts/DataFlowClient.java | 26 +- .../DataFlowDebugSessionAsyncClient.java | 48 +- .../artifacts/DataFlowDebugSessionClient.java | 22 +- .../synapse/artifacts/DatasetAsyncClient.java | 51 +- .../synapse/artifacts/DatasetClient.java | 26 +- .../artifacts/KqlScriptAsyncClient.java | 147 +++++ .../synapse/artifacts/KqlScriptClient.java | 150 +++++ .../artifacts/KqlScriptsAsyncClient.java | 40 ++ ...tatusClient.java => KqlScriptsClient.java} | 35 +- .../synapse/artifacts/LibraryAsyncClient.java | 57 +- .../synapse/artifacts/LibraryClient.java | 32 +- .../artifacts/LinkedServiceAsyncClient.java | 51 +- .../artifacts/LinkedServiceClient.java | 26 +- .../artifacts/NotebookAsyncClient.java | 79 +-- .../synapse/artifacts/NotebookClient.java | 30 +- .../artifacts/OperationResultAsyncClient.java | 56 -- .../artifacts/OperationResultClient.java | 56 -- .../artifacts/OperationStatusAsyncClient.java | 56 -- .../artifacts/PipelineAsyncClient.java | 57 +- .../synapse/artifacts/PipelineClient.java | 32 +- .../artifacts/PipelineRunAsyncClient.java | 20 +- .../synapse/artifacts/PipelineRunClient.java | 20 +- .../SparkConfigurationAsyncClient.java | 28 - .../SparkJobDefinitionAsyncClient.java | 60 +- .../artifacts/SparkJobDefinitionClient.java | 34 +- .../artifacts/SqlPoolsAsyncClient.java | 4 +- .../synapse/artifacts/SqlPoolsClient.java | 4 +- .../artifacts/SqlScriptAsyncClient.java | 51 +- .../synapse/artifacts/SqlScriptClient.java | 26 +- .../synapse/artifacts/TriggerAsyncClient.java | 67 +-- .../synapse/artifacts/TriggerClient.java | 42 +- .../artifacts/TriggerRunAsyncClient.java | 14 +- .../synapse/artifacts/TriggerRunClient.java | 14 +- .../implementation/ArtifactsClientImpl.java | 284 +++++----- .../implementation/BigDataPoolsImpl.java | 31 +- .../DataFlowDebugSessionsImpl.java | 115 ++-- .../implementation/DataFlowsImpl.java | 137 +++-- .../implementation/DatasetsImpl.java | 138 +++-- .../IntegrationRuntimesImpl.java | 20 +- .../implementation/KqlScriptsImpl.java | 225 ++++++++ .../KqlScriptsOperationsImpl.java | 520 ++++++++++++++++++ .../implementation/LibrariesImpl.java | 163 +++--- .../implementation/LinkedServicesImpl.java | 138 +++-- .../NotebookOperationResultsImpl.java | 8 +- .../implementation/NotebooksImpl.java | 164 +++--- .../implementation/OperationResultsImpl.java | 153 ------ .../implementation/OperationStatusImpl.java | 152 ----- .../implementation/PipelineRunsImpl.java | 104 ++-- .../implementation/PipelinesImpl.java | 161 +++--- .../SparkConfigurationsImpl.java | 45 +- .../SparkJobDefinitionsImpl.java | 179 +++--- .../implementation/SqlPoolsImpl.java | 27 +- .../implementation/SqlScriptsImpl.java | 140 +++-- .../implementation/TriggerRunsImpl.java | 77 ++- .../implementation/TriggersImpl.java | 220 ++++---- .../WorkspaceGitRepoManagementsImpl.java | 11 +- .../implementation/WorkspacesImpl.java | 7 +- .../AmazonRdsForOracleLinkedService.java | 103 ++++ .../AmazonRdsForOraclePartitionOption.java | 38 ++ .../AmazonRdsForOraclePartitionSettings.java | 127 +++++ .../models/AmazonRdsForOracleSource.java | 162 ++++++ .../AmazonRdsForOracleTableDataset.java | 76 +++ .../AmazonRdsForSqlServerLinkedService.java | 132 +++++ .../models/AmazonRdsForSqlServerSource.java | 185 +++++++ .../AmazonRdsForSqlServerTableDataset.java | 76 +++ .../artifacts/models/AutoPauseProperties.java | 2 +- .../artifacts/models/AutoScaleProperties.java | 2 +- .../models/AzureBlobStorageLinkedService.java | 32 ++ .../AzureDataExplorerLinkedService.java | 6 +- .../artifacts/models/AzureEntityResource.java | 2 +- .../models/BigDataPoolResourceInfo.java | 2 +- .../BigDataPoolResourceInfoListResult.java | 2 +- .../models/CloudErrorAutoGenerated.java | 119 ++++ .../CloudErrorAutoGeneratedException.java | 37 ++ ...CommonDataServiceForAppsLinkedService.java | 12 +- .../artifacts/models/CompressionCodec.java | 6 + .../synapse/artifacts/models/CopySource.java | 1 + .../CreateDataFlowDebugSessionRequest.java | 146 ++--- .../models/DataFlowDebugCommandPayload.java | 117 ++++ .../models/DataFlowDebugCommandRequest.java | 58 +- .../models/DataFlowDebugCommandType.java | 37 ++ .../synapse/artifacts/models/Dataset.java | 2 + .../models/DatasetDeflateCompression.java | 7 +- .../models/DatasetGZipCompression.java | 7 +- .../models/DatasetTarGZipCompression.java | 7 +- .../models/DatasetZipDeflateCompression.java | 7 +- .../models/DelimitedTextDataset.java | 15 +- .../models/DynamicsCrmLinkedService.java | 12 +- .../models/DynamicsLinkedService.java | 19 +- ...ynamicsServicePrincipalCredentialType.java | 37 -- .../artifacts/models/ErrorContract.java | 2 +- .../artifacts/models/ErrorResponse.java | 4 +- .../IntegrationRuntimeDataFlowProperties.java | 30 + .../IntegrationRuntimeDebugResource.java | 38 ++ .../synapse/artifacts/models/JsonFormat.java | 6 +- .../artifacts/models/JsonWriteSettings.java | 6 +- .../synapse/artifacts/models/KqlScript.java | 38 ++ .../artifacts/models/KqlScriptContent.java | 90 +++ .../KqlScriptContentCurrentConnection.java | 64 +++ .../models/KqlScriptContentMetadata.java | 38 ++ .../artifacts/models/KqlScriptResource.java | 116 ++++ .../KqlScriptsResourceCollectionResponse.java | 65 +++ .../synapse/artifacts/models/LibraryInfo.java | 18 +- .../artifacts/models/LibraryRequirements.java | 2 +- .../artifacts/models/LinkedService.java | 2 + .../synapse/artifacts/models/LivyStates.java | 61 ++ .../ManagedVirtualNetworkReference.java | 2 +- .../synapse/artifacts/models/Notebook.java | 29 + .../artifacts/models/NotebookFolder.java | 38 ++ .../artifacts/models/OperationResult.java | 6 +- .../synapse/artifacts/models/OrcDataset.java | 15 +- .../artifacts/models/ProxyResource.java | 5 +- .../synapse/artifacts/models/Resource.java | 2 +- .../artifacts/models/ScriptAction.java | 6 +- .../synapse/artifacts/models/Sku.java | 2 +- .../artifacts/models/SparkBatchJob.java | 6 +- .../artifacts/models/SparkConfiguration.java | 28 +- .../artifacts/models/SparkJobDefinition.java | 29 + .../models/SparkJobDefinitionFolder.java | 41 ++ .../artifacts/models/SqlConnection.java | 56 +- .../synapse/artifacts/models/SqlPool.java | 2 +- .../models/SqlPoolInfoListResult.java | 2 +- .../synapse/artifacts/models/SqlScript.java | 29 + .../artifacts/models/SqlScriptContent.java | 28 +- .../artifacts/models/SqlScriptFolder.java | 38 ++ .../artifacts/models/TabularSource.java | 1 + .../artifacts/models/TrackedResource.java | 4 +- .../artifacts/models/WorkspaceIdentity.java | 2 +- .../artifacts/ArtifactsClientTestBase.java | 6 +- .../session-records/getNoteBook.json | 157 ++++-- .../swagger/README.md | 24 +- 135 files changed, 5049 insertions(+), 2837 deletions(-) create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptAsyncClient.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptClient.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsAsyncClient.java rename sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/{OperationStatusClient.java => KqlScriptsClient.java} (58%) delete mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultAsyncClient.java delete mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultClient.java delete mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusAsyncClient.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsImpl.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsOperationsImpl.java delete mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationResultsImpl.java delete mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationStatusImpl.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleLinkedService.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionOption.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionSettings.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleSource.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleTableDataset.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerLinkedService.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerSource.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerTableDataset.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGenerated.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGeneratedException.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandPayload.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandType.java delete mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsServicePrincipalCredentialType.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDebugResource.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScript.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContent.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentCurrentConnection.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentMetadata.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptResource.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptsResourceCollectionResponse.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LivyStates.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/NotebookFolder.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinitionFolder.java create mode 100644 sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptFolder.java diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/ArtifactsClientBuilder.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/ArtifactsClientBuilder.java index 9fbd06ca411c4..38764833db162 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/ArtifactsClientBuilder.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/ArtifactsClientBuilder.java @@ -8,8 +8,10 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.AddHeadersPolicy; import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.HttpLogOptions; @@ -18,7 +20,9 @@ import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.ClientOptions; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; import java.util.ArrayList; @@ -29,47 +33,47 @@ /** A builder for creating a new instance of the ArtifactsClient type. */ @ServiceClientBuilder( serviceClients = { - LinkedServiceClient.class, - DatasetClient.class, - PipelineClient.class, - PipelineRunClient.class, - TriggerClient.class, - TriggerRunClient.class, - DataFlowClient.class, - DataFlowDebugSessionClient.class, - SqlScriptClient.class, - SparkJobDefinitionClient.class, - NotebookClient.class, - NotebookOperationResultClient.class, + KqlScriptsClient.class, + KqlScriptClient.class, SparkConfigurationClient.class, BigDataPoolsClient.class, + DataFlowClient.class, + DataFlowDebugSessionClient.class, + DatasetClient.class, WorkspaceGitRepoManagementClient.class, IntegrationRuntimesClient.class, LibraryClient.class, - OperationResultClient.class, - OperationStatusClient.class, + LinkedServiceClient.class, + NotebookClient.class, + NotebookOperationResultClient.class, + PipelineClient.class, + PipelineRunClient.class, + SparkJobDefinitionClient.class, SqlPoolsClient.class, + SqlScriptClient.class, + TriggerClient.class, + TriggerRunClient.class, WorkspaceClient.class, - LinkedServiceAsyncClient.class, - DatasetAsyncClient.class, - PipelineAsyncClient.class, - PipelineRunAsyncClient.class, - TriggerAsyncClient.class, - TriggerRunAsyncClient.class, - DataFlowAsyncClient.class, - DataFlowDebugSessionAsyncClient.class, - SqlScriptAsyncClient.class, - SparkJobDefinitionAsyncClient.class, - NotebookAsyncClient.class, - NotebookOperationResultAsyncClient.class, + KqlScriptsAsyncClient.class, + KqlScriptAsyncClient.class, SparkConfigurationAsyncClient.class, BigDataPoolsAsyncClient.class, + DataFlowAsyncClient.class, + DataFlowDebugSessionAsyncClient.class, + DatasetAsyncClient.class, WorkspaceGitRepoManagementAsyncClient.class, IntegrationRuntimesAsyncClient.class, LibraryAsyncClient.class, - OperationResultAsyncClient.class, - OperationStatusAsyncClient.class, + LinkedServiceAsyncClient.class, + NotebookAsyncClient.class, + NotebookOperationResultAsyncClient.class, + PipelineAsyncClient.class, + PipelineRunAsyncClient.class, + SparkJobDefinitionAsyncClient.class, SqlPoolsAsyncClient.class, + SqlScriptAsyncClient.class, + TriggerAsyncClient.class, + TriggerRunAsyncClient.class, WorkspaceAsyncClient.class }) public final class ArtifactsClientBuilder { @@ -103,22 +107,6 @@ public ArtifactsClientBuilder endpoint(String endpoint) { return this; } - /* - * Api Version - */ - private String apiVersion; - - /** - * Sets Api Version. - * - * @param apiVersion the apiVersion value. - * @return the ArtifactsClientBuilder. - */ - public ArtifactsClientBuilder apiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return this; - } - /* * The HTTP pipeline to send requests through */ @@ -238,6 +226,23 @@ public ArtifactsClientBuilder retryPolicy(RetryPolicy retryPolicy) { */ private final List pipelinePolicies; + /* + * The client options such as application ID and custom headers to set on a + * request. + */ + private ClientOptions clientOptions; + + /** + * Sets The client options such as application ID and custom headers to set on a request. + * + * @param clientOptions the clientOptions value. + * @return the ArtifactsClientBuilder. + */ + public ArtifactsClientBuilder clientOptions(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + return this; + } + /** * Adds a custom Http pipeline policy. * @@ -255,16 +260,13 @@ public ArtifactsClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { * @return an instance of ArtifactsClientImpl. */ private ArtifactsClientImpl buildInnerClient() { - if (apiVersion == null) { - this.apiVersion = "2021-06-01-preview"; - } if (pipeline == null) { this.pipeline = createHttpPipeline(); } if (serializerAdapter == null) { this.serializerAdapter = JacksonAdapter.createDefaultSerializerAdapter(); } - ArtifactsClientImpl client = new ArtifactsClientImpl(pipeline, serializerAdapter, endpoint, apiVersion); + ArtifactsClientImpl client = new ArtifactsClientImpl(pipeline, serializerAdapter, endpoint); return client; } @@ -274,11 +276,19 @@ private HttpPipeline createHttpPipeline() { if (httpLogOptions == null) { httpLogOptions = new HttpLogOptions(); } + if (clientOptions == null) { + clientOptions = new ClientOptions(); + } List policies = new ArrayList<>(); String clientName = properties.getOrDefault(SDK_NAME, "UnknownName"); String clientVersion = properties.getOrDefault(SDK_VERSION, "UnknownVersion"); - policies.add( - new UserAgentPolicy(httpLogOptions.getApplicationId(), clientName, clientVersion, buildConfiguration)); + String applicationId = CoreUtils.getApplicationId(clientOptions, httpLogOptions); + policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration)); + HttpHeaders headers = new HttpHeaders(); + clientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue())); + if (headers.getSize() > 0) { + policies.add(new AddHeadersPolicy(headers)); + } HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy == null ? new RetryPolicy() : retryPolicy); policies.add(new CookiePolicy()); @@ -297,93 +307,102 @@ private HttpPipeline createHttpPipeline() { } /** - * Builds an instance of LinkedServiceAsyncClient async client. + * Builds an instance of KqlScriptsAsyncClient async client. * - * @return an instance of LinkedServiceAsyncClient. + * @return an instance of KqlScriptsAsyncClient. */ - public LinkedServiceAsyncClient buildLinkedServiceAsyncClient() { - return new LinkedServiceAsyncClient(buildInnerClient().getLinkedServices()); + public KqlScriptsAsyncClient buildKqlScriptsAsyncClient() { + return new KqlScriptsAsyncClient(buildInnerClient().getKqlScripts()); } /** - * Builds an instance of DatasetAsyncClient async client. + * Builds an instance of KqlScriptAsyncClient async client. * - * @return an instance of DatasetAsyncClient. + * @return an instance of KqlScriptAsyncClient. */ - public DatasetAsyncClient buildDatasetAsyncClient() { - return new DatasetAsyncClient(buildInnerClient().getDatasets()); + public KqlScriptAsyncClient buildKqlScriptAsyncClient() { + return new KqlScriptAsyncClient(buildInnerClient().getKqlScriptsOperations()); } /** - * Builds an instance of PipelineAsyncClient async client. + * Builds an instance of SparkConfigurationAsyncClient async client. * - * @return an instance of PipelineAsyncClient. + * @return an instance of SparkConfigurationAsyncClient. */ - public PipelineAsyncClient buildPipelineAsyncClient() { - return new PipelineAsyncClient(buildInnerClient().getPipelines()); + public SparkConfigurationAsyncClient buildSparkConfigurationAsyncClient() { + return new SparkConfigurationAsyncClient(buildInnerClient().getSparkConfigurations()); } /** - * Builds an instance of PipelineRunAsyncClient async client. + * Builds an instance of BigDataPoolsAsyncClient async client. * - * @return an instance of PipelineRunAsyncClient. + * @return an instance of BigDataPoolsAsyncClient. */ - public PipelineRunAsyncClient buildPipelineRunAsyncClient() { - return new PipelineRunAsyncClient(buildInnerClient().getPipelineRuns()); + public BigDataPoolsAsyncClient buildBigDataPoolsAsyncClient() { + return new BigDataPoolsAsyncClient(buildInnerClient().getBigDataPools()); } /** - * Builds an instance of TriggerAsyncClient async client. + * Builds an instance of DataFlowAsyncClient async client. * - * @return an instance of TriggerAsyncClient. + * @return an instance of DataFlowAsyncClient. */ - public TriggerAsyncClient buildTriggerAsyncClient() { - return new TriggerAsyncClient(buildInnerClient().getTriggers()); + public DataFlowAsyncClient buildDataFlowAsyncClient() { + return new DataFlowAsyncClient(buildInnerClient().getDataFlows()); } /** - * Builds an instance of TriggerRunAsyncClient async client. + * Builds an instance of DataFlowDebugSessionAsyncClient async client. * - * @return an instance of TriggerRunAsyncClient. + * @return an instance of DataFlowDebugSessionAsyncClient. */ - public TriggerRunAsyncClient buildTriggerRunAsyncClient() { - return new TriggerRunAsyncClient(buildInnerClient().getTriggerRuns()); + public DataFlowDebugSessionAsyncClient buildDataFlowDebugSessionAsyncClient() { + return new DataFlowDebugSessionAsyncClient(buildInnerClient().getDataFlowDebugSessions()); } /** - * Builds an instance of DataFlowAsyncClient async client. + * Builds an instance of DatasetAsyncClient async client. * - * @return an instance of DataFlowAsyncClient. + * @return an instance of DatasetAsyncClient. */ - public DataFlowAsyncClient buildDataFlowAsyncClient() { - return new DataFlowAsyncClient(buildInnerClient().getDataFlows()); + public DatasetAsyncClient buildDatasetAsyncClient() { + return new DatasetAsyncClient(buildInnerClient().getDatasets()); } /** - * Builds an instance of DataFlowDebugSessionAsyncClient async client. + * Builds an instance of WorkspaceGitRepoManagementAsyncClient async client. * - * @return an instance of DataFlowDebugSessionAsyncClient. + * @return an instance of WorkspaceGitRepoManagementAsyncClient. */ - public DataFlowDebugSessionAsyncClient buildDataFlowDebugSessionAsyncClient() { - return new DataFlowDebugSessionAsyncClient(buildInnerClient().getDataFlowDebugSessions()); + public WorkspaceGitRepoManagementAsyncClient buildWorkspaceGitRepoManagementAsyncClient() { + return new WorkspaceGitRepoManagementAsyncClient(buildInnerClient().getWorkspaceGitRepoManagements()); } /** - * Builds an instance of SqlScriptAsyncClient async client. + * Builds an instance of IntegrationRuntimesAsyncClient async client. * - * @return an instance of SqlScriptAsyncClient. + * @return an instance of IntegrationRuntimesAsyncClient. */ - public SqlScriptAsyncClient buildSqlScriptAsyncClient() { - return new SqlScriptAsyncClient(buildInnerClient().getSqlScripts()); + public IntegrationRuntimesAsyncClient buildIntegrationRuntimesAsyncClient() { + return new IntegrationRuntimesAsyncClient(buildInnerClient().getIntegrationRuntimes()); } /** - * Builds an instance of SparkJobDefinitionAsyncClient async client. + * Builds an instance of LibraryAsyncClient async client. * - * @return an instance of SparkJobDefinitionAsyncClient. + * @return an instance of LibraryAsyncClient. */ - public SparkJobDefinitionAsyncClient buildSparkJobDefinitionAsyncClient() { - return new SparkJobDefinitionAsyncClient(buildInnerClient().getSparkJobDefinitions()); + public LibraryAsyncClient buildLibraryAsyncClient() { + return new LibraryAsyncClient(buildInnerClient().getLibraries()); + } + + /** + * Builds an instance of LinkedServiceAsyncClient async client. + * + * @return an instance of LinkedServiceAsyncClient. + */ + public LinkedServiceAsyncClient buildLinkedServiceAsyncClient() { + return new LinkedServiceAsyncClient(buildInnerClient().getLinkedServices()); } /** @@ -405,174 +424,174 @@ public NotebookOperationResultAsyncClient buildNotebookOperationResultAsyncClien } /** - * Builds an instance of SparkConfigurationAsyncClient async client. + * Builds an instance of PipelineAsyncClient async client. * - * @return an instance of SparkConfigurationAsyncClient. + * @return an instance of PipelineAsyncClient. */ - public SparkConfigurationAsyncClient buildSparkConfigurationAsyncClient() { - return new SparkConfigurationAsyncClient(buildInnerClient().getSparkConfigurations()); + public PipelineAsyncClient buildPipelineAsyncClient() { + return new PipelineAsyncClient(buildInnerClient().getPipelines()); } /** - * Builds an instance of BigDataPoolsAsyncClient async client. + * Builds an instance of PipelineRunAsyncClient async client. * - * @return an instance of BigDataPoolsAsyncClient. + * @return an instance of PipelineRunAsyncClient. */ - public BigDataPoolsAsyncClient buildBigDataPoolsAsyncClient() { - return new BigDataPoolsAsyncClient(buildInnerClient().getBigDataPools()); + public PipelineRunAsyncClient buildPipelineRunAsyncClient() { + return new PipelineRunAsyncClient(buildInnerClient().getPipelineRuns()); } /** - * Builds an instance of WorkspaceGitRepoManagementAsyncClient async client. + * Builds an instance of SparkJobDefinitionAsyncClient async client. * - * @return an instance of WorkspaceGitRepoManagementAsyncClient. + * @return an instance of SparkJobDefinitionAsyncClient. */ - public WorkspaceGitRepoManagementAsyncClient buildWorkspaceGitRepoManagementAsyncClient() { - return new WorkspaceGitRepoManagementAsyncClient(buildInnerClient().getWorkspaceGitRepoManagements()); + public SparkJobDefinitionAsyncClient buildSparkJobDefinitionAsyncClient() { + return new SparkJobDefinitionAsyncClient(buildInnerClient().getSparkJobDefinitions()); } /** - * Builds an instance of IntegrationRuntimesAsyncClient async client. + * Builds an instance of SqlPoolsAsyncClient async client. * - * @return an instance of IntegrationRuntimesAsyncClient. + * @return an instance of SqlPoolsAsyncClient. */ - public IntegrationRuntimesAsyncClient buildIntegrationRuntimesAsyncClient() { - return new IntegrationRuntimesAsyncClient(buildInnerClient().getIntegrationRuntimes()); + public SqlPoolsAsyncClient buildSqlPoolsAsyncClient() { + return new SqlPoolsAsyncClient(buildInnerClient().getSqlPools()); } /** - * Builds an instance of LibraryAsyncClient async client. + * Builds an instance of SqlScriptAsyncClient async client. * - * @return an instance of LibraryAsyncClient. + * @return an instance of SqlScriptAsyncClient. */ - public LibraryAsyncClient buildLibraryAsyncClient() { - return new LibraryAsyncClient(buildInnerClient().getLibraries()); + public SqlScriptAsyncClient buildSqlScriptAsyncClient() { + return new SqlScriptAsyncClient(buildInnerClient().getSqlScripts()); } /** - * Builds an instance of OperationResultAsyncClient async client. + * Builds an instance of TriggerAsyncClient async client. * - * @return an instance of OperationResultAsyncClient. + * @return an instance of TriggerAsyncClient. */ - public OperationResultAsyncClient buildOperationResultAsyncClient() { - return new OperationResultAsyncClient(buildInnerClient().getOperationResults()); + public TriggerAsyncClient buildTriggerAsyncClient() { + return new TriggerAsyncClient(buildInnerClient().getTriggers()); } /** - * Builds an instance of OperationStatusAsyncClient async client. + * Builds an instance of TriggerRunAsyncClient async client. * - * @return an instance of OperationStatusAsyncClient. + * @return an instance of TriggerRunAsyncClient. */ - public OperationStatusAsyncClient buildOperationStatusAsyncClient() { - return new OperationStatusAsyncClient(buildInnerClient().getOperationStatus()); + public TriggerRunAsyncClient buildTriggerRunAsyncClient() { + return new TriggerRunAsyncClient(buildInnerClient().getTriggerRuns()); } /** - * Builds an instance of SqlPoolsAsyncClient async client. + * Builds an instance of WorkspaceAsyncClient async client. * - * @return an instance of SqlPoolsAsyncClient. + * @return an instance of WorkspaceAsyncClient. */ - public SqlPoolsAsyncClient buildSqlPoolsAsyncClient() { - return new SqlPoolsAsyncClient(buildInnerClient().getSqlPools()); + public WorkspaceAsyncClient buildWorkspaceAsyncClient() { + return new WorkspaceAsyncClient(buildInnerClient().getWorkspaces()); } /** - * Builds an instance of WorkspaceAsyncClient async client. + * Builds an instance of KqlScriptsClient sync client. * - * @return an instance of WorkspaceAsyncClient. + * @return an instance of KqlScriptsClient. */ - public WorkspaceAsyncClient buildWorkspaceAsyncClient() { - return new WorkspaceAsyncClient(buildInnerClient().getWorkspaces()); + public KqlScriptsClient buildKqlScriptsClient() { + return new KqlScriptsClient(buildInnerClient().getKqlScripts()); } /** - * Builds an instance of LinkedServiceClient sync client. + * Builds an instance of KqlScriptClient sync client. * - * @return an instance of LinkedServiceClient. + * @return an instance of KqlScriptClient. */ - public LinkedServiceClient buildLinkedServiceClient() { - return new LinkedServiceClient(buildInnerClient().getLinkedServices()); + public KqlScriptClient buildKqlScriptClient() { + return new KqlScriptClient(buildInnerClient().getKqlScriptsOperations()); } /** - * Builds an instance of DatasetClient sync client. + * Builds an instance of SparkConfigurationClient sync client. * - * @return an instance of DatasetClient. + * @return an instance of SparkConfigurationClient. */ - public DatasetClient buildDatasetClient() { - return new DatasetClient(buildInnerClient().getDatasets()); + public SparkConfigurationClient buildSparkConfigurationClient() { + return new SparkConfigurationClient(buildInnerClient().getSparkConfigurations()); } /** - * Builds an instance of PipelineClient sync client. + * Builds an instance of BigDataPoolsClient sync client. * - * @return an instance of PipelineClient. + * @return an instance of BigDataPoolsClient. */ - public PipelineClient buildPipelineClient() { - return new PipelineClient(buildInnerClient().getPipelines()); + public BigDataPoolsClient buildBigDataPoolsClient() { + return new BigDataPoolsClient(buildInnerClient().getBigDataPools()); } /** - * Builds an instance of PipelineRunClient sync client. + * Builds an instance of DataFlowClient sync client. * - * @return an instance of PipelineRunClient. + * @return an instance of DataFlowClient. */ - public PipelineRunClient buildPipelineRunClient() { - return new PipelineRunClient(buildInnerClient().getPipelineRuns()); + public DataFlowClient buildDataFlowClient() { + return new DataFlowClient(buildInnerClient().getDataFlows()); } /** - * Builds an instance of TriggerClient sync client. + * Builds an instance of DataFlowDebugSessionClient sync client. * - * @return an instance of TriggerClient. + * @return an instance of DataFlowDebugSessionClient. */ - public TriggerClient buildTriggerClient() { - return new TriggerClient(buildInnerClient().getTriggers()); + public DataFlowDebugSessionClient buildDataFlowDebugSessionClient() { + return new DataFlowDebugSessionClient(buildInnerClient().getDataFlowDebugSessions()); } /** - * Builds an instance of TriggerRunClient sync client. + * Builds an instance of DatasetClient sync client. * - * @return an instance of TriggerRunClient. + * @return an instance of DatasetClient. */ - public TriggerRunClient buildTriggerRunClient() { - return new TriggerRunClient(buildInnerClient().getTriggerRuns()); + public DatasetClient buildDatasetClient() { + return new DatasetClient(buildInnerClient().getDatasets()); } /** - * Builds an instance of DataFlowClient sync client. + * Builds an instance of WorkspaceGitRepoManagementClient sync client. * - * @return an instance of DataFlowClient. + * @return an instance of WorkspaceGitRepoManagementClient. */ - public DataFlowClient buildDataFlowClient() { - return new DataFlowClient(buildInnerClient().getDataFlows()); + public WorkspaceGitRepoManagementClient buildWorkspaceGitRepoManagementClient() { + return new WorkspaceGitRepoManagementClient(buildInnerClient().getWorkspaceGitRepoManagements()); } /** - * Builds an instance of DataFlowDebugSessionClient sync client. + * Builds an instance of IntegrationRuntimesClient sync client. * - * @return an instance of DataFlowDebugSessionClient. + * @return an instance of IntegrationRuntimesClient. */ - public DataFlowDebugSessionClient buildDataFlowDebugSessionClient() { - return new DataFlowDebugSessionClient(buildInnerClient().getDataFlowDebugSessions()); + public IntegrationRuntimesClient buildIntegrationRuntimesClient() { + return new IntegrationRuntimesClient(buildInnerClient().getIntegrationRuntimes()); } /** - * Builds an instance of SqlScriptClient sync client. + * Builds an instance of LibraryClient sync client. * - * @return an instance of SqlScriptClient. + * @return an instance of LibraryClient. */ - public SqlScriptClient buildSqlScriptClient() { - return new SqlScriptClient(buildInnerClient().getSqlScripts()); + public LibraryClient buildLibraryClient() { + return new LibraryClient(buildInnerClient().getLibraries()); } /** - * Builds an instance of SparkJobDefinitionClient sync client. + * Builds an instance of LinkedServiceClient sync client. * - * @return an instance of SparkJobDefinitionClient. + * @return an instance of LinkedServiceClient. */ - public SparkJobDefinitionClient buildSparkJobDefinitionClient() { - return new SparkJobDefinitionClient(buildInnerClient().getSparkJobDefinitions()); + public LinkedServiceClient buildLinkedServiceClient() { + return new LinkedServiceClient(buildInnerClient().getLinkedServices()); } /** @@ -594,75 +613,66 @@ public NotebookOperationResultClient buildNotebookOperationResultClient() { } /** - * Builds an instance of SparkConfigurationClient sync client. - * - * @return an instance of SparkConfigurationClient. - */ - public SparkConfigurationClient buildSparkConfigurationClient() { - return new SparkConfigurationClient(buildInnerClient().getSparkConfigurations()); - } - - /** - * Builds an instance of BigDataPoolsClient sync client. + * Builds an instance of PipelineClient sync client. * - * @return an instance of BigDataPoolsClient. + * @return an instance of PipelineClient. */ - public BigDataPoolsClient buildBigDataPoolsClient() { - return new BigDataPoolsClient(buildInnerClient().getBigDataPools()); + public PipelineClient buildPipelineClient() { + return new PipelineClient(buildInnerClient().getPipelines()); } /** - * Builds an instance of WorkspaceGitRepoManagementClient sync client. + * Builds an instance of PipelineRunClient sync client. * - * @return an instance of WorkspaceGitRepoManagementClient. + * @return an instance of PipelineRunClient. */ - public WorkspaceGitRepoManagementClient buildWorkspaceGitRepoManagementClient() { - return new WorkspaceGitRepoManagementClient(buildInnerClient().getWorkspaceGitRepoManagements()); + public PipelineRunClient buildPipelineRunClient() { + return new PipelineRunClient(buildInnerClient().getPipelineRuns()); } /** - * Builds an instance of IntegrationRuntimesClient sync client. + * Builds an instance of SparkJobDefinitionClient sync client. * - * @return an instance of IntegrationRuntimesClient. + * @return an instance of SparkJobDefinitionClient. */ - public IntegrationRuntimesClient buildIntegrationRuntimesClient() { - return new IntegrationRuntimesClient(buildInnerClient().getIntegrationRuntimes()); + public SparkJobDefinitionClient buildSparkJobDefinitionClient() { + return new SparkJobDefinitionClient(buildInnerClient().getSparkJobDefinitions()); } /** - * Builds an instance of LibraryClient sync client. + * Builds an instance of SqlPoolsClient sync client. * - * @return an instance of LibraryClient. + * @return an instance of SqlPoolsClient. */ - public LibraryClient buildLibraryClient() { - return new LibraryClient(buildInnerClient().getLibraries()); + public SqlPoolsClient buildSqlPoolsClient() { + return new SqlPoolsClient(buildInnerClient().getSqlPools()); } /** - * Builds an instance of OperationResultClient sync client. + * Builds an instance of SqlScriptClient sync client. * - * @return an instance of OperationResultClient. + * @return an instance of SqlScriptClient. */ - public OperationResultClient buildOperationResultClient() { - return new OperationResultClient(buildInnerClient().getOperationResults()); + public SqlScriptClient buildSqlScriptClient() { + return new SqlScriptClient(buildInnerClient().getSqlScripts()); } /** - * Builds an instance of OperationStatusClient sync client. + * Builds an instance of TriggerClient sync client. * - * @return an instance of OperationStatusClient. + * @return an instance of TriggerClient. */ - public OperationStatusClient buildOperationStatusClient() { - return new OperationStatusClient(buildInnerClient().getOperationStatus()); + public TriggerClient buildTriggerClient() { + return new TriggerClient(buildInnerClient().getTriggers()); } /** - * Builds an instance of SqlPoolsClient sync client. + * Builds an instance of TriggerRunClient sync client. * - * @return an instance of SqlPoolsClient. + * @return an instance of TriggerRunClient. */ - public SqlPoolsClient buildSqlPoolsClient() { - return new SqlPoolsClient(buildInnerClient().getSqlPools()); + public TriggerRunClient buildTriggerRunClient() { + return new TriggerRunClient(buildInnerClient().getTriggerRuns()); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsAsyncClient.java index 2198e61f66435..43e7bae2da3e1 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsAsyncClient.java @@ -33,7 +33,7 @@ public final class BigDataPoolsAsyncClient { * * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponse() { @@ -45,7 +45,7 @@ public Mono> listWithResponse() { * * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono list() { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsClient.java index c1359933cb3ce..e44fbeac4c228 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsClient.java @@ -33,7 +33,7 @@ public final class BigDataPoolsClient { * * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public BigDataPoolResourceInfoListResult list() { @@ -47,7 +47,7 @@ public BigDataPoolResourceInfoListResult list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse(Context context) { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowAsyncClient.java index 4cb8496f9275c..13c099c989c0f 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowAsyncClient.java @@ -6,13 +6,12 @@ import com.azure.analytics.synapse.artifacts.implementation.DataFlowsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.DataFlowResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -38,7 +37,7 @@ public final class DataFlowAsyncClient { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -56,7 +55,7 @@ public Mono> createOrUpdateDataFlowWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -72,7 +71,7 @@ public Mono createOrUpdateDataFlow( * @param dataFlowName The data flow name. * @param dataFlow Data flow resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -88,7 +87,7 @@ public Mono createOrUpdateDataFlow(String dataFlowName, DataFl * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -104,7 +103,7 @@ public Mono> getDataFlowWithResponse(String dataFlowN * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -118,7 +117,7 @@ public Mono getDataFlow(String dataFlowName, String ifNoneMatc * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -132,7 +131,7 @@ public Mono getDataFlow(String dataFlowName) { * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -146,7 +145,7 @@ public Mono> deleteDataFlowWithResponse(String dataFlowName) { * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -161,7 +160,7 @@ public Mono deleteDataFlow(String dataFlowName) { * @param dataFlowName The data flow name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -176,7 +175,7 @@ public Mono> renameDataFlowWithResponse(String dataFlowName, Arti * @param dataFlowName The data flow name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -188,19 +187,7 @@ public Mono renameDataFlow(String dataFlowName, ArtifactRenameRequest requ /** * Lists data flows. * - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getDataFlowsByWorkspaceSinglePage() { - return this.serviceClient.getDataFlowsByWorkspaceSinglePageAsync(); - } - - /** - * Lists data flows. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -208,18 +195,4 @@ public Mono> getDataFlowsByWorkspaceSinglePage() public PagedFlux getDataFlowsByWorkspace() { return this.serviceClient.getDataFlowsByWorkspaceAsync(); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getDataFlowsByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getDataFlowsByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowClient.java index a8262343af3dd..1485b437638d5 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.DataFlowsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.DataFlowResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; @@ -37,7 +37,7 @@ public final class DataFlowClient { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -52,7 +52,7 @@ public DataFlowResource createOrUpdateDataFlow(String dataFlowName, DataFlowReso * @param dataFlowName The data flow name. * @param dataFlow Data flow resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -70,7 +70,7 @@ public DataFlowResource createOrUpdateDataFlow(String dataFlowName, DataFlowReso * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -87,7 +87,7 @@ public Response createOrUpdateDataFlowWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -101,7 +101,7 @@ public DataFlowResource getDataFlow(String dataFlowName, String ifNoneMatch) { * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -118,7 +118,7 @@ public DataFlowResource getDataFlow(String dataFlowName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -133,7 +133,7 @@ public Response getDataFlowWithResponse( * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -147,7 +147,7 @@ public void deleteDataFlow(String dataFlowName) { * @param dataFlowName The data flow name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -162,7 +162,7 @@ public Response deleteDataFlowWithResponse(String dataFlowName, Context co * @param dataFlowName The data flow name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -177,7 +177,7 @@ public void renameDataFlow(String dataFlowName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -190,7 +190,7 @@ public Response renameDataFlowWithResponse( /** * Lists data flows. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -204,7 +204,7 @@ public PagedIterable getDataFlowsByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionAsyncClient.java index 5b35962708a6f..bfc73f8fcf9b3 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionAsyncClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.DataFlowDebugSessionsImpl; import com.azure.analytics.synapse.artifacts.models.AddDataFlowToDebugSessionResponse; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.CreateDataFlowDebugSessionRequest; import com.azure.analytics.synapse.artifacts.models.CreateDataFlowDebugSessionResponse; import com.azure.analytics.synapse.artifacts.models.DataFlowDebugCommandRequest; @@ -20,7 +20,6 @@ import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -43,7 +42,7 @@ public final class DataFlowDebugSessionAsyncClient { * * @param request Data flow debug session definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -58,7 +57,7 @@ public Mono createDataF * * @param request Data flow debug session definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -71,19 +70,7 @@ public Mono createDataFlowDebugSession( /** * Query all active data flow debug sessions. * - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> queryDataFlowDebugSessionsByWorkspaceSinglePage() { - return this.serviceClient.queryDataFlowDebugSessionsByWorkspaceSinglePageAsync(); - } - - /** - * Query all active data flow debug sessions. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -97,7 +84,7 @@ public PagedFlux queryDataFlowDebugSessionsByWorkspace * * @param request Data flow debug session definition with debug content. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -111,7 +98,7 @@ public Mono> addDataFlowWithResponse * * @param request Data flow debug session definition with debug content. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -125,7 +112,7 @@ public Mono addDataFlow(DataFlowDebugPackage * * @param request Data flow debug session definition for deletion. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -139,7 +126,7 @@ public Mono> deleteDataFlowDebugSessionWithResponse(DeleteDataFlo * * @param request Data flow debug session definition for deletion. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -153,7 +140,7 @@ public Mono deleteDataFlowDebugSession(DeleteDataFlowDebugSessionRequest r * * @param request Data flow debug command definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -168,7 +155,7 @@ public Mono executeCommandWithRespo * * @param request Data flow debug command definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -176,19 +163,4 @@ public Mono executeCommandWithRespo public Mono executeCommand(DataFlowDebugCommandRequest request) { return this.serviceClient.executeCommandAsync(request); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> queryDataFlowDebugSessionsByWorkspaceNextSinglePage( - String nextLink) { - return this.serviceClient.queryDataFlowDebugSessionsByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionClient.java index d80347b4aa830..512d5d02ce948 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowDebugSessionClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.DataFlowDebugSessionsImpl; import com.azure.analytics.synapse.artifacts.models.AddDataFlowToDebugSessionResponse; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.CreateDataFlowDebugSessionRequest; import com.azure.analytics.synapse.artifacts.models.CreateDataFlowDebugSessionResponse; import com.azure.analytics.synapse.artifacts.models.DataFlowDebugCommandRequest; @@ -42,7 +42,7 @@ public final class DataFlowDebugSessionClient { * * @param request Data flow debug session definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -57,7 +57,7 @@ public CreateDataFlowDebugSessionResponse createDataFlowDebugSession(CreateDataF * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -70,7 +70,7 @@ public DataFlowDebugSessionsCreateDataFlowDebugSessionResponse createDataFlowDeb /** * Query all active data flow debug sessions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -84,7 +84,7 @@ public PagedIterable queryDataFlowDebugSessionsByWorks * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -98,7 +98,7 @@ public PagedIterable queryDataFlowDebugSessionsByWorks * * @param request Data flow debug session definition with debug content. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -113,7 +113,7 @@ public AddDataFlowToDebugSessionResponse addDataFlow(DataFlowDebugPackage reques * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -128,7 +128,7 @@ public Response addDataFlowWithResponse( * * @param request Data flow debug session definition for deletion. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -142,7 +142,7 @@ public void deleteDataFlowDebugSession(DeleteDataFlowDebugSessionRequest request * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -157,7 +157,7 @@ public Response deleteDataFlowDebugSessionWithResponse( * * @param request Data flow debug command definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -172,7 +172,7 @@ public DataFlowDebugCommandResponse executeCommand(DataFlowDebugCommandRequest r * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetAsyncClient.java index c1aa1429da23c..a68778c2b2608 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetAsyncClient.java @@ -6,13 +6,12 @@ import com.azure.analytics.synapse.artifacts.implementation.DatasetsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.DatasetResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -33,19 +32,7 @@ public final class DatasetAsyncClient { /** * Lists datasets. * - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getDatasetsByWorkspaceSinglePage() { - return this.serviceClient.getDatasetsByWorkspaceSinglePageAsync(); - } - - /** - * Lists datasets. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -62,7 +49,7 @@ public PagedFlux getDatasetsByWorkspace() { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -80,7 +67,7 @@ public Mono> createOrUpdateDatasetWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -95,7 +82,7 @@ public Mono createOrUpdateDataset(String datasetName, DatasetRe * @param datasetName The dataset name. * @param dataset Dataset resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -111,7 +98,7 @@ public Mono createOrUpdateDataset(String datasetName, DatasetRe * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -127,7 +114,7 @@ public Mono> getDatasetWithResponse(String datasetName * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -141,7 +128,7 @@ public Mono getDataset(String datasetName, String ifNoneMatch) * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -155,7 +142,7 @@ public Mono getDataset(String datasetName) { * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -169,7 +156,7 @@ public Mono> deleteDatasetWithResponse(String datasetName) { * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -184,7 +171,7 @@ public Mono deleteDataset(String datasetName) { * @param datasetName The dataset name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -199,7 +186,7 @@ public Mono> renameDatasetWithResponse(String datasetName, Artifa * @param datasetName The dataset name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -207,18 +194,4 @@ public Mono> renameDatasetWithResponse(String datasetName, Artifa public Mono renameDataset(String datasetName, ArtifactRenameRequest request) { return this.serviceClient.renameDatasetAsync(datasetName, request); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getDatasetsByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getDatasetsByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetClient.java index f50bacb498e59..1e9d5681149ee 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DatasetClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.DatasetsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.DatasetResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; @@ -32,7 +32,7 @@ public final class DatasetClient { /** * Lists datasets. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -46,7 +46,7 @@ public PagedIterable getDatasetsByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -63,7 +63,7 @@ public PagedIterable getDatasetsByWorkspace(Context context) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -78,7 +78,7 @@ public DatasetResource createOrUpdateDataset(String datasetName, DatasetResource * @param datasetName The dataset name. * @param dataset Dataset resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -96,7 +96,7 @@ public DatasetResource createOrUpdateDataset(String datasetName, DatasetResource * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -113,7 +113,7 @@ public Response createOrUpdateDatasetWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -127,7 +127,7 @@ public DatasetResource getDataset(String datasetName, String ifNoneMatch) { * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -144,7 +144,7 @@ public DatasetResource getDataset(String datasetName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -158,7 +158,7 @@ public Response getDatasetWithResponse(String datasetName, Stri * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -172,7 +172,7 @@ public void deleteDataset(String datasetName) { * @param datasetName The dataset name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -187,7 +187,7 @@ public Response deleteDatasetWithResponse(String datasetName, Context cont * @param datasetName The dataset name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -202,7 +202,7 @@ public void renameDataset(String datasetName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptAsyncClient.java new file mode 100644 index 0000000000000..d61de6d8bf555 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptAsyncClient.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts; + +import com.azure.analytics.synapse.artifacts.implementation.KqlScriptsOperationsImpl; +import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; +import com.azure.analytics.synapse.artifacts.models.ErrorContractException; +import com.azure.analytics.synapse.artifacts.models.KqlScriptResource; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import reactor.core.publisher.Mono; + +/** Initializes a new instance of the asynchronous ArtifactsClient type. */ +@ServiceClient(builder = ArtifactsClientBuilder.class, isAsync = true) +public final class KqlScriptAsyncClient { + private final KqlScriptsOperationsImpl serviceClient; + + /** + * Initializes an instance of KqlScriptsOperations client. + * + * @param serviceClient the service client implementation. + */ + KqlScriptAsyncClient(KqlScriptsOperationsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponse( + String kqlScriptName, KqlScriptResource kqlScript) { + return this.serviceClient.createOrUpdateWithResponseAsync(kqlScriptName, kqlScript); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdate(String kqlScriptName, KqlScriptResource kqlScript) { + return this.serviceClient.createOrUpdateAsync(kqlScriptName, kqlScript); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByNameWithResponse(String kqlScriptName) { + return this.serviceClient.getByNameWithResponseAsync(kqlScriptName); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByName(String kqlScriptName) { + return this.serviceClient.getByNameAsync(kqlScriptName); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteByNameWithResponse(String kqlScriptName) { + return this.serviceClient.deleteByNameWithResponseAsync(kqlScriptName); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteByName(String kqlScriptName) { + return this.serviceClient.deleteByNameAsync(kqlScriptName); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> renameWithResponse(String kqlScriptName, ArtifactRenameRequest renameRequest) { + return this.serviceClient.renameWithResponseAsync(kqlScriptName, renameRequest); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono rename(String kqlScriptName, ArtifactRenameRequest renameRequest) { + return this.serviceClient.renameAsync(kqlScriptName, renameRequest); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptClient.java new file mode 100644 index 0000000000000..5df880fb161d0 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptClient.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts; + +import com.azure.analytics.synapse.artifacts.implementation.KqlScriptsOperationsImpl; +import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; +import com.azure.analytics.synapse.artifacts.models.ErrorContractException; +import com.azure.analytics.synapse.artifacts.models.KqlScriptResource; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** Initializes a new instance of the synchronous ArtifactsClient type. */ +@ServiceClient(builder = ArtifactsClientBuilder.class) +public final class KqlScriptClient { + private final KqlScriptsOperationsImpl serviceClient; + + /** + * Initializes an instance of KqlScriptsOperations client. + * + * @param serviceClient the service client implementation. + */ + KqlScriptClient(KqlScriptsOperationsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KqlScriptResource createOrUpdate(String kqlScriptName, KqlScriptResource kqlScript) { + return this.serviceClient.createOrUpdate(kqlScriptName, kqlScript); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse( + String kqlScriptName, KqlScriptResource kqlScript, Context context) { + return this.serviceClient.createOrUpdateWithResponse(kqlScriptName, kqlScript, context); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KqlScriptResource getByName(String kqlScriptName) { + return this.serviceClient.getByName(kqlScriptName); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByNameWithResponse(String kqlScriptName, Context context) { + return this.serviceClient.getByNameWithResponse(kqlScriptName, context); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException 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 deleteByName(String kqlScriptName) { + this.serviceClient.deleteByName(kqlScriptName); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteByNameWithResponse(String kqlScriptName, Context context) { + return this.serviceClient.deleteByNameWithResponse(kqlScriptName, context); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException 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 rename(String kqlScriptName, ArtifactRenameRequest renameRequest) { + this.serviceClient.rename(kqlScriptName, renameRequest); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response renameWithResponse( + String kqlScriptName, ArtifactRenameRequest renameRequest, Context context) { + return this.serviceClient.renameWithResponse(kqlScriptName, renameRequest, context); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsAsyncClient.java new file mode 100644 index 0000000000000..3d67fba45d40a --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsAsyncClient.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts; + +import com.azure.analytics.synapse.artifacts.implementation.KqlScriptsImpl; +import com.azure.analytics.synapse.artifacts.models.ErrorContractException; +import com.azure.analytics.synapse.artifacts.models.KqlScriptResource; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; + +/** Initializes a new instance of the asynchronous ArtifactsClient type. */ +@ServiceClient(builder = ArtifactsClientBuilder.class, isAsync = true) +public final class KqlScriptsAsyncClient { + private final KqlScriptsImpl serviceClient; + + /** + * Initializes an instance of KqlScripts client. + * + * @param serviceClient the service client implementation. + */ + KqlScriptsAsyncClient(KqlScriptsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Get all KQL scripts. + * + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAll() { + return this.serviceClient.getAllAsync(); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsClient.java similarity index 58% rename from sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusClient.java rename to sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsClient.java index 067a522fa564a..e6e086d44fb38 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/KqlScriptsClient.java @@ -4,53 +4,52 @@ package com.azure.analytics.synapse.artifacts; -import com.azure.analytics.synapse.artifacts.implementation.OperationStatusImpl; +import com.azure.analytics.synapse.artifacts.implementation.KqlScriptsImpl; import com.azure.analytics.synapse.artifacts.models.ErrorContractException; +import com.azure.analytics.synapse.artifacts.models.KqlScriptResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; /** Initializes a new instance of the synchronous ArtifactsClient type. */ @ServiceClient(builder = ArtifactsClientBuilder.class) -public final class OperationStatusClient { - private final OperationStatusImpl serviceClient; +public final class KqlScriptsClient { + private final KqlScriptsImpl serviceClient; /** - * Initializes an instance of OperationStatus client. + * Initializes an instance of KqlScripts client. * * @param serviceClient the service client implementation. */ - OperationStatusClient(OperationStatusImpl serviceClient) { + KqlScriptsClient(KqlScriptsImpl serviceClient) { this.serviceClient = serviceClient; } /** - * Get operation status. + * Get all KQL scripts. * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void get(String operationId) { - this.serviceClient.get(operationId); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAll() { + return this.serviceClient.getAll(); } /** - * Get operation status. + * Get all KQL scripts. * - * @param operationId Operation ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. + * @return all KQL scripts. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String operationId, Context context) { - return this.serviceClient.getWithResponse(operationId, context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAll(Context context) { + return this.serviceClient.getAll(context); } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryAsyncClient.java index 1d5dffc958a0e..2fca2812c6ea2 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryAsyncClient.java @@ -5,14 +5,13 @@ package com.azure.analytics.synapse.artifacts; import com.azure.analytics.synapse.artifacts.implementation.LibrariesImpl; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.LibraryResource; import com.azure.analytics.synapse.artifacts.models.LibraryResourceInfo; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -35,19 +34,7 @@ public final class LibraryAsyncClient { /** * Lists Library. * - * @throws CloudErrorException 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 Library resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> listSinglePage() { - return this.serviceClient.listSinglePageAsync(); - } - - /** - * Lists Library. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -62,7 +49,7 @@ public PagedFlux list() { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -77,7 +64,7 @@ public Mono> flushWithResponse(String libraryName) * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -91,7 +78,7 @@ public Mono flush(String libraryName) { * * @param operationId operation id for which status is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -105,7 +92,7 @@ public Mono> getOperationResultWithResponse(String ope * * @param operationId operation id for which status is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -120,7 +107,7 @@ public Mono getOperationResult(String operationId) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -135,7 +122,7 @@ public Mono> deleteWithResponse(String libraryName * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -150,7 +137,7 @@ public Mono delete(String libraryName) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -165,7 +152,7 @@ public Mono> getWithResponse(String libraryName) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -180,7 +167,7 @@ public Mono get(String libraryName) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -195,7 +182,7 @@ public Mono> createWithResponse(String libraryName * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -216,7 +203,7 @@ public Mono create(String libraryName) { * appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -239,7 +226,7 @@ public Mono> appendWithResponse( * appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -258,7 +245,7 @@ public Mono append( * @param content Library file chunk. * @param contentLength The contentLength parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -266,18 +253,4 @@ public Mono append( public Mono append(String libraryName, Flux content, long contentLength) { return this.serviceClient.appendAsync(libraryName, content, contentLength); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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 Library resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> listNextSinglePage(String nextLink) { - return this.serviceClient.listNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryClient.java index 8e303eba78365..96bcec54511b4 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LibraryClient.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts; import com.azure.analytics.synapse.artifacts.implementation.LibrariesImpl; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.LibraryResource; import com.azure.analytics.synapse.artifacts.models.LibraryResourceInfo; import com.azure.core.annotation.ReturnType; @@ -34,7 +34,7 @@ public final class LibraryClient { /** * Lists Library. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -48,7 +48,7 @@ public PagedIterable list() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -63,7 +63,7 @@ public PagedIterable list(Context context) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -79,7 +79,7 @@ public LibraryResourceInfo flush(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -93,7 +93,7 @@ public Response flushWithResponse(String libraryName, Conte * * @param operationId operation id for which status is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -108,7 +108,7 @@ public LibraryResource getOperationResult(String operationId) { * @param operationId operation id for which status is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -123,7 +123,7 @@ public Response getOperationResultWithResponse(String operation * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -139,7 +139,7 @@ public LibraryResourceInfo delete(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -154,7 +154,7 @@ public Response deleteWithResponse(String libraryName, Cont * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -170,7 +170,7 @@ public LibraryResource get(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -185,7 +185,7 @@ public Response getWithResponse(String libraryName, Context con * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -201,7 +201,7 @@ public LibraryResourceInfo create(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -222,7 +222,7 @@ public Response createWithResponse(String libraryName, Cont * appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -240,7 +240,7 @@ public void append( * @param content Library file chunk. * @param contentLength The contentLength parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -261,7 +261,7 @@ public void append(String libraryName, Flux content, long contentLen * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceAsyncClient.java index 4dfd8bcc19be6..a4e865cc346ff 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceAsyncClient.java @@ -6,13 +6,12 @@ import com.azure.analytics.synapse.artifacts.implementation.LinkedServicesImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.LinkedServiceResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -33,19 +32,7 @@ public final class LinkedServiceAsyncClient { /** * Lists linked services. * - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getLinkedServicesByWorkspaceSinglePage() { - return this.serviceClient.getLinkedServicesByWorkspaceSinglePageAsync(); - } - - /** - * Lists linked services. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -62,7 +49,7 @@ public PagedFlux getLinkedServicesByWorkspace() { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -81,7 +68,7 @@ public Mono> createOrUpdateLinkedServiceWithResp * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -97,7 +84,7 @@ public Mono createOrUpdateLinkedService( * @param linkedServiceName The linked service name. * @param linkedService Linked service resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -114,7 +101,7 @@ public Mono createOrUpdateLinkedService( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -131,7 +118,7 @@ public Mono> getLinkedServiceWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -145,7 +132,7 @@ public Mono getLinkedService(String linkedServiceName, St * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -159,7 +146,7 @@ public Mono getLinkedService(String linkedServiceName) { * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -173,7 +160,7 @@ public Mono> deleteLinkedServiceWithResponse(String linkedService * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -188,7 +175,7 @@ public Mono deleteLinkedService(String linkedServiceName) { * @param linkedServiceName The linked service name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -204,7 +191,7 @@ public Mono> renameLinkedServiceWithResponse( * @param linkedServiceName The linked service name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -212,18 +199,4 @@ public Mono> renameLinkedServiceWithResponse( public Mono renameLinkedService(String linkedServiceName, ArtifactRenameRequest request) { return this.serviceClient.renameLinkedServiceAsync(linkedServiceName, request); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getLinkedServicesByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getLinkedServicesByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceClient.java index 9a76e456de420..6a4f96ba1b75e 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/LinkedServiceClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.LinkedServicesImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.LinkedServiceResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; @@ -32,7 +32,7 @@ public final class LinkedServiceClient { /** * Lists linked services. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -46,7 +46,7 @@ public PagedIterable getLinkedServicesByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -63,7 +63,7 @@ public PagedIterable getLinkedServicesByWorkspace(Context * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -79,7 +79,7 @@ public LinkedServiceResource createOrUpdateLinkedService( * @param linkedServiceName The linked service name. * @param linkedService Linked service resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -98,7 +98,7 @@ public LinkedServiceResource createOrUpdateLinkedService( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -116,7 +116,7 @@ public Response createOrUpdateLinkedServiceWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -130,7 +130,7 @@ public LinkedServiceResource getLinkedService(String linkedServiceName, String i * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -147,7 +147,7 @@ public LinkedServiceResource getLinkedService(String linkedServiceName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -162,7 +162,7 @@ public Response getLinkedServiceWithResponse( * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -176,7 +176,7 @@ public void deleteLinkedService(String linkedServiceName) { * @param linkedServiceName The linked service name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -191,7 +191,7 @@ public Response deleteLinkedServiceWithResponse(String linkedServiceName, * @param linkedServiceName The linked service name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -206,7 +206,7 @@ public void renameLinkedService(String linkedServiceName, ArtifactRenameRequest * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookAsyncClient.java index bbd41fb6bae9d..373981e9deab1 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookAsyncClient.java @@ -6,13 +6,12 @@ import com.azure.analytics.synapse.artifacts.implementation.NotebooksImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.NotebookResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -33,19 +32,7 @@ public final class NotebookAsyncClient { /** * Lists Notebooks. * - * @throws CloudErrorException 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 Notebook resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getNotebooksByWorkspaceSinglePage() { - return this.serviceClient.getNotebooksByWorkspaceSinglePageAsync(); - } - - /** - * Lists Notebooks. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -57,19 +44,7 @@ public PagedFlux getNotebooksByWorkspace() { /** * Lists a summary of Notebooks. * - * @throws CloudErrorException 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 Notebook resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getNotebookSummaryByWorkSpaceSinglePage() { - return this.serviceClient.getNotebookSummaryByWorkSpaceSinglePageAsync(); - } - - /** - * Lists a summary of Notebooks. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -86,7 +61,7 @@ public PagedFlux getNotebookSummaryByWorkSpace() { * @param ifMatch ETag of the Note book 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -104,7 +79,7 @@ public Mono> createOrUpdateNotebookWithResponse( * @param ifMatch ETag of the Note book 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -120,7 +95,7 @@ public Mono createOrUpdateNotebook( * @param notebookName The notebook name. * @param notebook Note book resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -136,7 +111,7 @@ public Mono createOrUpdateNotebook(String notebookName, Notebo * @param ifNoneMatch ETag of the Notebook 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -152,7 +127,7 @@ public Mono> getNotebookWithResponse(String notebookN * @param ifNoneMatch ETag of the Notebook 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -166,7 +141,7 @@ public Mono getNotebook(String notebookName, String ifNoneMatc * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -180,7 +155,7 @@ public Mono getNotebook(String notebookName) { * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -194,7 +169,7 @@ public Mono> deleteNotebookWithResponse(String notebookName) { * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -209,7 +184,7 @@ public Mono deleteNotebook(String notebookName) { * @param notebookName The notebook name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -224,7 +199,7 @@ public Mono> renameNotebookWithResponse(String notebookName, Arti * @param notebookName The notebook name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -232,32 +207,4 @@ public Mono> renameNotebookWithResponse(String notebookName, Arti public Mono renameNotebook(String notebookName, ArtifactRenameRequest request) { return this.serviceClient.renameNotebookAsync(notebookName, request); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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 Notebook resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getNotebooksByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getNotebooksByWorkspaceNextSinglePageAsync(nextLink); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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 Notebook resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getNotebookSummaryByWorkSpaceNextSinglePage(String nextLink) { - return this.serviceClient.getNotebookSummaryByWorkSpaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookClient.java index 2c60630234ce5..aeb2d189a4d53 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/NotebookClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.NotebooksImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.NotebookResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; @@ -32,7 +32,7 @@ public final class NotebookClient { /** * Lists Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -46,7 +46,7 @@ public PagedIterable getNotebooksByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -58,7 +58,7 @@ public PagedIterable getNotebooksByWorkspace(Context context) /** * Lists a summary of Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -72,7 +72,7 @@ public PagedIterable getNotebookSummaryByWorkSpace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -89,7 +89,7 @@ public PagedIterable getNotebookSummaryByWorkSpace(Context con * @param ifMatch ETag of the Note book 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -104,7 +104,7 @@ public NotebookResource createOrUpdateNotebook(String notebookName, NotebookReso * @param notebookName The notebook name. * @param notebook Note book resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -122,7 +122,7 @@ public NotebookResource createOrUpdateNotebook(String notebookName, NotebookReso * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -139,7 +139,7 @@ public Response createOrUpdateNotebookWithResponse( * @param ifNoneMatch ETag of the Notebook 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -153,7 +153,7 @@ public NotebookResource getNotebook(String notebookName, String ifNoneMatch) { * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -170,7 +170,7 @@ public NotebookResource getNotebook(String notebookName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -185,7 +185,7 @@ public Response getNotebookWithResponse( * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -199,7 +199,7 @@ public void deleteNotebook(String notebookName) { * @param notebookName The notebook name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -214,7 +214,7 @@ public Response deleteNotebookWithResponse(String notebookName, Context co * @param notebookName The notebook name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -229,7 +229,7 @@ public void renameNotebook(String notebookName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultAsyncClient.java deleted file mode 100644 index 4caf90ceed7cd..0000000000000 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultAsyncClient.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.analytics.synapse.artifacts; - -import com.azure.analytics.synapse.artifacts.implementation.OperationResultsImpl; -import com.azure.analytics.synapse.artifacts.models.ErrorContractException; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceClient; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import reactor.core.publisher.Mono; - -/** Initializes a new instance of the asynchronous ArtifactsClient type. */ -@ServiceClient(builder = ArtifactsClientBuilder.class, isAsync = true) -public final class OperationResultAsyncClient { - private final OperationResultsImpl serviceClient; - - /** - * Initializes an instance of OperationResults client. - * - * @param serviceClient the service client implementation. - */ - OperationResultAsyncClient(OperationResultsImpl serviceClient) { - this.serviceClient = serviceClient; - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponse(String operationId) { - return this.serviceClient.getWithResponseAsync(operationId); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono get(String operationId) { - return this.serviceClient.getAsync(operationId); - } -} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultClient.java deleted file mode 100644 index d0cb0f0c32b30..0000000000000 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationResultClient.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.analytics.synapse.artifacts; - -import com.azure.analytics.synapse.artifacts.implementation.OperationResultsImpl; -import com.azure.analytics.synapse.artifacts.models.ErrorContractException; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceClient; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Initializes a new instance of the synchronous ArtifactsClient type. */ -@ServiceClient(builder = ArtifactsClientBuilder.class) -public final class OperationResultClient { - private final OperationResultsImpl serviceClient; - - /** - * Initializes an instance of OperationResults client. - * - * @param serviceClient the service client implementation. - */ - OperationResultClient(OperationResultsImpl serviceClient) { - this.serviceClient = serviceClient; - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException 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 get(String operationId) { - this.serviceClient.get(operationId); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String operationId, Context context) { - return this.serviceClient.getWithResponse(operationId, context); - } -} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusAsyncClient.java deleted file mode 100644 index bb2d9e2304233..0000000000000 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/OperationStatusAsyncClient.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.analytics.synapse.artifacts; - -import com.azure.analytics.synapse.artifacts.implementation.OperationStatusImpl; -import com.azure.analytics.synapse.artifacts.models.ErrorContractException; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceClient; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import reactor.core.publisher.Mono; - -/** Initializes a new instance of the asynchronous ArtifactsClient type. */ -@ServiceClient(builder = ArtifactsClientBuilder.class, isAsync = true) -public final class OperationStatusAsyncClient { - private final OperationStatusImpl serviceClient; - - /** - * Initializes an instance of OperationStatus client. - * - * @param serviceClient the service client implementation. - */ - OperationStatusAsyncClient(OperationStatusImpl serviceClient) { - this.serviceClient = serviceClient; - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponse(String operationId) { - return this.serviceClient.getWithResponseAsync(operationId); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono get(String operationId) { - return this.serviceClient.getAsync(operationId); - } -} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineAsyncClient.java index ef68f836c6504..3b82d34010d53 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineAsyncClient.java @@ -6,14 +6,13 @@ import com.azure.analytics.synapse.artifacts.implementation.PipelinesImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.CreateRunResponse; import com.azure.analytics.synapse.artifacts.models.PipelineResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import java.util.Map; import reactor.core.publisher.Mono; @@ -35,19 +34,7 @@ public final class PipelineAsyncClient { /** * Lists pipelines. * - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getPipelinesByWorkspaceSinglePage() { - return this.serviceClient.getPipelinesByWorkspaceSinglePageAsync(); - } - - /** - * Lists pipelines. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -64,7 +51,7 @@ public PagedFlux getPipelinesByWorkspace() { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -82,7 +69,7 @@ public Mono> createOrUpdatePipelineWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -98,7 +85,7 @@ public Mono createOrUpdatePipeline( * @param pipelineName The pipeline name. * @param pipeline Pipeline resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -114,7 +101,7 @@ public Mono createOrUpdatePipeline(String pipelineName, Pipeli * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -130,7 +117,7 @@ public Mono> getPipelineWithResponse(String pipelineN * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -144,7 +131,7 @@ public Mono getPipeline(String pipelineName, String ifNoneMatc * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -158,7 +145,7 @@ public Mono getPipeline(String pipelineName) { * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -172,7 +159,7 @@ public Mono> deletePipelineWithResponse(String pipelineName) { * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -187,7 +174,7 @@ public Mono deletePipeline(String pipelineName) { * @param pipelineName The pipeline name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -202,7 +189,7 @@ public Mono> renamePipelineWithResponse(String pipelineName, Arti * @param pipelineName The pipeline name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -224,7 +211,7 @@ public Mono renamePipeline(String pipelineName, ArtifactRenameRequest requ * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -252,7 +239,7 @@ public Mono> createPipelineRunWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -272,7 +259,7 @@ public Mono createPipelineRun( * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -280,18 +267,4 @@ public Mono createPipelineRun( public Mono createPipelineRun(String pipelineName) { return this.serviceClient.createPipelineRunAsync(pipelineName); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getPipelinesByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getPipelinesByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineClient.java index 292f6403178a5..62b08cfdf0b27 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.PipelinesImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.CreateRunResponse; import com.azure.analytics.synapse.artifacts.models.PipelineResource; import com.azure.core.annotation.ReturnType; @@ -34,7 +34,7 @@ public final class PipelineClient { /** * Lists pipelines. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -48,7 +48,7 @@ public PagedIterable getPipelinesByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -65,7 +65,7 @@ public PagedIterable getPipelinesByWorkspace(Context context) * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -80,7 +80,7 @@ public PipelineResource createOrUpdatePipeline(String pipelineName, PipelineReso * @param pipelineName The pipeline name. * @param pipeline Pipeline resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -98,7 +98,7 @@ public PipelineResource createOrUpdatePipeline(String pipelineName, PipelineReso * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -115,7 +115,7 @@ public Response createOrUpdatePipelineWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -129,7 +129,7 @@ public PipelineResource getPipeline(String pipelineName, String ifNoneMatch) { * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -146,7 +146,7 @@ public PipelineResource getPipeline(String pipelineName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -161,7 +161,7 @@ public Response getPipelineWithResponse( * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -175,7 +175,7 @@ public void deletePipeline(String pipelineName) { * @param pipelineName The pipeline name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -190,7 +190,7 @@ public Response deletePipelineWithResponse(String pipelineName, Context co * @param pipelineName The pipeline name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -205,7 +205,7 @@ public void renamePipeline(String pipelineName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -228,7 +228,7 @@ public Response renamePipelineWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -248,7 +248,7 @@ public CreateRunResponse createPipelineRun( * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -271,7 +271,7 @@ public CreateRunResponse createPipelineRun(String pipelineName) { * specified. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunAsyncClient.java index 0357999cafc94..ce54a218cf942 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunAsyncClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.PipelineRunsImpl; import com.azure.analytics.synapse.artifacts.models.ActivityRunsQueryResponse; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.PipelineRun; import com.azure.analytics.synapse.artifacts.models.PipelineRunsQueryResponse; import com.azure.analytics.synapse.artifacts.models.RunFilterParameters; @@ -35,7 +35,7 @@ public final class PipelineRunAsyncClient { * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -50,7 +50,7 @@ public Mono> queryPipelineRunsByWorkspaceWit * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -64,7 +64,7 @@ public Mono queryPipelineRunsByWorkspace(RunFilterPar * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -78,7 +78,7 @@ public Mono> getPipelineRunWithResponse(String runId) { * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -94,7 +94,7 @@ public Mono getPipelineRun(String runId) { * @param runId The pipeline run identifier. * @param filterParameters Parameters to filter the activity runs. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -111,7 +111,7 @@ public Mono> queryActivityRunsWithResponse( * @param runId The pipeline run identifier. * @param filterParameters Parameters to filter the activity runs. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -127,7 +127,7 @@ public Mono queryActivityRuns( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -142,7 +142,7 @@ public Mono> cancelPipelineRunWithResponse(String runId, Boolean * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -156,7 +156,7 @@ public Mono cancelPipelineRun(String runId, Boolean isRecursive) { * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunClient.java index e39345d1ca6fe..4dc3e5a429e2a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/PipelineRunClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.PipelineRunsImpl; import com.azure.analytics.synapse.artifacts.models.ActivityRunsQueryResponse; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.PipelineRun; import com.azure.analytics.synapse.artifacts.models.PipelineRunsQueryResponse; import com.azure.analytics.synapse.artifacts.models.RunFilterParameters; @@ -35,7 +35,7 @@ public final class PipelineRunClient { * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -50,7 +50,7 @@ public PipelineRunsQueryResponse queryPipelineRunsByWorkspace(RunFilterParameter * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -65,7 +65,7 @@ public Response queryPipelineRunsByWorkspaceWithRespo * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -80,7 +80,7 @@ public PipelineRun getPipelineRun(String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -96,7 +96,7 @@ public Response getPipelineRunWithResponse(String runId, Context co * @param runId The pipeline run identifier. * @param filterParameters Parameters to filter the activity runs. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -114,7 +114,7 @@ public ActivityRunsQueryResponse queryActivityRuns( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -130,7 +130,7 @@ public Response queryActivityRunsWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -143,7 +143,7 @@ public void cancelPipelineRun(String runId, Boolean isRecursive) { * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -158,7 +158,7 @@ public void cancelPipelineRun(String runId) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkConfigurationAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkConfigurationAsyncClient.java index 4dd498b349072..79a8511665647 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkConfigurationAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkConfigurationAsyncClient.java @@ -12,7 +12,6 @@ import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -30,18 +29,6 @@ public final class SparkConfigurationAsyncClient { this.serviceClient = serviceClient; } - /** - * Lists sparkconfigurations. - * - * @throws CloudErrorException 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 sparkconfiguration resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getSparkConfigurationsByWorkspaceSinglePage() { - return this.serviceClient.getSparkConfigurationsByWorkspaceSinglePageAsync(); - } - /** * Lists sparkconfigurations. * @@ -213,19 +200,4 @@ public Mono> renameSparkConfigurationWithResponse( public Mono renameSparkConfiguration(String sparkConfigurationName, ArtifactRenameRequest request) { return this.serviceClient.renameSparkConfigurationAsync(sparkConfigurationName, request); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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 sparkconfiguration resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getSparkConfigurationsByWorkspaceNextSinglePage( - String nextLink) { - return this.serviceClient.getSparkConfigurationsByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionAsyncClient.java index 72c593d4d0a23..7a96a0854885a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionAsyncClient.java @@ -6,14 +6,13 @@ import com.azure.analytics.synapse.artifacts.implementation.SparkJobDefinitionsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.SparkBatchJob; import com.azure.analytics.synapse.artifacts.models.SparkJobDefinitionResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -34,19 +33,7 @@ public final class SparkJobDefinitionAsyncClient { /** * Lists spark job definitions. * - * @throws CloudErrorException 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 spark job definitions resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getSparkJobDefinitionsByWorkspaceSinglePage() { - return this.serviceClient.getSparkJobDefinitionsByWorkspaceSinglePageAsync(); - } - - /** - * Lists spark job definitions. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -63,7 +50,7 @@ public PagedFlux getSparkJobDefinitionsByWorkspace() * @param ifMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -82,7 +69,7 @@ public Mono> createOrUpdateSparkJobDefiniti * @param ifMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -99,7 +86,7 @@ public Mono createOrUpdateSparkJobDefinition( * @param sparkJobDefinitionName The spark job definition name. * @param sparkJobDefinition Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -116,7 +103,7 @@ public Mono createOrUpdateSparkJobDefinition( * @param ifNoneMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -133,7 +120,7 @@ public Mono> getSparkJobDefinitionWithRespo * @param ifNoneMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -147,7 +134,7 @@ public Mono getSparkJobDefinition(String sparkJobDef * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -161,7 +148,7 @@ public Mono getSparkJobDefinition(String sparkJobDef * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -175,7 +162,7 @@ public Mono> deleteSparkJobDefinitionWithResponse(String sparkJob * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -189,7 +176,7 @@ public Mono deleteSparkJobDefinition(String sparkJobDefinitionName) { * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -203,7 +190,7 @@ public Mono> executeSparkJobDefinitionWithResponse(Strin * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -218,7 +205,7 @@ public Mono executeSparkJobDefinition(String sparkJobDefinitionNa * @param sparkJobDefinitionName The spark job definition name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -234,7 +221,7 @@ public Mono> renameSparkJobDefinitionWithResponse( * @param sparkJobDefinitionName The spark job definition name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -248,7 +235,7 @@ public Mono renameSparkJobDefinition(String sparkJobDefinitionName, Artifa * * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -263,7 +250,7 @@ public Mono> debugSparkJobDefinitionWithResponse( * * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -271,19 +258,4 @@ public Mono> debugSparkJobDefinitionWithResponse( public Mono debugSparkJobDefinition(SparkJobDefinitionResource sparkJobDefinitionAzureResource) { return this.serviceClient.debugSparkJobDefinitionAsync(sparkJobDefinitionAzureResource); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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 spark job definitions resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getSparkJobDefinitionsByWorkspaceNextSinglePage( - String nextLink) { - return this.serviceClient.getSparkJobDefinitionsByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionClient.java index dbfabbffdda0b..fcc3cc9f02f8a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SparkJobDefinitionClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.SparkJobDefinitionsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.SparkBatchJob; import com.azure.analytics.synapse.artifacts.models.SparkJobDefinitionResource; import com.azure.core.annotation.ReturnType; @@ -33,7 +33,7 @@ public final class SparkJobDefinitionClient { /** * Lists spark job definitions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -47,7 +47,7 @@ public PagedIterable getSparkJobDefinitionsByWorkspa * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -64,7 +64,7 @@ public PagedIterable getSparkJobDefinitionsByWorkspa * @param ifMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -80,7 +80,7 @@ public SparkJobDefinitionResource createOrUpdateSparkJobDefinition( * @param sparkJobDefinitionName The spark job definition name. * @param sparkJobDefinition Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -99,7 +99,7 @@ public SparkJobDefinitionResource createOrUpdateSparkJobDefinition( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -120,7 +120,7 @@ public Response createOrUpdateSparkJobDefinitionWith * @param ifNoneMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -134,7 +134,7 @@ public SparkJobDefinitionResource getSparkJobDefinition(String sparkJobDefinitio * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -151,7 +151,7 @@ public SparkJobDefinitionResource getSparkJobDefinition(String sparkJobDefinitio * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -166,7 +166,7 @@ public Response getSparkJobDefinitionWithResponse( * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -180,7 +180,7 @@ public void deleteSparkJobDefinition(String sparkJobDefinitionName) { * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -194,7 +194,7 @@ public Response deleteSparkJobDefinitionWithResponse(String sparkJobDefini * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -209,7 +209,7 @@ public SparkBatchJob executeSparkJobDefinition(String sparkJobDefinitionName) { * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -225,7 +225,7 @@ public Response executeSparkJobDefinitionWithResponse( * @param sparkJobDefinitionName The spark job definition name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -240,7 +240,7 @@ public void renameSparkJobDefinition(String sparkJobDefinitionName, ArtifactRena * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -255,7 +255,7 @@ public Response renameSparkJobDefinitionWithResponse( * * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -270,7 +270,7 @@ public SparkBatchJob debugSparkJobDefinition(SparkJobDefinitionResource sparkJob * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsAsyncClient.java index c4032b965bf9c..df431a4ecc2aa 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsAsyncClient.java @@ -33,7 +33,7 @@ public final class SqlPoolsAsyncClient { * * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponse() { @@ -45,7 +45,7 @@ public Mono> listWithResponse() { * * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono list() { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsClient.java index 5615ca9c4c240..14bbd666eb005 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlPoolsClient.java @@ -33,7 +33,7 @@ public final class SqlPoolsClient { * * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public SqlPoolInfoListResult list() { @@ -47,7 +47,7 @@ public SqlPoolInfoListResult list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse(Context context) { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptAsyncClient.java index 39bba232d9465..012f3463fa6b0 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptAsyncClient.java @@ -6,13 +6,12 @@ import com.azure.analytics.synapse.artifacts.implementation.SqlScriptsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.SqlScriptResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -33,19 +32,7 @@ public final class SqlScriptAsyncClient { /** * Lists sql scripts. * - * @throws CloudErrorException 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 sql scripts resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getSqlScriptsByWorkspaceSinglePage() { - return this.serviceClient.getSqlScriptsByWorkspaceSinglePageAsync(); - } - - /** - * Lists sql scripts. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -62,7 +49,7 @@ public PagedFlux getSqlScriptsByWorkspace() { * @param ifMatch ETag of the SQL script 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -80,7 +67,7 @@ public Mono> createOrUpdateSqlScriptWithResponse( * @param ifMatch ETag of the SQL script 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -96,7 +83,7 @@ public Mono createOrUpdateSqlScript( * @param sqlScriptName The sql script name. * @param sqlScript Sql Script resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -112,7 +99,7 @@ public Mono createOrUpdateSqlScript(String sqlScriptName, Sql * @param ifNoneMatch ETag of the sql compute 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -128,7 +115,7 @@ public Mono> getSqlScriptWithResponse(String sqlScri * @param ifNoneMatch ETag of the sql compute 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -142,7 +129,7 @@ public Mono getSqlScript(String sqlScriptName, String ifNoneM * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -156,7 +143,7 @@ public Mono getSqlScript(String sqlScriptName) { * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -170,7 +157,7 @@ public Mono> deleteSqlScriptWithResponse(String sqlScriptName) { * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -185,7 +172,7 @@ public Mono deleteSqlScript(String sqlScriptName) { * @param sqlScriptName The sql script name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -200,7 +187,7 @@ public Mono> renameSqlScriptWithResponse(String sqlScriptName, Ar * @param sqlScriptName The sql script name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -208,18 +195,4 @@ public Mono> renameSqlScriptWithResponse(String sqlScriptName, Ar public Mono renameSqlScript(String sqlScriptName, ArtifactRenameRequest request) { return this.serviceClient.renameSqlScriptAsync(sqlScriptName, request); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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 sql scripts resources. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getSqlScriptsByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getSqlScriptsByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptClient.java index 49c39fb25cba8..1d0aef923b50f 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/SqlScriptClient.java @@ -6,7 +6,7 @@ import com.azure.analytics.synapse.artifacts.implementation.SqlScriptsImpl; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.SqlScriptResource; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; @@ -32,7 +32,7 @@ public final class SqlScriptClient { /** * Lists sql scripts. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -46,7 +46,7 @@ public PagedIterable getSqlScriptsByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -63,7 +63,7 @@ public PagedIterable getSqlScriptsByWorkspace(Context context * @param ifMatch ETag of the SQL script 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -79,7 +79,7 @@ public SqlScriptResource createOrUpdateSqlScript( * @param sqlScriptName The sql script name. * @param sqlScript Sql Script resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -97,7 +97,7 @@ public SqlScriptResource createOrUpdateSqlScript(String sqlScriptName, SqlScript * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -114,7 +114,7 @@ public Response createOrUpdateSqlScriptWithResponse( * @param ifNoneMatch ETag of the sql compute 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -128,7 +128,7 @@ public SqlScriptResource getSqlScript(String sqlScriptName, String ifNoneMatch) * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -145,7 +145,7 @@ public SqlScriptResource getSqlScript(String sqlScriptName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -160,7 +160,7 @@ public Response getSqlScriptWithResponse( * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -174,7 +174,7 @@ public void deleteSqlScript(String sqlScriptName) { * @param sqlScriptName The sql script name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -189,7 +189,7 @@ public Response deleteSqlScriptWithResponse(String sqlScriptName, Context * @param sqlScriptName The sql script name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -204,7 +204,7 @@ public void renameSqlScript(String sqlScriptName, ArtifactRenameRequest request) * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerAsyncClient.java index 6698ab0db35fa..58c9ec4772dfe 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerAsyncClient.java @@ -5,14 +5,13 @@ package com.azure.analytics.synapse.artifacts; import com.azure.analytics.synapse.artifacts.implementation.TriggersImpl; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.TriggerResource; import com.azure.analytics.synapse.artifacts.models.TriggerSubscriptionOperationStatus; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.Response; import reactor.core.publisher.Mono; @@ -33,19 +32,7 @@ public final class TriggerAsyncClient { /** * Lists triggers. * - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getTriggersByWorkspaceSinglePage() { - return this.serviceClient.getTriggersByWorkspaceSinglePageAsync(); - } - - /** - * Lists triggers. - * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -62,7 +49,7 @@ public PagedFlux getTriggersByWorkspace() { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -80,7 +67,7 @@ public Mono> createOrUpdateTriggerWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -95,7 +82,7 @@ public Mono createOrUpdateTrigger(String triggerName, TriggerRe * @param triggerName The trigger name. * @param trigger Trigger resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -111,7 +98,7 @@ public Mono createOrUpdateTrigger(String triggerName, TriggerRe * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -127,7 +114,7 @@ public Mono> getTriggerWithResponse(String triggerName * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -141,7 +128,7 @@ public Mono getTrigger(String triggerName, String ifNoneMatch) * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -155,7 +142,7 @@ public Mono getTrigger(String triggerName) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -169,7 +156,7 @@ public Mono> deleteTriggerWithResponse(String triggerName) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -183,7 +170,7 @@ public Mono deleteTrigger(String triggerName) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -197,7 +184,7 @@ public Mono> subscribeTriggerToEven * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -211,7 +198,7 @@ public Mono subscribeTriggerToEvents(String * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -226,7 +213,7 @@ public Mono> getEventSubscriptionSt * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -240,7 +227,7 @@ public Mono getEventSubscriptionStatus(Strin * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -255,7 +242,7 @@ public Mono> unsubscribeTriggerFrom * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -269,7 +256,7 @@ public Mono unsubscribeTriggerFromEvents(Str * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -283,7 +270,7 @@ public Mono> startTriggerWithResponse(String triggerName) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -297,7 +284,7 @@ public Mono startTrigger(String triggerName) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -311,7 +298,7 @@ public Mono> stopTriggerWithResponse(String triggerName) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -319,18 +306,4 @@ public Mono> stopTriggerWithResponse(String triggerName) { public Mono stopTrigger(String triggerName) { return this.serviceClient.stopTriggerAsync(triggerName); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException 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. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public Mono> getTriggersByWorkspaceNextSinglePage(String nextLink) { - return this.serviceClient.getTriggersByWorkspaceNextSinglePageAsync(nextLink); - } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerClient.java index d49ebfaff7648..4498358e345fb 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerClient.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts; import com.azure.analytics.synapse.artifacts.implementation.TriggersImpl; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.TriggerResource; import com.azure.analytics.synapse.artifacts.models.TriggerSubscriptionOperationStatus; import com.azure.core.annotation.ReturnType; @@ -32,7 +32,7 @@ public final class TriggerClient { /** * Lists triggers. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -46,7 +46,7 @@ public PagedIterable getTriggersByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -63,7 +63,7 @@ public PagedIterable getTriggersByWorkspace(Context context) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -78,7 +78,7 @@ public TriggerResource createOrUpdateTrigger(String triggerName, TriggerResource * @param triggerName The trigger name. * @param trigger Trigger resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -96,7 +96,7 @@ public TriggerResource createOrUpdateTrigger(String triggerName, TriggerResource * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -113,7 +113,7 @@ public Response createOrUpdateTriggerWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -127,7 +127,7 @@ public TriggerResource getTrigger(String triggerName, String ifNoneMatch) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -144,7 +144,7 @@ public TriggerResource getTrigger(String triggerName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -158,7 +158,7 @@ public Response getTriggerWithResponse(String triggerName, Stri * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -172,7 +172,7 @@ public void deleteTrigger(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -186,7 +186,7 @@ public Response deleteTriggerWithResponse(String triggerName, Context cont * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -201,7 +201,7 @@ public TriggerSubscriptionOperationStatus subscribeTriggerToEvents(String trigge * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -216,7 +216,7 @@ public Response subscribeTriggerToEventsWith * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -231,7 +231,7 @@ public TriggerSubscriptionOperationStatus getEventSubscriptionStatus(String trig * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -246,7 +246,7 @@ public Response getEventSubscriptionStatusWi * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -261,7 +261,7 @@ public TriggerSubscriptionOperationStatus unsubscribeTriggerFromEvents(String tr * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -276,7 +276,7 @@ public Response unsubscribeTriggerFromEvents * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -290,7 +290,7 @@ public void startTrigger(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -304,7 +304,7 @@ public Response startTriggerWithResponse(String triggerName, Context conte * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -318,7 +318,7 @@ public void stopTrigger(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunAsyncClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunAsyncClient.java index d88e7cfd7a56b..0e9a3b981d227 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunAsyncClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunAsyncClient.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts; import com.azure.analytics.synapse.artifacts.implementation.TriggerRunsImpl; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.RunFilterParameters; import com.azure.analytics.synapse.artifacts.models.TriggerRunsQueryResponse; import com.azure.core.annotation.ReturnType; @@ -34,7 +34,7 @@ public final class TriggerRunAsyncClient { * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -49,7 +49,7 @@ public Mono> rerunTriggerInstanceWithResponse(String triggerName, * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -64,7 +64,7 @@ public Mono rerunTriggerInstance(String triggerName, String runId) { * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -79,7 +79,7 @@ public Mono> cancelTriggerInstanceWithResponse(String triggerName * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -93,7 +93,7 @@ public Mono cancelTriggerInstance(String triggerName, String runId) { * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -108,7 +108,7 @@ public Mono> queryTriggerRunsByWorkspaceWithR * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunClient.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunClient.java index 4051095dd71ce..a0fa3a0bbd8f8 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunClient.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/TriggerRunClient.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts; import com.azure.analytics.synapse.artifacts.implementation.TriggerRunsImpl; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.RunFilterParameters; import com.azure.analytics.synapse.artifacts.models.TriggerRunsQueryResponse; import com.azure.core.annotation.ReturnType; @@ -34,7 +34,7 @@ public final class TriggerRunClient { * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -49,7 +49,7 @@ public void rerunTriggerInstance(String triggerName, String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -64,7 +64,7 @@ public Response rerunTriggerInstanceWithResponse(String triggerName, Strin * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -79,7 +79,7 @@ public void cancelTriggerInstance(String triggerName, String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -93,7 +93,7 @@ public Response cancelTriggerInstanceWithResponse(String triggerName, Stri * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -108,7 +108,7 @@ public TriggerRunsQueryResponse queryTriggerRunsByWorkspace(RunFilterParameters * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/ArtifactsClientImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/ArtifactsClientImpl.java index b850b3568a145..e7f7db86d7242 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/ArtifactsClientImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/ArtifactsClientImpl.java @@ -26,18 +26,6 @@ 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; @@ -62,76 +50,52 @@ public SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } - /** The LinkedServicesImpl object to access its operations. */ - private final LinkedServicesImpl linkedServices; - - /** - * Gets the LinkedServicesImpl object to access its operations. - * - * @return the LinkedServicesImpl object. - */ - public LinkedServicesImpl getLinkedServices() { - return this.linkedServices; - } - - /** The DatasetsImpl object to access its operations. */ - private final DatasetsImpl datasets; + /** The KqlScriptsImpl object to access its operations. */ + private final KqlScriptsImpl kqlScripts; /** - * Gets the DatasetsImpl object to access its operations. + * Gets the KqlScriptsImpl object to access its operations. * - * @return the DatasetsImpl object. + * @return the KqlScriptsImpl object. */ - public DatasetsImpl getDatasets() { - return this.datasets; + public KqlScriptsImpl getKqlScripts() { + return this.kqlScripts; } - /** The PipelinesImpl object to access its operations. */ - private final PipelinesImpl pipelines; + /** The KqlScriptsOperationsImpl object to access its operations. */ + private final KqlScriptsOperationsImpl kqlScriptsOperations; /** - * Gets the PipelinesImpl object to access its operations. + * Gets the KqlScriptsOperationsImpl object to access its operations. * - * @return the PipelinesImpl object. + * @return the KqlScriptsOperationsImpl object. */ - public PipelinesImpl getPipelines() { - return this.pipelines; + public KqlScriptsOperationsImpl getKqlScriptsOperations() { + return this.kqlScriptsOperations; } - /** The PipelineRunsImpl object to access its operations. */ - private final PipelineRunsImpl pipelineRuns; - - /** - * Gets the PipelineRunsImpl object to access its operations. - * - * @return the PipelineRunsImpl object. - */ - public PipelineRunsImpl getPipelineRuns() { - return this.pipelineRuns; - } - - /** The TriggersImpl object to access its operations. */ - private final TriggersImpl triggers; + /** The SparkConfigurationsImpl object to access its operations. */ + private final SparkConfigurationsImpl sparkConfigurations; /** - * Gets the TriggersImpl object to access its operations. + * Gets the SparkConfigurationsImpl object to access its operations. * - * @return the TriggersImpl object. + * @return the SparkConfigurationsImpl object. */ - public TriggersImpl getTriggers() { - return this.triggers; + public SparkConfigurationsImpl getSparkConfigurations() { + return this.sparkConfigurations; } - /** The TriggerRunsImpl object to access its operations. */ - private final TriggerRunsImpl triggerRuns; + /** The BigDataPoolsImpl object to access its operations. */ + private final BigDataPoolsImpl bigDataPools; /** - * Gets the TriggerRunsImpl object to access its operations. + * Gets the BigDataPoolsImpl object to access its operations. * - * @return the TriggerRunsImpl object. + * @return the BigDataPoolsImpl object. */ - public TriggerRunsImpl getTriggerRuns() { - return this.triggerRuns; + public BigDataPoolsImpl getBigDataPools() { + return this.bigDataPools; } /** The DataFlowsImpl object to access its operations. */ @@ -158,28 +122,64 @@ public DataFlowDebugSessionsImpl getDataFlowDebugSessions() { return this.dataFlowDebugSessions; } - /** The SqlScriptsImpl object to access its operations. */ - private final SqlScriptsImpl sqlScripts; + /** The DatasetsImpl object to access its operations. */ + private final DatasetsImpl datasets; /** - * Gets the SqlScriptsImpl object to access its operations. + * Gets the DatasetsImpl object to access its operations. * - * @return the SqlScriptsImpl object. + * @return the DatasetsImpl object. */ - public SqlScriptsImpl getSqlScripts() { - return this.sqlScripts; + public DatasetsImpl getDatasets() { + return this.datasets; } - /** The SparkJobDefinitionsImpl object to access its operations. */ - private final SparkJobDefinitionsImpl sparkJobDefinitions; + /** The WorkspaceGitRepoManagementsImpl object to access its operations. */ + private final WorkspaceGitRepoManagementsImpl workspaceGitRepoManagements; /** - * Gets the SparkJobDefinitionsImpl object to access its operations. + * Gets the WorkspaceGitRepoManagementsImpl object to access its operations. * - * @return the SparkJobDefinitionsImpl object. + * @return the WorkspaceGitRepoManagementsImpl object. */ - public SparkJobDefinitionsImpl getSparkJobDefinitions() { - return this.sparkJobDefinitions; + public WorkspaceGitRepoManagementsImpl getWorkspaceGitRepoManagements() { + return this.workspaceGitRepoManagements; + } + + /** The IntegrationRuntimesImpl object to access its operations. */ + private final IntegrationRuntimesImpl integrationRuntimes; + + /** + * Gets the IntegrationRuntimesImpl object to access its operations. + * + * @return the IntegrationRuntimesImpl object. + */ + public IntegrationRuntimesImpl getIntegrationRuntimes() { + return this.integrationRuntimes; + } + + /** The LibrariesImpl object to access its operations. */ + private final LibrariesImpl libraries; + + /** + * Gets the LibrariesImpl object to access its operations. + * + * @return the LibrariesImpl object. + */ + public LibrariesImpl getLibraries() { + return this.libraries; + } + + /** The LinkedServicesImpl object to access its operations. */ + private final LinkedServicesImpl linkedServices; + + /** + * Gets the LinkedServicesImpl object to access its operations. + * + * @return the LinkedServicesImpl object. + */ + public LinkedServicesImpl getLinkedServices() { + return this.linkedServices; } /** The NotebooksImpl object to access its operations. */ @@ -206,100 +206,88 @@ public NotebookOperationResultsImpl getNotebookOperationResults() { return this.notebookOperationResults; } - /** The SparkConfigurationsImpl object to access its operations. */ - private final SparkConfigurationsImpl sparkConfigurations; - - /** - * Gets the SparkConfigurationsImpl object to access its operations. - * - * @return the SparkConfigurationsImpl object. - */ - public SparkConfigurationsImpl getSparkConfigurations() { - return this.sparkConfigurations; - } - - /** The BigDataPoolsImpl object to access its operations. */ - private final BigDataPoolsImpl bigDataPools; + /** The PipelinesImpl object to access its operations. */ + private final PipelinesImpl pipelines; /** - * Gets the BigDataPoolsImpl object to access its operations. + * Gets the PipelinesImpl object to access its operations. * - * @return the BigDataPoolsImpl object. + * @return the PipelinesImpl object. */ - public BigDataPoolsImpl getBigDataPools() { - return this.bigDataPools; + public PipelinesImpl getPipelines() { + return this.pipelines; } - /** The WorkspaceGitRepoManagementsImpl object to access its operations. */ - private final WorkspaceGitRepoManagementsImpl workspaceGitRepoManagements; + /** The PipelineRunsImpl object to access its operations. */ + private final PipelineRunsImpl pipelineRuns; /** - * Gets the WorkspaceGitRepoManagementsImpl object to access its operations. + * Gets the PipelineRunsImpl object to access its operations. * - * @return the WorkspaceGitRepoManagementsImpl object. + * @return the PipelineRunsImpl object. */ - public WorkspaceGitRepoManagementsImpl getWorkspaceGitRepoManagements() { - return this.workspaceGitRepoManagements; + public PipelineRunsImpl getPipelineRuns() { + return this.pipelineRuns; } - /** The IntegrationRuntimesImpl object to access its operations. */ - private final IntegrationRuntimesImpl integrationRuntimes; + /** The SparkJobDefinitionsImpl object to access its operations. */ + private final SparkJobDefinitionsImpl sparkJobDefinitions; /** - * Gets the IntegrationRuntimesImpl object to access its operations. + * Gets the SparkJobDefinitionsImpl object to access its operations. * - * @return the IntegrationRuntimesImpl object. + * @return the SparkJobDefinitionsImpl object. */ - public IntegrationRuntimesImpl getIntegrationRuntimes() { - return this.integrationRuntimes; + public SparkJobDefinitionsImpl getSparkJobDefinitions() { + return this.sparkJobDefinitions; } - /** The LibrariesImpl object to access its operations. */ - private final LibrariesImpl libraries; + /** The SqlPoolsImpl object to access its operations. */ + private final SqlPoolsImpl sqlPools; /** - * Gets the LibrariesImpl object to access its operations. + * Gets the SqlPoolsImpl object to access its operations. * - * @return the LibrariesImpl object. + * @return the SqlPoolsImpl object. */ - public LibrariesImpl getLibraries() { - return this.libraries; + public SqlPoolsImpl getSqlPools() { + return this.sqlPools; } - /** The OperationResultsImpl object to access its operations. */ - private final OperationResultsImpl operationResults; + /** The SqlScriptsImpl object to access its operations. */ + private final SqlScriptsImpl sqlScripts; /** - * Gets the OperationResultsImpl object to access its operations. + * Gets the SqlScriptsImpl object to access its operations. * - * @return the OperationResultsImpl object. + * @return the SqlScriptsImpl object. */ - public OperationResultsImpl getOperationResults() { - return this.operationResults; + public SqlScriptsImpl getSqlScripts() { + return this.sqlScripts; } - /** The OperationStatusImpl object to access its operations. */ - private final OperationStatusImpl operationStatus; + /** The TriggersImpl object to access its operations. */ + private final TriggersImpl triggers; /** - * Gets the OperationStatusImpl object to access its operations. + * Gets the TriggersImpl object to access its operations. * - * @return the OperationStatusImpl object. + * @return the TriggersImpl object. */ - public OperationStatusImpl getOperationStatus() { - return this.operationStatus; + public TriggersImpl getTriggers() { + return this.triggers; } - /** The SqlPoolsImpl object to access its operations. */ - private final SqlPoolsImpl sqlPools; + /** The TriggerRunsImpl object to access its operations. */ + private final TriggerRunsImpl triggerRuns; /** - * Gets the SqlPoolsImpl object to access its operations. + * Gets the TriggerRunsImpl object to access its operations. * - * @return the SqlPoolsImpl object. + * @return the TriggerRunsImpl object. */ - public SqlPoolsImpl getSqlPools() { - return this.sqlPools; + public TriggerRunsImpl getTriggerRuns() { + return this.triggerRuns; } /** The WorkspacesImpl object to access its operations. */ @@ -318,16 +306,14 @@ public WorkspacesImpl getWorkspaces() { * Initializes an instance of ArtifactsClient client. * * @param endpoint The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net. - * @param apiVersion Api Version. */ - public ArtifactsClientImpl(String endpoint, String apiVersion) { + public ArtifactsClientImpl(String endpoint) { this( new HttpPipelineBuilder() .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) .build(), JacksonAdapter.createDefaultSerializerAdapter(), - endpoint, - apiVersion); + endpoint); } /** @@ -335,10 +321,9 @@ public ArtifactsClientImpl(String endpoint, String apiVersion) { * * @param httpPipeline The HTTP pipeline to send requests through. * @param endpoint The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net. - * @param apiVersion Api Version. */ - public ArtifactsClientImpl(HttpPipeline httpPipeline, String endpoint, String apiVersion) { - this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint, apiVersion); + public ArtifactsClientImpl(HttpPipeline httpPipeline, String endpoint) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint); } /** @@ -347,34 +332,31 @@ public ArtifactsClientImpl(HttpPipeline httpPipeline, String endpoint, String ap * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param endpoint The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net. - * @param apiVersion Api Version. */ - public ArtifactsClientImpl( - HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint, String apiVersion) { + public ArtifactsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.endpoint = endpoint; - this.apiVersion = apiVersion; - this.linkedServices = new LinkedServicesImpl(this); - this.datasets = new DatasetsImpl(this); - this.pipelines = new PipelinesImpl(this); - this.pipelineRuns = new PipelineRunsImpl(this); - this.triggers = new TriggersImpl(this); - this.triggerRuns = new TriggerRunsImpl(this); - this.dataFlows = new DataFlowsImpl(this); - this.dataFlowDebugSessions = new DataFlowDebugSessionsImpl(this); - this.sqlScripts = new SqlScriptsImpl(this); - this.sparkJobDefinitions = new SparkJobDefinitionsImpl(this); - this.notebooks = new NotebooksImpl(this); - this.notebookOperationResults = new NotebookOperationResultsImpl(this); + this.kqlScripts = new KqlScriptsImpl(this); + this.kqlScriptsOperations = new KqlScriptsOperationsImpl(this); this.sparkConfigurations = new SparkConfigurationsImpl(this); this.bigDataPools = new BigDataPoolsImpl(this); + this.dataFlows = new DataFlowsImpl(this); + this.dataFlowDebugSessions = new DataFlowDebugSessionsImpl(this); + this.datasets = new DatasetsImpl(this); this.workspaceGitRepoManagements = new WorkspaceGitRepoManagementsImpl(this); this.integrationRuntimes = new IntegrationRuntimesImpl(this); this.libraries = new LibrariesImpl(this); - this.operationResults = new OperationResultsImpl(this); - this.operationStatus = new OperationStatusImpl(this); + this.linkedServices = new LinkedServicesImpl(this); + this.notebooks = new NotebooksImpl(this); + this.notebookOperationResults = new NotebookOperationResultsImpl(this); + this.pipelines = new PipelinesImpl(this); + this.pipelineRuns = new PipelineRunsImpl(this); + this.sparkJobDefinitions = new SparkJobDefinitionsImpl(this); this.sqlPools = new SqlPoolsImpl(this); + this.sqlScripts = new SqlScriptsImpl(this); + this.triggers = new TriggersImpl(this); + this.triggerRuns = new TriggerRunsImpl(this); this.workspaces = new WorkspacesImpl(this); } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/BigDataPoolsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/BigDataPoolsImpl.java index 1364661f006fa..4d8de4062b68a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/BigDataPoolsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/BigDataPoolsImpl.java @@ -75,13 +75,13 @@ Mono> get( * * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return FluxUtil.withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)); } /** @@ -91,12 +91,13 @@ public Mono> listWithResponseAsync() * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, accept, context); } /** @@ -104,7 +105,7 @@ public Mono> listWithResponseAsync(C * * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync() { @@ -126,7 +127,7 @@ public Mono listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync(Context context) { @@ -146,7 +147,7 @@ public Mono listAsync(Context context) { * * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public BigDataPoolResourceInfoListResult list() { @@ -160,7 +161,7 @@ public BigDataPoolResourceInfoListResult list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pool information. + * @return collection of Big Data pools. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse(Context context) { @@ -178,15 +179,10 @@ public Response listWithResponse(Context cont */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String bigDataPoolName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), - this.client.getApiVersion(), - bigDataPoolName, - accept, - context)); + context -> service.get(this.client.getEndpoint(), apiVersion, bigDataPoolName, accept, context)); } /** @@ -201,8 +197,9 @@ public Mono> getWithResponseAsync(String bigDa */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String bigDataPoolName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), bigDataPoolName, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, bigDataPoolName, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowDebugSessionsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowDebugSessionsImpl.java index 8789e2d8467d1..fd90ac6a72881 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowDebugSessionsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowDebugSessionsImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.AddDataFlowToDebugSessionResponse; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.CreateDataFlowDebugSessionRequest; import com.azure.analytics.synapse.artifacts.models.CreateDataFlowDebugSessionResponse; import com.azure.analytics.synapse.artifacts.models.DataFlowDebugCommandRequest; @@ -68,7 +68,7 @@ public final class DataFlowDebugSessionsImpl { private interface DataFlowDebugSessionsService { @Post("/createDataFlowDebugSession") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono createDataFlowDebugSession( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -78,7 +78,7 @@ Mono createDataFlowDebu @Post("/queryDataFlowDebugSessions") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> queryDataFlowDebugSessionsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -87,7 +87,7 @@ Mono> queryDataFlowDebugSessionsByW @Post("/addDataFlowToDebugSession") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> addDataFlow( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -97,7 +97,7 @@ Mono> addDataFlow( @Post("/deleteDataFlowDebugSession") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteDataFlowDebugSession( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -107,7 +107,7 @@ Mono> deleteDataFlowDebugSession( @Post("/executeDataFlowDebugCommand") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono executeCommand( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -117,7 +117,7 @@ Mono executeCommand( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> queryDataFlowDebugSessionsByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -130,18 +130,19 @@ Mono> queryDataFlowDebugSessionsByW * * @param request Data flow debug session definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono createDataFlowDebugSessionWithResponseAsync( CreateDataFlowDebugSessionRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createDataFlowDebugSession( - this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context)); + this.client.getEndpoint(), apiVersion, request, accept, context)); } /** @@ -150,16 +151,16 @@ public Mono createDataF * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono createDataFlowDebugSessionWithResponseAsync( CreateDataFlowDebugSessionRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.createDataFlowDebugSession( - this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context); + return service.createDataFlowDebugSession(this.client.getEndpoint(), apiVersion, request, accept, context); } /** @@ -167,7 +168,7 @@ public Mono createDataF * * @param request Data flow debug session definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -191,7 +192,7 @@ public Mono createDataFlowDebugSessionAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -214,7 +215,7 @@ public Mono createDataFlowDebugSessionAsync( * * @param request Data flow debug session definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -229,7 +230,7 @@ public CreateDataFlowDebugSessionResponse createDataFlowDebugSession(CreateDataF * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -242,17 +243,18 @@ public DataFlowDebugSessionsCreateDataFlowDebugSessionResponse createDataFlowDeb /** * Query all active data flow debug sessions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> queryDataFlowDebugSessionsByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.queryDataFlowDebugSessionsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -269,16 +271,16 @@ public Mono> queryDataFlowDebugSessionsB * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> queryDataFlowDebugSessionsByWorkspaceSinglePageAsync( Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.queryDataFlowDebugSessionsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.queryDataFlowDebugSessionsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -293,7 +295,7 @@ public Mono> queryDataFlowDebugSessionsB /** * Query all active data flow debug sessions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -309,7 +311,7 @@ public PagedFlux queryDataFlowDebugSessionsByWorkspace * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -323,7 +325,7 @@ public PagedFlux queryDataFlowDebugSessionsByWorkspace /** * Query all active data flow debug sessions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -337,7 +339,7 @@ public PagedIterable queryDataFlowDebugSessionsByWorks * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -351,18 +353,17 @@ public PagedIterable queryDataFlowDebugSessionsByWorks * * @param request Data flow debug session definition with debug content. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> addDataFlowWithResponseAsync( DataFlowDebugPackage request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.addDataFlow( - this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context)); + context -> service.addDataFlow(this.client.getEndpoint(), apiVersion, request, accept, context)); } /** @@ -371,15 +372,16 @@ public Mono> addDataFlowWithResponse * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> addDataFlowWithResponseAsync( DataFlowDebugPackage request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.addDataFlow(this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context); + return service.addDataFlow(this.client.getEndpoint(), apiVersion, request, accept, context); } /** @@ -387,7 +389,7 @@ public Mono> addDataFlowWithResponse * * @param request Data flow debug session definition with debug content. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -410,7 +412,7 @@ public Mono addDataFlowAsync(DataFlowDebugPac * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -432,7 +434,7 @@ public Mono addDataFlowAsync(DataFlowDebugPac * * @param request Data flow debug session definition with debug content. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -447,7 +449,7 @@ public AddDataFlowToDebugSessionResponse addDataFlow(DataFlowDebugPackage reques * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -462,17 +464,18 @@ public Response addDataFlowWithResponse( * * @param request Data flow debug session definition for deletion. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteDataFlowDebugSessionWithResponseAsync(DeleteDataFlowDebugSessionRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.deleteDataFlowDebugSession( - this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context)); + this.client.getEndpoint(), apiVersion, request, accept, context)); } /** @@ -481,16 +484,16 @@ public Mono> deleteDataFlowDebugSessionWithResponseAsync(DeleteDa * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteDataFlowDebugSessionWithResponseAsync( DeleteDataFlowDebugSessionRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteDataFlowDebugSession( - this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context); + return service.deleteDataFlowDebugSession(this.client.getEndpoint(), apiVersion, request, accept, context); } /** @@ -498,7 +501,7 @@ public Mono> deleteDataFlowDebugSessionWithResponseAsync( * * @param request Data flow debug session definition for deletion. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -513,7 +516,7 @@ public Mono deleteDataFlowDebugSessionAsync(DeleteDataFlowDebugSessionRequ * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -528,7 +531,7 @@ public Mono deleteDataFlowDebugSessionAsync(DeleteDataFlowDebugSessionRequ * * @param request Data flow debug session definition for deletion. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -542,7 +545,7 @@ public void deleteDataFlowDebugSession(DeleteDataFlowDebugSessionRequest request * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -557,18 +560,17 @@ public Response deleteDataFlowDebugSessionWithResponse( * * @param request Data flow debug command definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono executeCommandWithResponseAsync( DataFlowDebugCommandRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.executeCommand( - this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context)); + context -> service.executeCommand(this.client.getEndpoint(), apiVersion, request, accept, context)); } /** @@ -577,15 +579,16 @@ public Mono executeCommandWithRespo * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono executeCommandWithResponseAsync( DataFlowDebugCommandRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.executeCommand(this.client.getEndpoint(), this.client.getApiVersion(), request, accept, context); + return service.executeCommand(this.client.getEndpoint(), apiVersion, request, accept, context); } /** @@ -593,7 +596,7 @@ public Mono executeCommandWithRespo * * @param request Data flow debug command definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -616,7 +619,7 @@ public Mono executeCommandAsync(DataFlowDebugComma * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -639,7 +642,7 @@ public Mono executeCommandAsync( * * @param request Data flow debug command definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -654,7 +657,7 @@ public DataFlowDebugCommandResponse executeCommand(DataFlowDebugCommandRequest r * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -669,7 +672,7 @@ public DataFlowDebugSessionsExecuteCommandResponse executeCommandWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -698,7 +701,7 @@ public Mono> queryDataFlowDebugSessionsB * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowsImpl.java index 1591d754df3d2..291cc9dcd9ecb 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DataFlowsImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.DataFlowListResponse; import com.azure.analytics.synapse.artifacts.models.DataFlowResource; import com.azure.core.annotation.BodyParam; @@ -61,7 +61,7 @@ public final class DataFlowsImpl { private interface DataFlowsService { @Put("/dataflows/{dataFlowName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateDataFlow( @HostParam("endpoint") String endpoint, @PathParam("dataFlowName") String dataFlowName, @@ -73,7 +73,7 @@ Mono> createOrUpdateDataFlow( @Get("/dataflows/{dataFlowName}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getDataFlow( @HostParam("endpoint") String endpoint, @PathParam("dataFlowName") String dataFlowName, @@ -84,7 +84,7 @@ Mono> getDataFlow( @Delete("/dataflows/{dataFlowName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteDataFlow( @HostParam("endpoint") String endpoint, @PathParam("dataFlowName") String dataFlowName, @@ -94,7 +94,7 @@ Mono> deleteDataFlow( @Post("/dataflows/{dataFlowName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renameDataFlow( @HostParam("endpoint") String endpoint, @PathParam("dataFlowName") String dataFlowName, @@ -105,7 +105,7 @@ Mono> renameDataFlow( @Get("/dataflows") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getDataFlowsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -114,7 +114,7 @@ Mono> getDataFlowsByWorkspace( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getDataFlowsByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -130,20 +130,21 @@ Mono> getDataFlowsByWorkspaceNext( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateDataFlowWithResponseAsync( String dataFlowName, DataFlowResource dataFlow, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateDataFlow( this.client.getEndpoint(), dataFlowName, - this.client.getApiVersion(), + apiVersion, ifMatch, dataFlow, accept, @@ -159,22 +160,17 @@ public Mono> createOrUpdateDataFlowWithResponseAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateDataFlowWithResponseAsync( String dataFlowName, DataFlowResource dataFlow, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateDataFlow( - this.client.getEndpoint(), - dataFlowName, - this.client.getApiVersion(), - ifMatch, - dataFlow, - accept, - context); + this.client.getEndpoint(), dataFlowName, apiVersion, ifMatch, dataFlow, accept, context); } /** @@ -185,7 +181,7 @@ public Mono> createOrUpdateDataFlowWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -209,7 +205,7 @@ public Mono createOrUpdateDataFlowAsync( * @param dataFlowName The data flow name. * @param dataFlow Data flow resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -236,7 +232,7 @@ public Mono createOrUpdateDataFlowAsync(String dataFlowName, D * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -262,7 +258,7 @@ public Mono createOrUpdateDataFlowAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -277,7 +273,7 @@ public DataFlowResource createOrUpdateDataFlow(String dataFlowName, DataFlowReso * @param dataFlowName The data flow name. * @param dataFlow Data flow resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -296,7 +292,7 @@ public DataFlowResource createOrUpdateDataFlow(String dataFlowName, DataFlowReso * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -313,22 +309,18 @@ public Response createOrUpdateDataFlowWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getDataFlowWithResponseAsync(String dataFlowName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getDataFlow( - this.client.getEndpoint(), - dataFlowName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)); + this.client.getEndpoint(), dataFlowName, apiVersion, ifNoneMatch, accept, context)); } /** @@ -339,16 +331,16 @@ public Mono> getDataFlowWithResponseAsync(String data * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getDataFlowWithResponseAsync( String dataFlowName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getDataFlow( - this.client.getEndpoint(), dataFlowName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return service.getDataFlow(this.client.getEndpoint(), dataFlowName, apiVersion, ifNoneMatch, accept, context); } /** @@ -358,7 +350,7 @@ public Mono> getDataFlowWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -380,7 +372,7 @@ public Mono getDataFlowAsync(String dataFlowName, String ifNon * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -406,7 +398,7 @@ public Mono getDataFlowAsync(String dataFlowName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -430,7 +422,7 @@ public Mono getDataFlowAsync(String dataFlowName, String ifNon * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -444,7 +436,7 @@ public DataFlowResource getDataFlow(String dataFlowName, String ifNoneMatch) { * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -462,7 +454,7 @@ public DataFlowResource getDataFlow(String dataFlowName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -477,17 +469,17 @@ public Response getDataFlowWithResponse( * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteDataFlowWithResponseAsync(String dataFlowName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.deleteDataFlow( - this.client.getEndpoint(), dataFlowName, this.client.getApiVersion(), accept, context)); + service.deleteDataFlow(this.client.getEndpoint(), dataFlowName, apiVersion, accept, context)); } /** @@ -496,15 +488,15 @@ public Mono> deleteDataFlowWithResponseAsync(String dataFlowName) * @param dataFlowName The data flow name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteDataFlowWithResponseAsync(String dataFlowName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteDataFlow( - this.client.getEndpoint(), dataFlowName, this.client.getApiVersion(), accept, context); + return service.deleteDataFlow(this.client.getEndpoint(), dataFlowName, apiVersion, accept, context); } /** @@ -512,7 +504,7 @@ public Mono> deleteDataFlowWithResponseAsync(String dataFlowName, * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -527,7 +519,7 @@ public Mono deleteDataFlowAsync(String dataFlowName) { * @param dataFlowName The data flow name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -541,7 +533,7 @@ public Mono deleteDataFlowAsync(String dataFlowName, Context context) { * * @param dataFlowName The data flow name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -555,7 +547,7 @@ public void deleteDataFlow(String dataFlowName) { * @param dataFlowName The data flow name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -570,22 +562,18 @@ public Response deleteDataFlowWithResponse(String dataFlowName, Context co * @param dataFlowName The data flow name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameDataFlowWithResponseAsync(String dataFlowName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameDataFlow( - this.client.getEndpoint(), - dataFlowName, - this.client.getApiVersion(), - request, - accept, - context)); + this.client.getEndpoint(), dataFlowName, apiVersion, request, accept, context)); } /** @@ -595,16 +583,16 @@ public Mono> renameDataFlowWithResponseAsync(String dataFlowName, * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameDataFlowWithResponseAsync( String dataFlowName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.renameDataFlow( - this.client.getEndpoint(), dataFlowName, this.client.getApiVersion(), request, accept, context); + return service.renameDataFlow(this.client.getEndpoint(), dataFlowName, apiVersion, request, accept, context); } /** @@ -613,7 +601,7 @@ public Mono> renameDataFlowWithResponseAsync( * @param dataFlowName The data flow name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -629,7 +617,7 @@ public Mono renameDataFlowAsync(String dataFlowName, ArtifactRenameRequest * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -645,7 +633,7 @@ public Mono renameDataFlowAsync(String dataFlowName, ArtifactRenameRequest * @param dataFlowName The data flow name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -660,7 +648,7 @@ public void renameDataFlow(String dataFlowName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -673,17 +661,17 @@ public Response renameDataFlowWithResponse( /** * Lists data flows. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getDataFlowsByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.getDataFlowsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + service.getDataFlowsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -700,14 +688,15 @@ public Mono> getDataFlowsByWorkspaceSinglePageAs * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getDataFlowsByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getDataFlowsByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getDataFlowsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -722,7 +711,7 @@ public Mono> getDataFlowsByWorkspaceSinglePageAs /** * Lists data flows. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -738,7 +727,7 @@ public PagedFlux getDataFlowsByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -752,7 +741,7 @@ public PagedFlux getDataFlowsByWorkspaceAsync(Context context) /** * Lists data flows. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -766,7 +755,7 @@ public PagedIterable getDataFlowsByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -780,7 +769,7 @@ public PagedIterable getDataFlowsByWorkspace(Context context) * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -808,7 +797,7 @@ public Mono> getDataFlowsByWorkspaceNextSinglePa * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DatasetsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DatasetsImpl.java index 77aaf0173b729..046ed16a16d09 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DatasetsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/DatasetsImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.DatasetListResponse; import com.azure.analytics.synapse.artifacts.models.DatasetResource; import com.azure.core.annotation.BodyParam; @@ -60,7 +60,7 @@ public final class DatasetsImpl { private interface DatasetsService { @Get("/datasets") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getDatasetsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -69,7 +69,7 @@ Mono> getDatasetsByWorkspace( @Put("/datasets/{datasetName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateDataset( @HostParam("endpoint") String endpoint, @PathParam("datasetName") String datasetName, @@ -81,7 +81,7 @@ Mono> createOrUpdateDataset( @Get("/datasets/{datasetName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getDataset( @HostParam("endpoint") String endpoint, @PathParam("datasetName") String datasetName, @@ -92,7 +92,7 @@ Mono> getDataset( @Delete("/datasets/{datasetName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteDataset( @HostParam("endpoint") String endpoint, @PathParam("datasetName") String datasetName, @@ -102,7 +102,7 @@ Mono> deleteDataset( @Post("/datasets/{datasetName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renameDataset( @HostParam("endpoint") String endpoint, @PathParam("datasetName") String datasetName, @@ -113,7 +113,7 @@ Mono> renameDataset( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getDatasetsByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -124,17 +124,17 @@ Mono> getDatasetsByWorkspaceNext( /** * Lists datasets. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getDatasetsByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.getDatasetsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + service.getDatasetsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -151,14 +151,15 @@ public Mono> getDatasetsByWorkspaceSinglePageAsyn * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getDatasetsByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getDatasetsByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getDatasetsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -173,7 +174,7 @@ public Mono> getDatasetsByWorkspaceSinglePageAsyn /** * Lists datasets. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -189,7 +190,7 @@ public PagedFlux getDatasetsByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -203,7 +204,7 @@ public PagedFlux getDatasetsByWorkspaceAsync(Context context) { /** * Lists datasets. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -217,7 +218,7 @@ public PagedIterable getDatasetsByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -234,24 +235,19 @@ public PagedIterable getDatasetsByWorkspace(Context context) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateDatasetWithResponseAsync( String datasetName, DatasetResource dataset, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateDataset( - this.client.getEndpoint(), - datasetName, - this.client.getApiVersion(), - ifMatch, - dataset, - accept, - context)); + this.client.getEndpoint(), datasetName, apiVersion, ifMatch, dataset, accept, context)); } /** @@ -263,16 +259,17 @@ public Mono> createOrUpdateDatasetWithResponseAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateDatasetWithResponseAsync( String datasetName, DatasetResource dataset, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateDataset( - this.client.getEndpoint(), datasetName, this.client.getApiVersion(), ifMatch, dataset, accept, context); + this.client.getEndpoint(), datasetName, apiVersion, ifMatch, dataset, accept, context); } /** @@ -283,7 +280,7 @@ public Mono> createOrUpdateDatasetWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -307,7 +304,7 @@ public Mono createOrUpdateDatasetAsync( * @param datasetName The dataset name. * @param dataset Dataset resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -334,7 +331,7 @@ public Mono createOrUpdateDatasetAsync(String datasetName, Data * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -360,7 +357,7 @@ public Mono createOrUpdateDatasetAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -375,7 +372,7 @@ public DatasetResource createOrUpdateDataset(String datasetName, DatasetResource * @param datasetName The dataset name. * @param dataset Dataset resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -394,7 +391,7 @@ public DatasetResource createOrUpdateDataset(String datasetName, DatasetResource * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -411,22 +408,18 @@ public Response createOrUpdateDatasetWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getDatasetWithResponseAsync(String datasetName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getDataset( - this.client.getEndpoint(), - datasetName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)); + this.client.getEndpoint(), datasetName, apiVersion, ifNoneMatch, accept, context)); } /** @@ -437,16 +430,16 @@ public Mono> getDatasetWithResponseAsync(String datase * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getDatasetWithResponseAsync( String datasetName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getDataset( - this.client.getEndpoint(), datasetName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return service.getDataset(this.client.getEndpoint(), datasetName, apiVersion, ifNoneMatch, accept, context); } /** @@ -456,7 +449,7 @@ public Mono> getDatasetWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -478,7 +471,7 @@ public Mono getDatasetAsync(String datasetName, String ifNoneMa * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -504,7 +497,7 @@ public Mono getDatasetAsync(String datasetName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -528,7 +521,7 @@ public Mono getDatasetAsync(String datasetName, String ifNoneMa * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -542,7 +535,7 @@ public DatasetResource getDataset(String datasetName, String ifNoneMatch) { * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -560,7 +553,7 @@ public DatasetResource getDataset(String datasetName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -574,17 +567,16 @@ public Response getDatasetWithResponse(String datasetName, Stri * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteDatasetWithResponseAsync(String datasetName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.deleteDataset( - this.client.getEndpoint(), datasetName, this.client.getApiVersion(), accept, context)); + context -> service.deleteDataset(this.client.getEndpoint(), datasetName, apiVersion, accept, context)); } /** @@ -593,15 +585,15 @@ public Mono> deleteDatasetWithResponseAsync(String datasetName) { * @param datasetName The dataset name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteDatasetWithResponseAsync(String datasetName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteDataset( - this.client.getEndpoint(), datasetName, this.client.getApiVersion(), accept, context); + return service.deleteDataset(this.client.getEndpoint(), datasetName, apiVersion, accept, context); } /** @@ -609,7 +601,7 @@ public Mono> deleteDatasetWithResponseAsync(String datasetName, C * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -624,7 +616,7 @@ public Mono deleteDatasetAsync(String datasetName) { * @param datasetName The dataset name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -638,7 +630,7 @@ public Mono deleteDatasetAsync(String datasetName, Context context) { * * @param datasetName The dataset name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -652,7 +644,7 @@ public void deleteDataset(String datasetName) { * @param datasetName The dataset name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -667,22 +659,18 @@ public Response deleteDatasetWithResponse(String datasetName, Context cont * @param datasetName The dataset name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameDatasetWithResponseAsync(String datasetName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameDataset( - this.client.getEndpoint(), - datasetName, - this.client.getApiVersion(), - request, - accept, - context)); + this.client.getEndpoint(), datasetName, apiVersion, request, accept, context)); } /** @@ -692,16 +680,16 @@ public Mono> renameDatasetWithResponseAsync(String datasetName, A * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameDatasetWithResponseAsync( String datasetName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.renameDataset( - this.client.getEndpoint(), datasetName, this.client.getApiVersion(), request, accept, context); + return service.renameDataset(this.client.getEndpoint(), datasetName, apiVersion, request, accept, context); } /** @@ -710,7 +698,7 @@ public Mono> renameDatasetWithResponseAsync( * @param datasetName The dataset name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -726,7 +714,7 @@ public Mono renameDatasetAsync(String datasetName, ArtifactRenameRequest r * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -742,7 +730,7 @@ public Mono renameDatasetAsync(String datasetName, ArtifactRenameRequest r * @param datasetName The dataset name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -757,7 +745,7 @@ public void renameDataset(String datasetName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -772,7 +760,7 @@ public Response renameDatasetWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -800,7 +788,7 @@ public Mono> getDatasetsByWorkspaceNextSinglePage * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/IntegrationRuntimesImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/IntegrationRuntimesImpl.java index 3fa9c22f6a759..dd1fb26b937a1 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/IntegrationRuntimesImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/IntegrationRuntimesImpl.java @@ -80,9 +80,9 @@ Mono> get( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return FluxUtil.withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)); } /** @@ -96,8 +96,9 @@ public Mono> listWithResponseAsync() { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, accept, context); } /** @@ -179,15 +180,10 @@ public Response listWithResponse(Context context */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String integrationRuntimeName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), - this.client.getApiVersion(), - integrationRuntimeName, - accept, - context)); + context -> service.get(this.client.getEndpoint(), apiVersion, integrationRuntimeName, accept, context)); } /** @@ -203,9 +199,9 @@ public Mono> getWithResponseAsync(String in @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String integrationRuntimeName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.get( - this.client.getEndpoint(), this.client.getApiVersion(), integrationRuntimeName, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, integrationRuntimeName, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsImpl.java new file mode 100644 index 0000000000000..8ed2f4c51c235 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsImpl.java @@ -0,0 +1,225 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.implementation; + +import com.azure.analytics.synapse.artifacts.models.ErrorContractException; +import com.azure.analytics.synapse.artifacts.models.KqlScriptResource; +import com.azure.analytics.synapse.artifacts.models.KqlScriptsResourceCollectionResponse; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +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.util.Context; +import com.azure.core.util.FluxUtil; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in KqlScripts. */ +public final class KqlScriptsImpl { + /** The proxy service used to perform REST calls. */ + private final KqlScriptsService service; + + /** The service client containing this operation class. */ + private final ArtifactsClientImpl client; + + /** + * Initializes an instance of KqlScriptsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + KqlScriptsImpl(ArtifactsClientImpl client) { + this.service = + RestProxy.create(KqlScriptsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ArtifactsClientKqlScripts to be used by the proxy service to perform + * REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ArtifactsClientKqlSc") + private interface KqlScriptsService { + @Get("/kqlScripts") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> getAll( + @HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> getAllNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Get all KQL scripts. + * + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAllSinglePageAsync() { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.getAll(this.client.getEndpoint(), apiVersion, accept, context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().getValue(), + res.getValue().getNextLink(), + null)); + } + + /** + * Get all KQL scripts. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAllSinglePageAsync(Context context) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return service.getAll(this.client.getEndpoint(), apiVersion, accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().getValue(), + res.getValue().getNextLink(), + null)); + } + + /** + * Get all KQL scripts. + * + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllAsync() { + return new PagedFlux<>(() -> getAllSinglePageAsync(), nextLink -> getAllNextSinglePageAsync(nextLink)); + } + + /** + * Get all KQL scripts. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux getAllAsync(Context context) { + return new PagedFlux<>( + () -> getAllSinglePageAsync(context), nextLink -> getAllNextSinglePageAsync(nextLink, context)); + } + + /** + * Get all KQL scripts. + * + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAll() { + return new PagedIterable<>(getAllAsync()); + } + + /** + * Get all KQL scripts. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all KQL scripts. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable getAll(Context context) { + return new PagedIterable<>(getAllAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAllNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.getAllNext(nextLink, this.client.getEndpoint(), accept, context)) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().getValue(), + res.getValue().getNextLink(), + null)); + } + + /** + * 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 ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAllNextSinglePageAsync(String nextLink, Context context) { + final String accept = "application/json"; + return service.getAllNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().getValue(), + res.getValue().getNextLink(), + null)); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsOperationsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsOperationsImpl.java new file mode 100644 index 0000000000000..b14277e4ae3ef --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/KqlScriptsOperationsImpl.java @@ -0,0 +1,520 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.implementation; + +import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; +import com.azure.analytics.synapse.artifacts.models.ErrorContractException; +import com.azure.analytics.synapse.artifacts.models.KqlScriptResource; +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.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.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in KqlScriptsOperations. */ +public final class KqlScriptsOperationsImpl { + /** The proxy service used to perform REST calls. */ + private final KqlScriptsService service; + + /** The service client containing this operation class. */ + private final ArtifactsClientImpl client; + + /** + * Initializes an instance of KqlScriptsOperationsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + KqlScriptsOperationsImpl(ArtifactsClientImpl client) { + this.service = + RestProxy.create(KqlScriptsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ArtifactsClientKqlScriptsOperations to be used by the proxy service + * to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ArtifactsClientKqlSc") + private interface KqlScriptsService { + @Put("/kqlScripts/{kqlScriptName}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> createOrUpdate( + @HostParam("endpoint") String endpoint, + @PathParam("kqlScriptName") String kqlScriptName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") KqlScriptResource kqlScript, + @HeaderParam("Accept") String accept, + Context context); + + @Get("/kqlScripts/{kqlScriptName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> getByName( + @HostParam("endpoint") String endpoint, + @PathParam("kqlScriptName") String kqlScriptName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Delete("/kqlScripts/{kqlScriptName}") + @ExpectedResponses({200, 202, 204}) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> deleteByName( + @HostParam("endpoint") String endpoint, + @PathParam("kqlScriptName") String kqlScriptName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Post("/kqlScripts/{kqlScriptName}/rename") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> rename( + @HostParam("endpoint") String endpoint, + @PathParam("kqlScriptName") String kqlScriptName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") ArtifactRenameRequest renameRequest, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String kqlScriptName, KqlScriptResource kqlScript) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.createOrUpdate( + this.client.getEndpoint(), kqlScriptName, apiVersion, kqlScript, accept, context)); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String kqlScriptName, KqlScriptResource kqlScript, Context context) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return service.createOrUpdate(this.client.getEndpoint(), kqlScriptName, apiVersion, kqlScript, accept, context); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String kqlScriptName, KqlScriptResource kqlScript) { + return createOrUpdateWithResponseAsync(kqlScriptName, kqlScript) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String kqlScriptName, KqlScriptResource kqlScript, Context context) { + return createOrUpdateWithResponseAsync(kqlScriptName, kqlScript, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KqlScriptResource createOrUpdate(String kqlScriptName, KqlScriptResource kqlScript) { + return createOrUpdateAsync(kqlScriptName, kqlScript).block(); + } + + /** + * Creates or updates a KQL Script. + * + * @param kqlScriptName KQL script name. + * @param kqlScript KQL script. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse( + String kqlScriptName, KqlScriptResource kqlScript, Context context) { + return createOrUpdateWithResponseAsync(kqlScriptName, kqlScript, context).block(); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByNameWithResponseAsync(String kqlScriptName) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.getByName(this.client.getEndpoint(), kqlScriptName, apiVersion, accept, context)); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByNameWithResponseAsync(String kqlScriptName, Context context) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return service.getByName(this.client.getEndpoint(), kqlScriptName, apiVersion, accept, context); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByNameAsync(String kqlScriptName) { + return getByNameWithResponseAsync(kqlScriptName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByNameAsync(String kqlScriptName, Context context) { + return getByNameWithResponseAsync(kqlScriptName, context) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KqlScriptResource getByName(String kqlScriptName) { + return getByNameAsync(kqlScriptName).block(); + } + + /** + * Get KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kQL script by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByNameWithResponse(String kqlScriptName, Context context) { + return getByNameWithResponseAsync(kqlScriptName, context).block(); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteByNameWithResponseAsync(String kqlScriptName) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.deleteByName(this.client.getEndpoint(), kqlScriptName, apiVersion, accept, context)); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> deleteByNameWithResponseAsync(String kqlScriptName, Context context) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return service.deleteByName(this.client.getEndpoint(), kqlScriptName, apiVersion, accept, context); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteByNameAsync(String kqlScriptName) { + return deleteByNameWithResponseAsync(kqlScriptName).flatMap((Response res) -> Mono.empty()); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteByNameAsync(String kqlScriptName, Context context) { + return deleteByNameWithResponseAsync(kqlScriptName, context).flatMap((Response res) -> Mono.empty()); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException 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 deleteByName(String kqlScriptName) { + deleteByNameAsync(kqlScriptName).block(); + } + + /** + * Delete KQL script by name. + * + * @param kqlScriptName KQL script name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteByNameWithResponse(String kqlScriptName, Context context) { + return deleteByNameWithResponseAsync(kqlScriptName, context).block(); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> renameWithResponseAsync(String kqlScriptName, ArtifactRenameRequest renameRequest) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return FluxUtil.withContext( + context -> + service.rename( + this.client.getEndpoint(), kqlScriptName, apiVersion, renameRequest, accept, context)); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> renameWithResponseAsync( + String kqlScriptName, ArtifactRenameRequest renameRequest, Context context) { + final String apiVersion = "2021-06-01-preview"; + final String accept = "application/json"; + return service.rename(this.client.getEndpoint(), kqlScriptName, apiVersion, renameRequest, accept, context); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono renameAsync(String kqlScriptName, ArtifactRenameRequest renameRequest) { + return renameWithResponseAsync(kqlScriptName, renameRequest).flatMap((Response res) -> Mono.empty()); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono renameAsync(String kqlScriptName, ArtifactRenameRequest renameRequest, Context context) { + return renameWithResponseAsync(kqlScriptName, renameRequest, context) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException 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 rename(String kqlScriptName, ArtifactRenameRequest renameRequest) { + renameAsync(kqlScriptName, renameRequest).block(); + } + + /** + * Rename KQL script. + * + * @param kqlScriptName KQL script name. + * @param renameRequest Rename request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response renameWithResponse( + String kqlScriptName, ArtifactRenameRequest renameRequest, Context context) { + return renameWithResponseAsync(kqlScriptName, renameRequest, context).block(); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LibrariesImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LibrariesImpl.java index 05a67ca6b4f3b..532eae46af9f8 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LibrariesImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LibrariesImpl.java @@ -4,7 +4,7 @@ package com.azure.analytics.synapse.artifacts.implementation; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.LibraryListResponse; import com.azure.analytics.synapse.artifacts.models.LibraryResource; import com.azure.analytics.synapse.artifacts.models.LibraryResourceInfo; @@ -63,7 +63,7 @@ public final class LibrariesImpl { private interface LibrariesService { @Get("/libraries") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> list( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -72,7 +72,7 @@ Mono> list( @Post("/libraries/{libraryName}/flush") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> flush( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -82,7 +82,7 @@ Mono> flush( @Get("/libraryOperationResults/{operationId}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getOperationResult( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -92,7 +92,7 @@ Mono> getOperationResult( @Delete("/libraries/{libraryName}") @ExpectedResponses({200, 202, 409}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> delete( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -102,7 +102,7 @@ Mono> delete( @Get("/libraries/{libraryName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> get( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -112,7 +112,7 @@ Mono> get( @Put("/libraries/{libraryName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> create( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -122,7 +122,7 @@ Mono> create( @Put("/libraries/{libraryName}") @ExpectedResponses({201}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> append( @HostParam("endpoint") String endpoint, @QueryParam("comp") String comp, @@ -136,7 +136,7 @@ Mono> append( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -147,16 +147,15 @@ Mono> listNext( /** * Lists Library. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -173,14 +172,15 @@ public Mono> listSinglePageAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.list(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -195,7 +195,7 @@ public Mono> listSinglePageAsync(Context context) /** * Lists Library. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -209,7 +209,7 @@ public PagedFlux listAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -222,7 +222,7 @@ public PagedFlux listAsync(Context context) { /** * Lists Library. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -236,7 +236,7 @@ public PagedIterable list() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -251,17 +251,16 @@ public PagedIterable list(Context context) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> flushWithResponseAsync(String libraryName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.flush( - this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context)); + context -> service.flush(this.client.getEndpoint(), apiVersion, libraryName, accept, context)); } /** @@ -271,14 +270,15 @@ public Mono> flushWithResponseAsync(String library * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> flushWithResponseAsync(String libraryName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.flush(this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context); + return service.flush(this.client.getEndpoint(), apiVersion, libraryName, accept, context); } /** @@ -287,7 +287,7 @@ public Mono> flushWithResponseAsync(String library * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -311,7 +311,7 @@ public Mono flushAsync(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -334,7 +334,7 @@ public Mono flushAsync(String libraryName, Context context) * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -350,7 +350,7 @@ public LibraryResourceInfo flush(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -364,17 +364,18 @@ public Response flushWithResponse(String libraryName, Conte * * @param operationId operation id for which status is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getOperationResultWithResponseAsync(String operationId) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getOperationResult( - this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context)); + this.client.getEndpoint(), apiVersion, operationId, accept, context)); } /** @@ -383,15 +384,15 @@ public Mono> getOperationResultWithResponseAsync(Strin * @param operationId operation id for which status is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getOperationResultWithResponseAsync(String operationId, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getOperationResult( - this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context); + return service.getOperationResult(this.client.getEndpoint(), apiVersion, operationId, accept, context); } /** @@ -399,7 +400,7 @@ public Mono> getOperationResultWithResponseAsync(Strin * * @param operationId operation id for which status is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -422,7 +423,7 @@ public Mono getOperationResultAsync(String operationId) { * @param operationId operation id for which status is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -444,7 +445,7 @@ public Mono getOperationResultAsync(String operationId, Context * * @param operationId operation id for which status is requested. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -459,7 +460,7 @@ public LibraryResource getOperationResult(String operationId) { * @param operationId operation id for which status is requested. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return operation result for Library. */ @@ -474,17 +475,16 @@ public Response getOperationResultWithResponse(String operation * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync(String libraryName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.delete( - this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context)); + context -> service.delete(this.client.getEndpoint(), apiVersion, libraryName, accept, context)); } /** @@ -494,14 +494,15 @@ public Mono> deleteWithResponseAsync(String librar * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync(String libraryName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context); + return service.delete(this.client.getEndpoint(), apiVersion, libraryName, accept, context); } /** @@ -510,7 +511,7 @@ public Mono> deleteWithResponseAsync(String librar * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -534,7 +535,7 @@ public Mono deleteAsync(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -557,7 +558,7 @@ public Mono deleteAsync(String libraryName, Context context * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -573,7 +574,7 @@ public LibraryResourceInfo delete(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -588,17 +589,16 @@ public Response deleteWithResponse(String libraryName, Cont * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String libraryName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context)); + context -> service.get(this.client.getEndpoint(), apiVersion, libraryName, accept, context)); } /** @@ -608,14 +608,15 @@ public Mono> getWithResponseAsync(String libraryName) * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String libraryName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, libraryName, accept, context); } /** @@ -624,7 +625,7 @@ public Mono> getWithResponseAsync(String libraryName, * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -648,7 +649,7 @@ public Mono getAsync(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -671,7 +672,7 @@ public Mono getAsync(String libraryName, Context context) { * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -687,7 +688,7 @@ public LibraryResource get(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library. */ @@ -702,17 +703,16 @@ public Response getWithResponse(String libraryName, Context con * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync(String libraryName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.create( - this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context)); + context -> service.create(this.client.getEndpoint(), apiVersion, libraryName, accept, context)); } /** @@ -722,14 +722,15 @@ public Mono> createWithResponseAsync(String librar * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync(String libraryName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.create(this.client.getEndpoint(), this.client.getApiVersion(), libraryName, accept, context); + return service.create(this.client.getEndpoint(), apiVersion, libraryName, accept, context); } /** @@ -738,7 +739,7 @@ public Mono> createWithResponseAsync(String librar * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -762,7 +763,7 @@ public Mono createAsync(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -785,7 +786,7 @@ public Mono createAsync(String libraryName, Context context * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the extension * length. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -801,7 +802,7 @@ public LibraryResourceInfo create(String libraryName) { * length. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -822,7 +823,7 @@ public Response createWithResponse(String libraryName, Cont * appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -830,13 +831,14 @@ public Response createWithResponse(String libraryName, Cont public Mono> appendWithResponseAsync( String libraryName, Flux content, long contentLength, Long blobConditionAppendPosition) { final String comp = "appendblock"; + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.append( this.client.getEndpoint(), comp, - this.client.getApiVersion(), + apiVersion, libraryName, blobConditionAppendPosition, content, @@ -858,7 +860,7 @@ public Mono> appendWithResponseAsync( * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -870,11 +872,12 @@ public Mono> appendWithResponseAsync( Long blobConditionAppendPosition, Context context) { final String comp = "appendblock"; + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.append( this.client.getEndpoint(), comp, - this.client.getApiVersion(), + apiVersion, libraryName, blobConditionAppendPosition, content, @@ -895,7 +898,7 @@ public Mono> appendWithResponseAsync( * appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -915,7 +918,7 @@ public Mono appendAsync( * @param content Library file chunk. * @param contentLength The contentLength parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -939,7 +942,7 @@ public Mono appendAsync(String libraryName, Flux content, long * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -966,7 +969,7 @@ public Mono appendAsync( * appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -984,7 +987,7 @@ public void append( * @param content Library file chunk. * @param contentLength The contentLength parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -1006,7 +1009,7 @@ public void append(String libraryName, Flux content, long contentLen * with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1026,7 +1029,7 @@ public Response appendWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ @@ -1051,7 +1054,7 @@ public Mono> listNextSinglePageAsync(String nextL * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Library resources. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LinkedServicesImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LinkedServicesImpl.java index cba875f2fb3bf..27237f5516c7b 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LinkedServicesImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/LinkedServicesImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.LinkedServiceListResponse; import com.azure.analytics.synapse.artifacts.models.LinkedServiceResource; import com.azure.core.annotation.BodyParam; @@ -61,7 +61,7 @@ public final class LinkedServicesImpl { private interface LinkedServicesService { @Get("/linkedservices") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getLinkedServicesByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -70,7 +70,7 @@ Mono> getLinkedServicesByWorkspace( @Put("/linkedservices/{linkedServiceName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateLinkedService( @HostParam("endpoint") String endpoint, @PathParam("linkedServiceName") String linkedServiceName, @@ -82,7 +82,7 @@ Mono> createOrUpdateLinkedService( @Get("/linkedservices/{linkedServiceName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getLinkedService( @HostParam("endpoint") String endpoint, @PathParam("linkedServiceName") String linkedServiceName, @@ -93,7 +93,7 @@ Mono> getLinkedService( @Delete("/linkedservices/{linkedServiceName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteLinkedService( @HostParam("endpoint") String endpoint, @PathParam("linkedServiceName") String linkedServiceName, @@ -103,7 +103,7 @@ Mono> deleteLinkedService( @Post("/linkedservices/{linkedServiceName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renameLinkedService( @HostParam("endpoint") String endpoint, @PathParam("linkedServiceName") String linkedServiceName, @@ -114,7 +114,7 @@ Mono> renameLinkedService( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getLinkedServicesByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -125,17 +125,18 @@ Mono> getLinkedServicesByWorkspaceNext( /** * Lists linked services. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getLinkedServicesByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getLinkedServicesByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -152,15 +153,15 @@ public Mono> getLinkedServicesByWorkspaceSi * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getLinkedServicesByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getLinkedServicesByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getLinkedServicesByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -175,7 +176,7 @@ public Mono> getLinkedServicesByWorkspaceSi /** * Lists linked services. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -191,7 +192,7 @@ public PagedFlux getLinkedServicesByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -205,7 +206,7 @@ public PagedFlux getLinkedServicesByWorkspaceAsync(Contex /** * Lists linked services. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -219,7 +220,7 @@ public PagedIterable getLinkedServicesByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -236,20 +237,21 @@ public PagedIterable getLinkedServicesByWorkspace(Context * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateLinkedServiceWithResponseAsync( String linkedServiceName, LinkedServiceResource linkedService, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateLinkedService( this.client.getEndpoint(), linkedServiceName, - this.client.getApiVersion(), + apiVersion, ifMatch, linkedService, accept, @@ -265,22 +267,17 @@ public Mono> createOrUpdateLinkedServiceWithResp * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateLinkedServiceWithResponseAsync( String linkedServiceName, LinkedServiceResource linkedService, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateLinkedService( - this.client.getEndpoint(), - linkedServiceName, - this.client.getApiVersion(), - ifMatch, - linkedService, - accept, - context); + this.client.getEndpoint(), linkedServiceName, apiVersion, ifMatch, linkedService, accept, context); } /** @@ -291,7 +288,7 @@ public Mono> createOrUpdateLinkedServiceWithResp * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -315,7 +312,7 @@ public Mono createOrUpdateLinkedServiceAsync( * @param linkedServiceName The linked service name. * @param linkedService Linked service resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -343,7 +340,7 @@ public Mono createOrUpdateLinkedServiceAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -369,7 +366,7 @@ public Mono createOrUpdateLinkedServiceAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -385,7 +382,7 @@ public LinkedServiceResource createOrUpdateLinkedService( * @param linkedServiceName The linked service name. * @param linkedService Linked service resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -405,7 +402,7 @@ public LinkedServiceResource createOrUpdateLinkedService( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -422,20 +419,21 @@ public Response createOrUpdateLinkedServiceWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getLinkedServiceWithResponseAsync( String linkedServiceName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getLinkedService( this.client.getEndpoint(), linkedServiceName, - this.client.getApiVersion(), + apiVersion, ifNoneMatch, accept, context)); @@ -449,21 +447,17 @@ public Mono> getLinkedServiceWithResponseAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getLinkedServiceWithResponseAsync( String linkedServiceName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.getLinkedService( - this.client.getEndpoint(), - linkedServiceName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); + this.client.getEndpoint(), linkedServiceName, apiVersion, ifNoneMatch, accept, context); } /** @@ -473,7 +467,7 @@ public Mono> getLinkedServiceWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -495,7 +489,7 @@ public Mono getLinkedServiceAsync(String linkedServiceNam * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -521,7 +515,7 @@ public Mono getLinkedServiceAsync(String linkedServiceNam * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -546,7 +540,7 @@ public Mono getLinkedServiceAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -560,7 +554,7 @@ public LinkedServiceResource getLinkedService(String linkedServiceName, String i * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -578,7 +572,7 @@ public LinkedServiceResource getLinkedService(String linkedServiceName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -593,21 +587,18 @@ public Response getLinkedServiceWithResponse( * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteLinkedServiceWithResponseAsync(String linkedServiceName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.deleteLinkedService( - this.client.getEndpoint(), - linkedServiceName, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), linkedServiceName, apiVersion, accept, context)); } /** @@ -616,15 +607,15 @@ public Mono> deleteLinkedServiceWithResponseAsync(String linkedSe * @param linkedServiceName The linked service name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteLinkedServiceWithResponseAsync(String linkedServiceName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteLinkedService( - this.client.getEndpoint(), linkedServiceName, this.client.getApiVersion(), accept, context); + return service.deleteLinkedService(this.client.getEndpoint(), linkedServiceName, apiVersion, accept, context); } /** @@ -632,7 +623,7 @@ public Mono> deleteLinkedServiceWithResponseAsync(String linkedSe * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -647,7 +638,7 @@ public Mono deleteLinkedServiceAsync(String linkedServiceName) { * @param linkedServiceName The linked service name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -662,7 +653,7 @@ public Mono deleteLinkedServiceAsync(String linkedServiceName, Context con * * @param linkedServiceName The linked service name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -676,7 +667,7 @@ public void deleteLinkedService(String linkedServiceName) { * @param linkedServiceName The linked service name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -691,23 +682,19 @@ public Response deleteLinkedServiceWithResponse(String linkedServiceName, * @param linkedServiceName The linked service name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameLinkedServiceWithResponseAsync( String linkedServiceName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameLinkedService( - this.client.getEndpoint(), - linkedServiceName, - this.client.getApiVersion(), - request, - accept, - context)); + this.client.getEndpoint(), linkedServiceName, apiVersion, request, accept, context)); } /** @@ -717,16 +704,17 @@ public Mono> renameLinkedServiceWithResponseAsync( * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameLinkedServiceWithResponseAsync( String linkedServiceName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.renameLinkedService( - this.client.getEndpoint(), linkedServiceName, this.client.getApiVersion(), request, accept, context); + this.client.getEndpoint(), linkedServiceName, apiVersion, request, accept, context); } /** @@ -735,7 +723,7 @@ public Mono> renameLinkedServiceWithResponseAsync( * @param linkedServiceName The linked service name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -752,7 +740,7 @@ public Mono renameLinkedServiceAsync(String linkedServiceName, ArtifactRen * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -769,7 +757,7 @@ public Mono renameLinkedServiceAsync( * @param linkedServiceName The linked service name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -784,7 +772,7 @@ public void renameLinkedService(String linkedServiceName, ArtifactRenameRequest * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -799,7 +787,7 @@ public Response renameLinkedServiceWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -827,7 +815,7 @@ public Mono> getLinkedServicesByWorkspaceNe * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebookOperationResultsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebookOperationResultsImpl.java index 7ce08a7c02c2a..f2e1aef399f8d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebookOperationResultsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebookOperationResultsImpl.java @@ -71,11 +71,10 @@ Mono> get( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String operationId) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context)); + context -> service.get(this.client.getEndpoint(), apiVersion, operationId, accept, context)); } /** @@ -90,8 +89,9 @@ public Mono> getWithResponseAsync(String operationId) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String operationId, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, operationId, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebooksImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebooksImpl.java index 285e1700037e3..e150f055dda9c 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebooksImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/NotebooksImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.NotebookListResponse; import com.azure.analytics.synapse.artifacts.models.NotebookResource; import com.azure.core.annotation.BodyParam; @@ -61,7 +61,7 @@ public final class NotebooksImpl { private interface NotebooksService { @Get("/notebooks") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getNotebooksByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -70,7 +70,7 @@ Mono> getNotebooksByWorkspace( @Get("/notebooksSummary") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getNotebookSummaryByWorkSpace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -79,7 +79,7 @@ Mono> getNotebookSummaryByWorkSpace( @Put("/notebooks/{notebookName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateNotebook( @HostParam("endpoint") String endpoint, @PathParam("notebookName") String notebookName, @@ -91,7 +91,7 @@ Mono> createOrUpdateNotebook( @Get("/notebooks/{notebookName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getNotebook( @HostParam("endpoint") String endpoint, @PathParam("notebookName") String notebookName, @@ -102,7 +102,7 @@ Mono> getNotebook( @Delete("/notebooks/{notebookName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteNotebook( @HostParam("endpoint") String endpoint, @PathParam("notebookName") String notebookName, @@ -112,7 +112,7 @@ Mono> deleteNotebook( @Post("/notebooks/{notebookName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renameNotebook( @HostParam("endpoint") String endpoint, @PathParam("notebookName") String notebookName, @@ -123,7 +123,7 @@ Mono> renameNotebook( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getNotebooksByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -132,7 +132,7 @@ Mono> getNotebooksByWorkspaceNext( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getNotebookSummaryByWorkSpaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -143,17 +143,17 @@ Mono> getNotebookSummaryByWorkSpaceNext( /** * Lists Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNotebooksByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.getNotebooksByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + service.getNotebooksByWorkspace(this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -170,14 +170,15 @@ public Mono> getNotebooksByWorkspaceSinglePageAs * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNotebooksByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getNotebooksByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getNotebooksByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -192,7 +193,7 @@ public Mono> getNotebooksByWorkspaceSinglePageAs /** * Lists Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -208,7 +209,7 @@ public PagedFlux getNotebooksByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -222,7 +223,7 @@ public PagedFlux getNotebooksByWorkspaceAsync(Context context) /** * Lists Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -236,7 +237,7 @@ public PagedIterable getNotebooksByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -248,17 +249,18 @@ public PagedIterable getNotebooksByWorkspace(Context context) /** * Lists a summary of Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNotebookSummaryByWorkSpaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getNotebookSummaryByWorkSpace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -275,15 +277,15 @@ public Mono> getNotebookSummaryByWorkSpaceSingle * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNotebookSummaryByWorkSpaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getNotebookSummaryByWorkSpace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getNotebookSummaryByWorkSpace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -298,7 +300,7 @@ public Mono> getNotebookSummaryByWorkSpaceSingle /** * Lists a summary of Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -314,7 +316,7 @@ public PagedFlux getNotebookSummaryByWorkSpaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -328,7 +330,7 @@ public PagedFlux getNotebookSummaryByWorkSpaceAsync(Context co /** * Lists a summary of Notebooks. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -342,7 +344,7 @@ public PagedIterable getNotebookSummaryByWorkSpace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -359,20 +361,21 @@ public PagedIterable getNotebookSummaryByWorkSpace(Context con * @param ifMatch ETag of the Note book 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateNotebookWithResponseAsync( String notebookName, NotebookResource notebook, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateNotebook( this.client.getEndpoint(), notebookName, - this.client.getApiVersion(), + apiVersion, ifMatch, notebook, accept, @@ -388,22 +391,17 @@ public Mono> createOrUpdateNotebookWithResponseAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateNotebookWithResponseAsync( String notebookName, NotebookResource notebook, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateNotebook( - this.client.getEndpoint(), - notebookName, - this.client.getApiVersion(), - ifMatch, - notebook, - accept, - context); + this.client.getEndpoint(), notebookName, apiVersion, ifMatch, notebook, accept, context); } /** @@ -414,7 +412,7 @@ public Mono> createOrUpdateNotebookWithResponseAsync( * @param ifMatch ETag of the Note book 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -438,7 +436,7 @@ public Mono createOrUpdateNotebookAsync( * @param notebookName The notebook name. * @param notebook Note book resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -465,7 +463,7 @@ public Mono createOrUpdateNotebookAsync(String notebookName, N * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -491,7 +489,7 @@ public Mono createOrUpdateNotebookAsync( * @param ifMatch ETag of the Note book 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -506,7 +504,7 @@ public NotebookResource createOrUpdateNotebook(String notebookName, NotebookReso * @param notebookName The notebook name. * @param notebook Note book resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -525,7 +523,7 @@ public NotebookResource createOrUpdateNotebook(String notebookName, NotebookReso * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return notebook resource type. */ @@ -542,22 +540,18 @@ public Response createOrUpdateNotebookWithResponse( * @param ifNoneMatch ETag of the Notebook 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNotebookWithResponseAsync(String notebookName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getNotebook( - this.client.getEndpoint(), - notebookName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)); + this.client.getEndpoint(), notebookName, apiVersion, ifNoneMatch, accept, context)); } /** @@ -568,16 +562,16 @@ public Mono> getNotebookWithResponseAsync(String note * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNotebookWithResponseAsync( String notebookName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getNotebook( - this.client.getEndpoint(), notebookName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return service.getNotebook(this.client.getEndpoint(), notebookName, apiVersion, ifNoneMatch, accept, context); } /** @@ -587,7 +581,7 @@ public Mono> getNotebookWithResponseAsync( * @param ifNoneMatch ETag of the Notebook 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -609,7 +603,7 @@ public Mono getNotebookAsync(String notebookName, String ifNon * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -635,7 +629,7 @@ public Mono getNotebookAsync(String notebookName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -659,7 +653,7 @@ public Mono getNotebookAsync(String notebookName, String ifNon * @param ifNoneMatch ETag of the Notebook 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -673,7 +667,7 @@ public NotebookResource getNotebook(String notebookName, String ifNoneMatch) { * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -691,7 +685,7 @@ public NotebookResource getNotebook(String notebookName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Note Book. */ @@ -706,17 +700,17 @@ public Response getNotebookWithResponse( * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteNotebookWithResponseAsync(String notebookName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.deleteNotebook( - this.client.getEndpoint(), notebookName, this.client.getApiVersion(), accept, context)); + service.deleteNotebook(this.client.getEndpoint(), notebookName, apiVersion, accept, context)); } /** @@ -725,15 +719,15 @@ public Mono> deleteNotebookWithResponseAsync(String notebookName) * @param notebookName The notebook name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteNotebookWithResponseAsync(String notebookName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteNotebook( - this.client.getEndpoint(), notebookName, this.client.getApiVersion(), accept, context); + return service.deleteNotebook(this.client.getEndpoint(), notebookName, apiVersion, accept, context); } /** @@ -741,7 +735,7 @@ public Mono> deleteNotebookWithResponseAsync(String notebookName, * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -756,7 +750,7 @@ public Mono deleteNotebookAsync(String notebookName) { * @param notebookName The notebook name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -770,7 +764,7 @@ public Mono deleteNotebookAsync(String notebookName, Context context) { * * @param notebookName The notebook name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -784,7 +778,7 @@ public void deleteNotebook(String notebookName) { * @param notebookName The notebook name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -799,22 +793,18 @@ public Response deleteNotebookWithResponse(String notebookName, Context co * @param notebookName The notebook name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameNotebookWithResponseAsync(String notebookName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameNotebook( - this.client.getEndpoint(), - notebookName, - this.client.getApiVersion(), - request, - accept, - context)); + this.client.getEndpoint(), notebookName, apiVersion, request, accept, context)); } /** @@ -824,16 +814,16 @@ public Mono> renameNotebookWithResponseAsync(String notebookName, * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameNotebookWithResponseAsync( String notebookName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.renameNotebook( - this.client.getEndpoint(), notebookName, this.client.getApiVersion(), request, accept, context); + return service.renameNotebook(this.client.getEndpoint(), notebookName, apiVersion, request, accept, context); } /** @@ -842,7 +832,7 @@ public Mono> renameNotebookWithResponseAsync( * @param notebookName The notebook name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -858,7 +848,7 @@ public Mono renameNotebookAsync(String notebookName, ArtifactRenameRequest * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -874,7 +864,7 @@ public Mono renameNotebookAsync(String notebookName, ArtifactRenameRequest * @param notebookName The notebook name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -889,7 +879,7 @@ public void renameNotebook(String notebookName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -904,7 +894,7 @@ public Response renameNotebookWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -932,7 +922,7 @@ public Mono> getNotebooksByWorkspaceNextSinglePa * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -957,7 +947,7 @@ public Mono> getNotebooksByWorkspaceNextSinglePa * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ @@ -985,7 +975,7 @@ public Mono> getNotebookSummaryByWorkSpaceNextSi * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Notebook resources. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationResultsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationResultsImpl.java deleted file mode 100644 index 64d2a63aff91a..0000000000000 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationResultsImpl.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.analytics.synapse.artifacts.implementation; - -import com.azure.analytics.synapse.artifacts.models.ErrorContractException; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -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.util.Context; -import com.azure.core.util.FluxUtil; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in OperationResults. */ -public final class OperationResultsImpl { - /** The proxy service used to perform REST calls. */ - private final OperationResultsService service; - - /** The service client containing this operation class. */ - private final ArtifactsClientImpl client; - - /** - * Initializes an instance of OperationResultsImpl. - * - * @param client the instance of the service client containing this operation class. - */ - OperationResultsImpl(ArtifactsClientImpl client) { - this.service = - RestProxy.create( - OperationResultsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ArtifactsClientOperationResults to be used by the proxy service to - * perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "ArtifactsClientOpera") - private interface OperationResultsService { - @Get("/operationResults/{operationId}") - @ExpectedResponses({200, 201, 202, 204}) - @UnexpectedResponseExceptionType(ErrorContractException.class) - Mono> get( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String operationId) { - final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context)); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String operationId, Context context) { - final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String operationId) { - return getWithResponseAsync(operationId).flatMap((Response res) -> Mono.empty()); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String operationId, Context context) { - return getWithResponseAsync(operationId, context).flatMap((Response res) -> Mono.empty()); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException 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 get(String operationId) { - getAsync(operationId).block(); - } - - /** - * Get operation result. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation result. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String operationId, Context context) { - return getWithResponseAsync(operationId, context).block(); - } -} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationStatusImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationStatusImpl.java deleted file mode 100644 index 5db614c070506..0000000000000 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/OperationStatusImpl.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.analytics.synapse.artifacts.implementation; - -import com.azure.analytics.synapse.artifacts.models.ErrorContractException; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -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.util.Context; -import com.azure.core.util.FluxUtil; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in OperationStatus. */ -public final class OperationStatusImpl { - /** The proxy service used to perform REST calls. */ - private final OperationStatusService service; - - /** The service client containing this operation class. */ - private final ArtifactsClientImpl client; - - /** - * Initializes an instance of OperationStatusImpl. - * - * @param client the instance of the service client containing this operation class. - */ - OperationStatusImpl(ArtifactsClientImpl client) { - this.service = - RestProxy.create(OperationStatusService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ArtifactsClientOperationStatus to be used by the proxy service to - * perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "ArtifactsClientOpera") - private interface OperationStatusService { - @Get("/operationStatuses/{operationId}") - @ExpectedResponses({200, 201, 202, 204}) - @UnexpectedResponseExceptionType(ErrorContractException.class) - Mono> get( - @HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String operationId) { - final String accept = "application/json"; - return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context)); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String operationId, Context context) { - final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), operationId, accept, context); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String operationId) { - return getWithResponseAsync(operationId).flatMap((Response res) -> Mono.empty()); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String operationId, Context context) { - return getWithResponseAsync(operationId, context).flatMap((Response res) -> Mono.empty()); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException 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 get(String operationId) { - getAsync(operationId).block(); - } - - /** - * Get operation status. - * - * @param operationId Operation ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ErrorContractException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return operation status. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String operationId, Context context) { - return getWithResponseAsync(operationId, context).block(); - } -} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelineRunsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelineRunsImpl.java index f6ffe7837af2d..14ca9cf6c323a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelineRunsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelineRunsImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ActivityRunsQueryResponse; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.PipelineRun; import com.azure.analytics.synapse.artifacts.models.PipelineRunsQueryResponse; import com.azure.analytics.synapse.artifacts.models.RunFilterParameters; @@ -56,7 +56,7 @@ public final class PipelineRunsImpl { private interface PipelineRunsService { @Post("/queryPipelineRuns") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> queryPipelineRunsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -66,7 +66,7 @@ Mono> queryPipelineRunsByWorkspace( @Get("/pipelineruns/{runId}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getPipelineRun( @HostParam("endpoint") String endpoint, @PathParam("runId") String runId, @@ -76,7 +76,7 @@ Mono> getPipelineRun( @Post("/pipelines/{pipelineName}/pipelineruns/{runId}/queryActivityruns") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> queryActivityRuns( @HostParam("endpoint") String endpoint, @PathParam("pipelineName") String pipelineName, @@ -88,7 +88,7 @@ Mono> queryActivityRuns( @Post("/pipelineruns/{runId}/cancel") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> cancelPipelineRun( @HostParam("endpoint") String endpoint, @PathParam("runId") String runId, @@ -103,22 +103,19 @@ Mono> cancelPipelineRun( * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> queryPipelineRunsByWorkspaceWithResponseAsync( RunFilterParameters filterParameters) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.queryPipelineRunsByWorkspace( - this.client.getEndpoint(), - this.client.getApiVersion(), - filterParameters, - accept, - context)); + this.client.getEndpoint(), apiVersion, filterParameters, accept, context)); } /** @@ -127,16 +124,17 @@ public Mono> queryPipelineRunsByWorkspaceWit * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> queryPipelineRunsByWorkspaceWithResponseAsync( RunFilterParameters filterParameters, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.queryPipelineRunsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), filterParameters, accept, context); + this.client.getEndpoint(), apiVersion, filterParameters, accept, context); } /** @@ -144,7 +142,7 @@ public Mono> queryPipelineRunsByWorkspaceWit * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -167,7 +165,7 @@ public Mono queryPipelineRunsByWorkspaceAsync(RunFilt * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -190,7 +188,7 @@ public Mono queryPipelineRunsByWorkspaceAsync( * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -205,7 +203,7 @@ public PipelineRunsQueryResponse queryPipelineRunsByWorkspace(RunFilterParameter * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -220,17 +218,16 @@ public Response queryPipelineRunsByWorkspaceWithRespo * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getPipelineRunWithResponseAsync(String runId) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.getPipelineRun( - this.client.getEndpoint(), runId, this.client.getApiVersion(), accept, context)); + context -> service.getPipelineRun(this.client.getEndpoint(), runId, apiVersion, accept, context)); } /** @@ -239,14 +236,15 @@ public Mono> getPipelineRunWithResponseAsync(String runId) * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getPipelineRunWithResponseAsync(String runId, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getPipelineRun(this.client.getEndpoint(), runId, this.client.getApiVersion(), accept, context); + return service.getPipelineRun(this.client.getEndpoint(), runId, apiVersion, accept, context); } /** @@ -254,7 +252,7 @@ public Mono> getPipelineRunWithResponseAsync(String runId, * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -277,7 +275,7 @@ public Mono getPipelineRunAsync(String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -299,7 +297,7 @@ public Mono getPipelineRunAsync(String runId, Context context) { * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -314,7 +312,7 @@ public PipelineRun getPipelineRun(String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -330,13 +328,14 @@ public Response getPipelineRunWithResponse(String runId, Context co * @param runId The pipeline run identifier. * @param filterParameters Parameters to filter the activity runs. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> queryActivityRunsWithResponseAsync( String pipelineName, String runId, RunFilterParameters filterParameters) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> @@ -344,7 +343,7 @@ public Mono> queryActivityRunsWithResponseAs this.client.getEndpoint(), pipelineName, runId, - this.client.getApiVersion(), + apiVersion, filterParameters, accept, context)); @@ -358,22 +357,17 @@ public Mono> queryActivityRunsWithResponseAs * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> queryActivityRunsWithResponseAsync( String pipelineName, String runId, RunFilterParameters filterParameters, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.queryActivityRuns( - this.client.getEndpoint(), - pipelineName, - runId, - this.client.getApiVersion(), - filterParameters, - accept, - context); + this.client.getEndpoint(), pipelineName, runId, apiVersion, filterParameters, accept, context); } /** @@ -383,7 +377,7 @@ public Mono> queryActivityRunsWithResponseAs * @param runId The pipeline run identifier. * @param filterParameters Parameters to filter the activity runs. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -409,7 +403,7 @@ public Mono queryActivityRunsAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -434,7 +428,7 @@ public Mono queryActivityRunsAsync( * @param runId The pipeline run identifier. * @param filterParameters Parameters to filter the activity runs. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -452,7 +446,7 @@ public ActivityRunsQueryResponse queryActivityRuns( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -468,22 +462,18 @@ public Response queryActivityRunsWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelPipelineRunWithResponseAsync(String runId, Boolean isRecursive) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.cancelPipelineRun( - this.client.getEndpoint(), - runId, - isRecursive, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), runId, isRecursive, apiVersion, accept, context)); } /** @@ -493,15 +483,15 @@ public Mono> cancelPipelineRunWithResponseAsync(String runId, Boo * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelPipelineRunWithResponseAsync(String runId, Boolean isRecursive, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.cancelPipelineRun( - this.client.getEndpoint(), runId, isRecursive, this.client.getApiVersion(), accept, context); + return service.cancelPipelineRun(this.client.getEndpoint(), runId, isRecursive, apiVersion, accept, context); } /** @@ -510,7 +500,7 @@ public Mono> cancelPipelineRunWithResponseAsync(String runId, Boo * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -524,7 +514,7 @@ public Mono cancelPipelineRunAsync(String runId, Boolean isRecursive) { * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -541,7 +531,7 @@ public Mono cancelPipelineRunAsync(String runId) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -557,7 +547,7 @@ public Mono cancelPipelineRunAsync(String runId, Boolean isRecursive, Cont * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -570,7 +560,7 @@ public void cancelPipelineRun(String runId, Boolean isRecursive) { * * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -586,7 +576,7 @@ public void cancelPipelineRun(String runId) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelinesImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelinesImpl.java index bdf3011cb371c..85ff9e4bf394d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelinesImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/PipelinesImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.CreateRunResponse; import com.azure.analytics.synapse.artifacts.models.PipelineListResponse; import com.azure.analytics.synapse.artifacts.models.PipelineResource; @@ -63,7 +63,7 @@ public final class PipelinesImpl { private interface PipelinesService { @Get("/pipelines") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getPipelinesByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -72,7 +72,7 @@ Mono> getPipelinesByWorkspace( @Put("/pipelines/{pipelineName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdatePipeline( @HostParam("endpoint") String endpoint, @PathParam("pipelineName") String pipelineName, @@ -84,7 +84,7 @@ Mono> createOrUpdatePipeline( @Get("/pipelines/{pipelineName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getPipeline( @HostParam("endpoint") String endpoint, @PathParam("pipelineName") String pipelineName, @@ -95,7 +95,7 @@ Mono> getPipeline( @Delete("/pipelines/{pipelineName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deletePipeline( @HostParam("endpoint") String endpoint, @PathParam("pipelineName") String pipelineName, @@ -105,7 +105,7 @@ Mono> deletePipeline( @Post("/pipelines/{pipelineName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renamePipeline( @HostParam("endpoint") String endpoint, @PathParam("pipelineName") String pipelineName, @@ -116,7 +116,7 @@ Mono> renamePipeline( @Post("/pipelines/{pipelineName}/createRun") @ExpectedResponses({202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createPipelineRun( @HostParam("endpoint") String endpoint, @PathParam("pipelineName") String pipelineName, @@ -130,7 +130,7 @@ Mono> createPipelineRun( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getPipelinesByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -141,17 +141,17 @@ Mono> getPipelinesByWorkspaceNext( /** * Lists pipelines. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getPipelinesByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.getPipelinesByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + service.getPipelinesByWorkspace(this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -168,14 +168,15 @@ public Mono> getPipelinesByWorkspaceSinglePageAs * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getPipelinesByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getPipelinesByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getPipelinesByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -190,7 +191,7 @@ public Mono> getPipelinesByWorkspaceSinglePageAs /** * Lists pipelines. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -206,7 +207,7 @@ public PagedFlux getPipelinesByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -220,7 +221,7 @@ public PagedFlux getPipelinesByWorkspaceAsync(Context context) /** * Lists pipelines. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -234,7 +235,7 @@ public PagedIterable getPipelinesByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -251,20 +252,21 @@ public PagedIterable getPipelinesByWorkspace(Context context) * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdatePipelineWithResponseAsync( String pipelineName, PipelineResource pipeline, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdatePipeline( this.client.getEndpoint(), pipelineName, - this.client.getApiVersion(), + apiVersion, ifMatch, pipeline, accept, @@ -280,22 +282,17 @@ public Mono> createOrUpdatePipelineWithResponseAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdatePipelineWithResponseAsync( String pipelineName, PipelineResource pipeline, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdatePipeline( - this.client.getEndpoint(), - pipelineName, - this.client.getApiVersion(), - ifMatch, - pipeline, - accept, - context); + this.client.getEndpoint(), pipelineName, apiVersion, ifMatch, pipeline, accept, context); } /** @@ -306,7 +303,7 @@ public Mono> createOrUpdatePipelineWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -330,7 +327,7 @@ public Mono createOrUpdatePipelineAsync( * @param pipelineName The pipeline name. * @param pipeline Pipeline resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -357,7 +354,7 @@ public Mono createOrUpdatePipelineAsync(String pipelineName, P * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -383,7 +380,7 @@ public Mono createOrUpdatePipelineAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -398,7 +395,7 @@ public PipelineResource createOrUpdatePipeline(String pipelineName, PipelineReso * @param pipelineName The pipeline name. * @param pipeline Pipeline resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -417,7 +414,7 @@ public PipelineResource createOrUpdatePipeline(String pipelineName, PipelineReso * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -434,22 +431,18 @@ public Response createOrUpdatePipelineWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getPipelineWithResponseAsync(String pipelineName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getPipeline( - this.client.getEndpoint(), - pipelineName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)); + this.client.getEndpoint(), pipelineName, apiVersion, ifNoneMatch, accept, context)); } /** @@ -460,16 +453,16 @@ public Mono> getPipelineWithResponseAsync(String pipe * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getPipelineWithResponseAsync( String pipelineName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getPipeline( - this.client.getEndpoint(), pipelineName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return service.getPipeline(this.client.getEndpoint(), pipelineName, apiVersion, ifNoneMatch, accept, context); } /** @@ -479,7 +472,7 @@ public Mono> getPipelineWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -501,7 +494,7 @@ public Mono getPipelineAsync(String pipelineName, String ifNon * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -527,7 +520,7 @@ public Mono getPipelineAsync(String pipelineName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -551,7 +544,7 @@ public Mono getPipelineAsync(String pipelineName, String ifNon * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -565,7 +558,7 @@ public PipelineResource getPipeline(String pipelineName, String ifNoneMatch) { * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -583,7 +576,7 @@ public PipelineResource getPipeline(String pipelineName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -598,17 +591,17 @@ public Response getPipelineWithResponse( * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deletePipelineWithResponseAsync(String pipelineName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.deletePipeline( - this.client.getEndpoint(), pipelineName, this.client.getApiVersion(), accept, context)); + service.deletePipeline(this.client.getEndpoint(), pipelineName, apiVersion, accept, context)); } /** @@ -617,15 +610,15 @@ public Mono> deletePipelineWithResponseAsync(String pipelineName) * @param pipelineName The pipeline name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deletePipelineWithResponseAsync(String pipelineName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deletePipeline( - this.client.getEndpoint(), pipelineName, this.client.getApiVersion(), accept, context); + return service.deletePipeline(this.client.getEndpoint(), pipelineName, apiVersion, accept, context); } /** @@ -633,7 +626,7 @@ public Mono> deletePipelineWithResponseAsync(String pipelineName, * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -648,7 +641,7 @@ public Mono deletePipelineAsync(String pipelineName) { * @param pipelineName The pipeline name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -662,7 +655,7 @@ public Mono deletePipelineAsync(String pipelineName, Context context) { * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -676,7 +669,7 @@ public void deletePipeline(String pipelineName) { * @param pipelineName The pipeline name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -691,22 +684,18 @@ public Response deletePipelineWithResponse(String pipelineName, Context co * @param pipelineName The pipeline name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renamePipelineWithResponseAsync(String pipelineName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renamePipeline( - this.client.getEndpoint(), - pipelineName, - this.client.getApiVersion(), - request, - accept, - context)); + this.client.getEndpoint(), pipelineName, apiVersion, request, accept, context)); } /** @@ -716,16 +705,16 @@ public Mono> renamePipelineWithResponseAsync(String pipelineName, * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renamePipelineWithResponseAsync( String pipelineName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.renamePipeline( - this.client.getEndpoint(), pipelineName, this.client.getApiVersion(), request, accept, context); + return service.renamePipeline(this.client.getEndpoint(), pipelineName, apiVersion, request, accept, context); } /** @@ -734,7 +723,7 @@ public Mono> renamePipelineWithResponseAsync( * @param pipelineName The pipeline name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -750,7 +739,7 @@ public Mono renamePipelineAsync(String pipelineName, ArtifactRenameRequest * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -766,7 +755,7 @@ public Mono renamePipelineAsync(String pipelineName, ArtifactRenameRequest * @param pipelineName The pipeline name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -781,7 +770,7 @@ public void renamePipeline(String pipelineName, ArtifactRenameRequest request) { * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -804,7 +793,7 @@ public Response renamePipelineWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -815,13 +804,14 @@ public Mono> createPipelineRunWithResponseAsync( Boolean isRecovery, String startActivityName, Map parameters) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createPipelineRun( this.client.getEndpoint(), pipelineName, - this.client.getApiVersion(), + apiVersion, referencePipelineRunId, isRecovery, startActivityName, @@ -844,7 +834,7 @@ public Mono> createPipelineRunWithResponseAsync( * specified. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -856,11 +846,12 @@ public Mono> createPipelineRunWithResponseAsync( String startActivityName, Map parameters, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createPipelineRun( this.client.getEndpoint(), pipelineName, - this.client.getApiVersion(), + apiVersion, referencePipelineRunId, isRecovery, startActivityName, @@ -882,7 +873,7 @@ public Mono> createPipelineRunWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -910,7 +901,7 @@ public Mono createPipelineRunAsync( * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -946,7 +937,7 @@ public Mono createPipelineRunAsync(String pipelineName) { * specified. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -983,7 +974,7 @@ public Mono createPipelineRunAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1003,7 +994,7 @@ public CreateRunResponse createPipelineRun( * * @param pipelineName The pipeline name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1031,7 +1022,7 @@ public CreateRunResponse createPipelineRun(String pipelineName) { * specified. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1053,7 +1044,7 @@ public Response createPipelineRunWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1081,7 +1072,7 @@ public Mono> getPipelinesByWorkspaceNextSinglePa * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkConfigurationsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkConfigurationsImpl.java index 167cdb5845b6a..84fac4d701e1f 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkConfigurationsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkConfigurationsImpl.java @@ -132,11 +132,12 @@ Mono> getSparkConfigurationsByWorkspace */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkConfigurationsByWorkspaceSinglePageAsync() { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getSparkConfigurationsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -160,9 +161,9 @@ public Mono> getSparkConfigurationsByW @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkConfigurationsByWorkspaceSinglePageAsync( Context context) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return service.getSparkConfigurationsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getSparkConfigurationsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -245,13 +246,14 @@ public PagedIterable getSparkConfigurationsByWorkspa @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateSparkConfigurationWithResponseAsync( String sparkConfigurationName, SparkConfigurationResource sparkConfiguration, String ifMatch) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateSparkConfiguration( this.client.getEndpoint(), sparkConfigurationName, - this.client.getApiVersion(), + apiVersion, ifMatch, sparkConfiguration, accept, @@ -277,11 +279,12 @@ public Mono> createOrUpdateSparkConfigurati SparkConfigurationResource sparkConfiguration, String ifMatch, Context context) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return service.createOrUpdateSparkConfiguration( this.client.getEndpoint(), sparkConfigurationName, - this.client.getApiVersion(), + apiVersion, ifMatch, sparkConfiguration, accept, @@ -443,13 +446,14 @@ public Response createOrUpdateSparkConfigurationWith @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkConfigurationWithResponseAsync( String sparkConfigurationName, String ifNoneMatch) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getSparkConfiguration( this.client.getEndpoint(), sparkConfigurationName, - this.client.getApiVersion(), + apiVersion, ifNoneMatch, accept, context)); @@ -470,14 +474,10 @@ public Mono> getSparkConfigurationWithRespo @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkConfigurationWithResponseAsync( String sparkConfigurationName, String ifNoneMatch, Context context) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return service.getSparkConfiguration( - this.client.getEndpoint(), - sparkConfigurationName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); + this.client.getEndpoint(), sparkConfigurationName, apiVersion, ifNoneMatch, accept, context); } /** @@ -614,15 +614,12 @@ public Response getSparkConfigurationWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSparkConfigurationWithResponseAsync(String sparkConfigurationName) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.deleteSparkConfiguration( - this.client.getEndpoint(), - sparkConfigurationName, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), sparkConfigurationName, apiVersion, accept, context)); } /** @@ -638,9 +635,10 @@ public Mono> deleteSparkConfigurationWithResponseAsync(String spa @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSparkConfigurationWithResponseAsync( String sparkConfigurationName, Context context) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return service.deleteSparkConfiguration( - this.client.getEndpoint(), sparkConfigurationName, this.client.getApiVersion(), accept, context); + this.client.getEndpoint(), sparkConfigurationName, apiVersion, accept, context); } /** @@ -715,13 +713,14 @@ public Response deleteSparkConfigurationWithResponse(String sparkConfigura @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameSparkConfigurationWithResponseAsync( String sparkConfigurationName, ArtifactRenameRequest request) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameSparkConfiguration( this.client.getEndpoint(), sparkConfigurationName, - this.client.getApiVersion(), + apiVersion, request, accept, context)); @@ -741,14 +740,10 @@ public Mono> renameSparkConfigurationWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameSparkConfigurationWithResponseAsync( String sparkConfigurationName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return service.renameSparkConfiguration( - this.client.getEndpoint(), - sparkConfigurationName, - this.client.getApiVersion(), - request, - accept, - context); + this.client.getEndpoint(), sparkConfigurationName, apiVersion, request, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkJobDefinitionsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkJobDefinitionsImpl.java index a1ba1f13c8250..7cb1261d68014 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkJobDefinitionsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SparkJobDefinitionsImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.SparkBatchJob; import com.azure.analytics.synapse.artifacts.models.SparkJobDefinitionResource; import com.azure.analytics.synapse.artifacts.models.SparkJobDefinitionsListResponse; @@ -63,7 +63,7 @@ public final class SparkJobDefinitionsImpl { private interface SparkJobDefinitionsService { @Get("/sparkJobDefinitions") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getSparkJobDefinitionsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -72,7 +72,7 @@ Mono> getSparkJobDefinitionsByWorkspac @Put("/sparkJobDefinitions/{sparkJobDefinitionName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateSparkJobDefinition( @HostParam("endpoint") String endpoint, @PathParam("sparkJobDefinitionName") String sparkJobDefinitionName, @@ -84,7 +84,7 @@ Mono> createOrUpdateSparkJobDefinition( @Get("/sparkJobDefinitions/{sparkJobDefinitionName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getSparkJobDefinition( @HostParam("endpoint") String endpoint, @PathParam("sparkJobDefinitionName") String sparkJobDefinitionName, @@ -95,7 +95,7 @@ Mono> getSparkJobDefinition( @Delete("/sparkJobDefinitions/{sparkJobDefinitionName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteSparkJobDefinition( @HostParam("endpoint") String endpoint, @PathParam("sparkJobDefinitionName") String sparkJobDefinitionName, @@ -105,7 +105,7 @@ Mono> deleteSparkJobDefinition( @Post("/sparkJobDefinitions/{sparkJobDefinitionName}/execute") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> executeSparkJobDefinition( @HostParam("endpoint") String endpoint, @PathParam("sparkJobDefinitionName") String sparkJobDefinitionName, @@ -115,7 +115,7 @@ Mono> executeSparkJobDefinition( @Post("/sparkJobDefinitions/{sparkJobDefinitionName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renameSparkJobDefinition( @HostParam("endpoint") String endpoint, @PathParam("sparkJobDefinitionName") String sparkJobDefinitionName, @@ -126,7 +126,7 @@ Mono> renameSparkJobDefinition( @Post("/debugSparkJobDefinition") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> debugSparkJobDefinition( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -136,7 +136,7 @@ Mono> debugSparkJobDefinition( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getSparkJobDefinitionsByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -147,17 +147,18 @@ Mono> getSparkJobDefinitionsByWorkspac /** * Lists spark job definitions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkJobDefinitionsByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getSparkJobDefinitionsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -174,16 +175,16 @@ public Mono> getSparkJobDefinitionsByW * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkJobDefinitionsByWorkspaceSinglePageAsync( Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getSparkJobDefinitionsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getSparkJobDefinitionsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -198,7 +199,7 @@ public Mono> getSparkJobDefinitionsByW /** * Lists spark job definitions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -214,7 +215,7 @@ public PagedFlux getSparkJobDefinitionsByWorkspaceAs * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -228,7 +229,7 @@ public PagedFlux getSparkJobDefinitionsByWorkspaceAs /** * Lists spark job definitions. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -242,7 +243,7 @@ public PagedIterable getSparkJobDefinitionsByWorkspa * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -259,20 +260,21 @@ public PagedIterable getSparkJobDefinitionsByWorkspa * @param ifMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, SparkJobDefinitionResource sparkJobDefinition, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateSparkJobDefinition( this.client.getEndpoint(), sparkJobDefinitionName, - this.client.getApiVersion(), + apiVersion, ifMatch, sparkJobDefinition, accept, @@ -288,7 +290,7 @@ public Mono> createOrUpdateSparkJobDefiniti * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -298,11 +300,12 @@ public Mono> createOrUpdateSparkJobDefiniti SparkJobDefinitionResource sparkJobDefinition, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateSparkJobDefinition( this.client.getEndpoint(), sparkJobDefinitionName, - this.client.getApiVersion(), + apiVersion, ifMatch, sparkJobDefinition, accept, @@ -317,7 +320,7 @@ public Mono> createOrUpdateSparkJobDefiniti * @param ifMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -341,7 +344,7 @@ public Mono createOrUpdateSparkJobDefinitionAsync( * @param sparkJobDefinitionName The spark job definition name. * @param sparkJobDefinition Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -369,7 +372,7 @@ public Mono createOrUpdateSparkJobDefinitionAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -399,7 +402,7 @@ public Mono createOrUpdateSparkJobDefinitionAsync( * @param ifMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -415,7 +418,7 @@ public SparkJobDefinitionResource createOrUpdateSparkJobDefinition( * @param sparkJobDefinitionName The spark job definition name. * @param sparkJobDefinition Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -435,7 +438,7 @@ public SparkJobDefinitionResource createOrUpdateSparkJobDefinition( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return spark job definition resource type. */ @@ -457,20 +460,21 @@ public Response createOrUpdateSparkJobDefinitionWith * @param ifNoneMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getSparkJobDefinition( this.client.getEndpoint(), sparkJobDefinitionName, - this.client.getApiVersion(), + apiVersion, ifNoneMatch, accept, context)); @@ -484,21 +488,17 @@ public Mono> getSparkJobDefinitionWithRespo * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.getSparkJobDefinition( - this.client.getEndpoint(), - sparkJobDefinitionName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context); + this.client.getEndpoint(), sparkJobDefinitionName, apiVersion, ifNoneMatch, accept, context); } /** @@ -508,7 +508,7 @@ public Mono> getSparkJobDefinitionWithRespo * @param ifNoneMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -531,7 +531,7 @@ public Mono getSparkJobDefinitionAsync( * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -557,7 +557,7 @@ public Mono getSparkJobDefinitionAsync(String sparkJ * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -582,7 +582,7 @@ public Mono getSparkJobDefinitionAsync( * @param ifNoneMatch ETag of the Spark Job Definition 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -596,7 +596,7 @@ public SparkJobDefinitionResource getSparkJobDefinition(String sparkJobDefinitio * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -614,7 +614,7 @@ public SparkJobDefinitionResource getSparkJobDefinition(String sparkJobDefinitio * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Spark Job Definition. */ @@ -629,21 +629,18 @@ public Response getSparkJobDefinitionWithResponse( * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSparkJobDefinitionWithResponseAsync(String sparkJobDefinitionName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.deleteSparkJobDefinition( - this.client.getEndpoint(), - sparkJobDefinitionName, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), sparkJobDefinitionName, apiVersion, accept, context)); } /** @@ -652,16 +649,17 @@ public Mono> deleteSparkJobDefinitionWithResponseAsync(String spa * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.deleteSparkJobDefinition( - this.client.getEndpoint(), sparkJobDefinitionName, this.client.getApiVersion(), accept, context); + this.client.getEndpoint(), sparkJobDefinitionName, apiVersion, accept, context); } /** @@ -669,7 +667,7 @@ public Mono> deleteSparkJobDefinitionWithResponseAsync( * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -685,7 +683,7 @@ public Mono deleteSparkJobDefinitionAsync(String sparkJobDefinitionName) { * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -700,7 +698,7 @@ public Mono deleteSparkJobDefinitionAsync(String sparkJobDefinitionName, C * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -714,7 +712,7 @@ public void deleteSparkJobDefinition(String sparkJobDefinitionName) { * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -728,21 +726,18 @@ public Response deleteSparkJobDefinitionWithResponse(String sparkJobDefini * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> executeSparkJobDefinitionWithResponseAsync(String sparkJobDefinitionName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.executeSparkJobDefinition( - this.client.getEndpoint(), - sparkJobDefinitionName, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), sparkJobDefinitionName, apiVersion, accept, context)); } /** @@ -751,16 +746,17 @@ public Mono> executeSparkJobDefinitionWithResponseAsync( * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> executeSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.executeSparkJobDefinition( - this.client.getEndpoint(), sparkJobDefinitionName, this.client.getApiVersion(), accept, context); + this.client.getEndpoint(), sparkJobDefinitionName, apiVersion, accept, context); } /** @@ -768,7 +764,7 @@ public Mono> executeSparkJobDefinitionWithResponseAsync( * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -791,7 +787,7 @@ public Mono executeSparkJobDefinitionAsync(String sparkJobDefinit * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -813,7 +809,7 @@ public Mono executeSparkJobDefinitionAsync(String sparkJobDefinit * * @param sparkJobDefinitionName The spark job definition name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -828,7 +824,7 @@ public SparkBatchJob executeSparkJobDefinition(String sparkJobDefinitionName) { * @param sparkJobDefinitionName The spark job definition name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -844,20 +840,21 @@ public Response executeSparkJobDefinitionWithResponse( * @param sparkJobDefinitionName The spark job definition name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameSparkJobDefinition( this.client.getEndpoint(), sparkJobDefinitionName, - this.client.getApiVersion(), + apiVersion, request, accept, context)); @@ -870,21 +867,17 @@ public Mono> renameSparkJobDefinitionWithResponseAsync( * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameSparkJobDefinitionWithResponseAsync( String sparkJobDefinitionName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.renameSparkJobDefinition( - this.client.getEndpoint(), - sparkJobDefinitionName, - this.client.getApiVersion(), - request, - accept, - context); + this.client.getEndpoint(), sparkJobDefinitionName, apiVersion, request, accept, context); } /** @@ -893,7 +886,7 @@ public Mono> renameSparkJobDefinitionWithResponseAsync( * @param sparkJobDefinitionName The spark job definition name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -910,7 +903,7 @@ public Mono renameSparkJobDefinitionAsync(String sparkJobDefinitionName, A * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -927,7 +920,7 @@ public Mono renameSparkJobDefinitionAsync( * @param sparkJobDefinitionName The spark job definition name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -942,7 +935,7 @@ public void renameSparkJobDefinition(String sparkJobDefinitionName, ArtifactRena * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -957,19 +950,20 @@ public Response renameSparkJobDefinitionWithResponse( * * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> debugSparkJobDefinitionWithResponseAsync( SparkJobDefinitionResource sparkJobDefinitionAzureResource) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.debugSparkJobDefinition( this.client.getEndpoint(), - this.client.getApiVersion(), + apiVersion, sparkJobDefinitionAzureResource, accept, context)); @@ -981,20 +975,17 @@ public Mono> debugSparkJobDefinitionWithResponseAsync( * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> debugSparkJobDefinitionWithResponseAsync( SparkJobDefinitionResource sparkJobDefinitionAzureResource, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.debugSparkJobDefinition( - this.client.getEndpoint(), - this.client.getApiVersion(), - sparkJobDefinitionAzureResource, - accept, - context); + this.client.getEndpoint(), apiVersion, sparkJobDefinitionAzureResource, accept, context); } /** @@ -1002,7 +993,7 @@ public Mono> debugSparkJobDefinitionWithResponseAsync( * * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1026,7 +1017,7 @@ public Mono debugSparkJobDefinitionAsync( * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1049,7 +1040,7 @@ public Mono debugSparkJobDefinitionAsync( * * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1064,7 +1055,7 @@ public SparkBatchJob debugSparkJobDefinition(SparkJobDefinitionResource sparkJob * @param sparkJobDefinitionAzureResource Spark Job Definition resource definition. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1079,7 +1070,7 @@ public Response debugSparkJobDefinitionWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ @@ -1108,7 +1099,7 @@ public Mono> getSparkJobDefinitionsByW * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 spark job definitions resources. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlPoolsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlPoolsImpl.java index 2865d119aecf4..977e3b01b8bcf 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlPoolsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlPoolsImpl.java @@ -74,13 +74,13 @@ Mono> get( * * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return FluxUtil.withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)); } /** @@ -90,12 +90,13 @@ public Mono> listWithResponseAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, accept, context); } /** @@ -103,7 +104,7 @@ public Mono> listWithResponseAsync(Context conte * * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync() { @@ -125,7 +126,7 @@ public Mono listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync(Context context) { @@ -145,7 +146,7 @@ public Mono listAsync(Context context) { * * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public SqlPoolInfoListResult list() { @@ -159,7 +160,7 @@ public SqlPoolInfoListResult list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorContractException 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 SQL pools. + * @return sQL pool collection. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse(Context context) { @@ -177,11 +178,10 @@ public Response listWithResponse(Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String sqlPoolName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.get( - this.client.getEndpoint(), this.client.getApiVersion(), sqlPoolName, accept, context)); + context -> service.get(this.client.getEndpoint(), apiVersion, sqlPoolName, accept, context)); } /** @@ -196,8 +196,9 @@ public Mono> getWithResponseAsync(String sqlPoolName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(String sqlPoolName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), sqlPoolName, accept, context); + return service.get(this.client.getEndpoint(), apiVersion, sqlPoolName, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlScriptsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlScriptsImpl.java index 5210b37088c13..2904aa242a047 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlScriptsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/SqlScriptsImpl.java @@ -5,7 +5,7 @@ package com.azure.analytics.synapse.artifacts.implementation; import com.azure.analytics.synapse.artifacts.models.ArtifactRenameRequest; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.SqlScriptResource; import com.azure.analytics.synapse.artifacts.models.SqlScriptsListResponse; import com.azure.core.annotation.BodyParam; @@ -61,7 +61,7 @@ public final class SqlScriptsImpl { private interface SqlScriptsService { @Get("/sqlScripts") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getSqlScriptsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -70,7 +70,7 @@ Mono> getSqlScriptsByWorkspace( @Put("/sqlScripts/{sqlScriptName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateSqlScript( @HostParam("endpoint") String endpoint, @PathParam("sqlScriptName") String sqlScriptName, @@ -82,7 +82,7 @@ Mono> createOrUpdateSqlScript( @Get("/sqlScripts/{sqlScriptName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getSqlScript( @HostParam("endpoint") String endpoint, @PathParam("sqlScriptName") String sqlScriptName, @@ -93,7 +93,7 @@ Mono> getSqlScript( @Delete("/sqlScripts/{sqlScriptName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteSqlScript( @HostParam("endpoint") String endpoint, @PathParam("sqlScriptName") String sqlScriptName, @@ -103,7 +103,7 @@ Mono> deleteSqlScript( @Post("/sqlScripts/{sqlScriptName}/rename") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> renameSqlScript( @HostParam("endpoint") String endpoint, @PathParam("sqlScriptName") String sqlScriptName, @@ -114,7 +114,7 @@ Mono> renameSqlScript( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getSqlScriptsByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -125,17 +125,18 @@ Mono> getSqlScriptsByWorkspaceNext( /** * Lists sql scripts. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSqlScriptsByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getSqlScriptsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -152,14 +153,15 @@ public Mono> getSqlScriptsByWorkspaceSinglePage * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSqlScriptsByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getSqlScriptsByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getSqlScriptsByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -174,7 +176,7 @@ public Mono> getSqlScriptsByWorkspaceSinglePage /** * Lists sql scripts. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -190,7 +192,7 @@ public PagedFlux getSqlScriptsByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -204,7 +206,7 @@ public PagedFlux getSqlScriptsByWorkspaceAsync(Context contex /** * Lists sql scripts. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -218,7 +220,7 @@ public PagedIterable getSqlScriptsByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -235,20 +237,21 @@ public PagedIterable getSqlScriptsByWorkspace(Context context * @param ifMatch ETag of the SQL script 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateSqlScriptWithResponseAsync( String sqlScriptName, SqlScriptResource sqlScript, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateSqlScript( this.client.getEndpoint(), sqlScriptName, - this.client.getApiVersion(), + apiVersion, ifMatch, sqlScript, accept, @@ -264,22 +267,17 @@ public Mono> createOrUpdateSqlScriptWithResponseAsyn * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateSqlScriptWithResponseAsync( String sqlScriptName, SqlScriptResource sqlScript, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateSqlScript( - this.client.getEndpoint(), - sqlScriptName, - this.client.getApiVersion(), - ifMatch, - sqlScript, - accept, - context); + this.client.getEndpoint(), sqlScriptName, apiVersion, ifMatch, sqlScript, accept, context); } /** @@ -290,7 +288,7 @@ public Mono> createOrUpdateSqlScriptWithResponseAsyn * @param ifMatch ETag of the SQL script 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -314,7 +312,7 @@ public Mono createOrUpdateSqlScriptAsync( * @param sqlScriptName The sql script name. * @param sqlScript Sql Script resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -341,7 +339,7 @@ public Mono createOrUpdateSqlScriptAsync(String sqlScriptName * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -367,7 +365,7 @@ public Mono createOrUpdateSqlScriptAsync( * @param ifMatch ETag of the SQL script 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -383,7 +381,7 @@ public SqlScriptResource createOrUpdateSqlScript( * @param sqlScriptName The sql script name. * @param sqlScript Sql Script resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -402,7 +400,7 @@ public SqlScriptResource createOrUpdateSqlScript(String sqlScriptName, SqlScript * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Script resource type. */ @@ -419,22 +417,18 @@ public Response createOrUpdateSqlScriptWithResponse( * @param ifNoneMatch ETag of the sql compute 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSqlScriptWithResponseAsync(String sqlScriptName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getSqlScript( - this.client.getEndpoint(), - sqlScriptName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)); + this.client.getEndpoint(), sqlScriptName, apiVersion, ifNoneMatch, accept, context)); } /** @@ -445,16 +439,16 @@ public Mono> getSqlScriptWithResponseAsync(String sq * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getSqlScriptWithResponseAsync( String sqlScriptName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getSqlScript( - this.client.getEndpoint(), sqlScriptName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return service.getSqlScript(this.client.getEndpoint(), sqlScriptName, apiVersion, ifNoneMatch, accept, context); } /** @@ -464,7 +458,7 @@ public Mono> getSqlScriptWithResponseAsync( * @param ifNoneMatch ETag of the sql compute 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -486,7 +480,7 @@ public Mono getSqlScriptAsync(String sqlScriptName, String if * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -512,7 +506,7 @@ public Mono getSqlScriptAsync(String sqlScriptName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -536,7 +530,7 @@ public Mono getSqlScriptAsync(String sqlScriptName, String if * @param ifNoneMatch ETag of the sql compute 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -550,7 +544,7 @@ public SqlScriptResource getSqlScript(String sqlScriptName, String ifNoneMatch) * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -568,7 +562,7 @@ public SqlScriptResource getSqlScript(String sqlScriptName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a sql script. */ @@ -583,21 +577,17 @@ public Response getSqlScriptWithResponse( * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSqlScriptWithResponseAsync(String sqlScriptName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.deleteSqlScript( - this.client.getEndpoint(), - sqlScriptName, - this.client.getApiVersion(), - accept, - context)); + service.deleteSqlScript(this.client.getEndpoint(), sqlScriptName, apiVersion, accept, context)); } /** @@ -606,15 +596,15 @@ public Mono> deleteSqlScriptWithResponseAsync(String sqlScriptNam * @param sqlScriptName The sql script name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteSqlScriptWithResponseAsync(String sqlScriptName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteSqlScript( - this.client.getEndpoint(), sqlScriptName, this.client.getApiVersion(), accept, context); + return service.deleteSqlScript(this.client.getEndpoint(), sqlScriptName, apiVersion, accept, context); } /** @@ -622,7 +612,7 @@ public Mono> deleteSqlScriptWithResponseAsync(String sqlScriptNam * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -637,7 +627,7 @@ public Mono deleteSqlScriptAsync(String sqlScriptName) { * @param sqlScriptName The sql script name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -651,7 +641,7 @@ public Mono deleteSqlScriptAsync(String sqlScriptName, Context context) { * * @param sqlScriptName The sql script name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -665,7 +655,7 @@ public void deleteSqlScript(String sqlScriptName) { * @param sqlScriptName The sql script name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -680,22 +670,18 @@ public Response deleteSqlScriptWithResponse(String sqlScriptName, Context * @param sqlScriptName The sql script name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameSqlScriptWithResponseAsync(String sqlScriptName, ArtifactRenameRequest request) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.renameSqlScript( - this.client.getEndpoint(), - sqlScriptName, - this.client.getApiVersion(), - request, - accept, - context)); + this.client.getEndpoint(), sqlScriptName, apiVersion, request, accept, context)); } /** @@ -705,16 +691,16 @@ public Mono> renameSqlScriptWithResponseAsync(String sqlScriptNam * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> renameSqlScriptWithResponseAsync( String sqlScriptName, ArtifactRenameRequest request, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.renameSqlScript( - this.client.getEndpoint(), sqlScriptName, this.client.getApiVersion(), request, accept, context); + return service.renameSqlScript(this.client.getEndpoint(), sqlScriptName, apiVersion, request, accept, context); } /** @@ -723,7 +709,7 @@ public Mono> renameSqlScriptWithResponseAsync( * @param sqlScriptName The sql script name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -739,7 +725,7 @@ public Mono renameSqlScriptAsync(String sqlScriptName, ArtifactRenameReque * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -755,7 +741,7 @@ public Mono renameSqlScriptAsync(String sqlScriptName, ArtifactRenameReque * @param sqlScriptName The sql script name. * @param request proposed new name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -770,7 +756,7 @@ public void renameSqlScript(String sqlScriptName, ArtifactRenameRequest request) * @param request proposed new name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -785,7 +771,7 @@ public Response renameSqlScriptWithResponse( * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ @@ -813,7 +799,7 @@ public Mono> getSqlScriptsByWorkspaceNextSingle * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 sql scripts resources. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggerRunsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggerRunsImpl.java index 65beb5dfa1d3e..7c0051ac8153d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggerRunsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggerRunsImpl.java @@ -4,7 +4,7 @@ package com.azure.analytics.synapse.artifacts.implementation; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.RunFilterParameters; import com.azure.analytics.synapse.artifacts.models.TriggerRunsQueryResponse; import com.azure.core.annotation.BodyParam; @@ -53,7 +53,7 @@ public final class TriggerRunsImpl { private interface TriggerRunsService { @Post("/triggers/{triggerName}/triggerRuns/{runId}/rerun") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> rerunTriggerInstance( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -64,7 +64,7 @@ Mono> rerunTriggerInstance( @Post("/triggers/{triggerName}/triggerRuns/{runId}/cancel") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> cancelTriggerInstance( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -75,7 +75,7 @@ Mono> cancelTriggerInstance( @Post("/queryTriggerRuns") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> queryTriggerRunsByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -90,22 +90,18 @@ Mono> queryTriggerRunsByWorkspace( * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> rerunTriggerInstanceWithResponseAsync(String triggerName, String runId) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.rerunTriggerInstance( - this.client.getEndpoint(), - triggerName, - runId, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), triggerName, runId, apiVersion, accept, context)); } /** @@ -115,16 +111,16 @@ public Mono> rerunTriggerInstanceWithResponseAsync(String trigger * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> rerunTriggerInstanceWithResponseAsync( String triggerName, String runId, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.rerunTriggerInstance( - this.client.getEndpoint(), triggerName, runId, this.client.getApiVersion(), accept, context); + return service.rerunTriggerInstance(this.client.getEndpoint(), triggerName, runId, apiVersion, accept, context); } /** @@ -133,7 +129,7 @@ public Mono> rerunTriggerInstanceWithResponseAsync( * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -149,7 +145,7 @@ public Mono rerunTriggerInstanceAsync(String triggerName, String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -165,7 +161,7 @@ public Mono rerunTriggerInstanceAsync(String triggerName, String runId, Co * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -180,7 +176,7 @@ public void rerunTriggerInstance(String triggerName, String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -195,22 +191,18 @@ public Response rerunTriggerInstanceWithResponse(String triggerName, Strin * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelTriggerInstanceWithResponseAsync(String triggerName, String runId) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.cancelTriggerInstance( - this.client.getEndpoint(), - triggerName, - runId, - this.client.getApiVersion(), - accept, - context)); + this.client.getEndpoint(), triggerName, runId, apiVersion, accept, context)); } /** @@ -220,16 +212,17 @@ public Mono> cancelTriggerInstanceWithResponseAsync(String trigge * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> cancelTriggerInstanceWithResponseAsync( String triggerName, String runId, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.cancelTriggerInstance( - this.client.getEndpoint(), triggerName, runId, this.client.getApiVersion(), accept, context); + this.client.getEndpoint(), triggerName, runId, apiVersion, accept, context); } /** @@ -238,7 +231,7 @@ public Mono> cancelTriggerInstanceWithResponseAsync( * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -254,7 +247,7 @@ public Mono cancelTriggerInstanceAsync(String triggerName, String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -270,7 +263,7 @@ public Mono cancelTriggerInstanceAsync(String triggerName, String runId, C * @param triggerName The trigger name. * @param runId The pipeline run identifier. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -285,7 +278,7 @@ public void cancelTriggerInstance(String triggerName, String runId) { * @param runId The pipeline run identifier. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -299,22 +292,19 @@ public Response cancelTriggerInstanceWithResponse(String triggerName, Stri * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> queryTriggerRunsByWorkspaceWithResponseAsync( RunFilterParameters filterParameters) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.queryTriggerRunsByWorkspace( - this.client.getEndpoint(), - this.client.getApiVersion(), - filterParameters, - accept, - context)); + this.client.getEndpoint(), apiVersion, filterParameters, accept, context)); } /** @@ -323,16 +313,17 @@ public Mono> queryTriggerRunsByWorkspaceWithR * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> queryTriggerRunsByWorkspaceWithResponseAsync( RunFilterParameters filterParameters, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.queryTriggerRunsByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), filterParameters, accept, context); + this.client.getEndpoint(), apiVersion, filterParameters, accept, context); } /** @@ -340,7 +331,7 @@ public Mono> queryTriggerRunsByWorkspaceWithR * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -363,7 +354,7 @@ public Mono queryTriggerRunsByWorkspaceAsync(RunFilter * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -386,7 +377,7 @@ public Mono queryTriggerRunsByWorkspaceAsync( * * @param filterParameters Parameters to filter the pipeline run. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -401,7 +392,7 @@ public TriggerRunsQueryResponse queryTriggerRunsByWorkspace(RunFilterParameters * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggersImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggersImpl.java index 22794517e18b2..b7f9b62520bd8 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggersImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/TriggersImpl.java @@ -4,7 +4,7 @@ package com.azure.analytics.synapse.artifacts.implementation; -import com.azure.analytics.synapse.artifacts.models.CloudErrorException; +import com.azure.analytics.synapse.artifacts.models.CloudErrorAutoGeneratedException; import com.azure.analytics.synapse.artifacts.models.TriggerListResponse; import com.azure.analytics.synapse.artifacts.models.TriggerResource; import com.azure.analytics.synapse.artifacts.models.TriggerSubscriptionOperationStatus; @@ -60,7 +60,7 @@ public final class TriggersImpl { private interface TriggersService { @Get("/triggers") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getTriggersByWorkspace( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @@ -69,7 +69,7 @@ Mono> getTriggersByWorkspace( @Put("/triggers/{triggerName}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> createOrUpdateTrigger( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -81,7 +81,7 @@ Mono> createOrUpdateTrigger( @Get("/triggers/{triggerName}") @ExpectedResponses({200, 304}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getTrigger( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -92,7 +92,7 @@ Mono> getTrigger( @Delete("/triggers/{triggerName}") @ExpectedResponses({200, 202, 204}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> deleteTrigger( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -102,7 +102,7 @@ Mono> deleteTrigger( @Post("/triggers/{triggerName}/subscribeToEvents") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> subscribeTriggerToEvents( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -112,7 +112,7 @@ Mono> subscribeTriggerToEvents( @Post("/triggers/{triggerName}/getEventSubscriptionStatus") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getEventSubscriptionStatus( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -122,7 +122,7 @@ Mono> getEventSubscriptionStatus( @Post("/triggers/{triggerName}/unsubscribeFromEvents") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> unsubscribeTriggerFromEvents( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -132,7 +132,7 @@ Mono> unsubscribeTriggerFromEvents( @Post("/triggers/{triggerName}/start") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> startTrigger( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -142,7 +142,7 @@ Mono> startTrigger( @Post("/triggers/{triggerName}/stop") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> stopTrigger( @HostParam("endpoint") String endpoint, @PathParam("triggerName") String triggerName, @@ -152,7 +152,7 @@ Mono> stopTrigger( @Get("{nextLink}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(CloudErrorException.class) + @UnexpectedResponseExceptionType(CloudErrorAutoGeneratedException.class) Mono> getTriggersByWorkspaceNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @@ -163,17 +163,17 @@ Mono> getTriggersByWorkspaceNext( /** * Lists triggers. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getTriggersByWorkspaceSinglePageAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> - service.getTriggersByWorkspace( - this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + service.getTriggersByWorkspace(this.client.getEndpoint(), apiVersion, accept, context)) .map( res -> new PagedResponseBase<>( @@ -190,14 +190,15 @@ public Mono> getTriggersByWorkspaceSinglePageAsyn * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getTriggersByWorkspaceSinglePageAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getTriggersByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + return service.getTriggersByWorkspace(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -212,7 +213,7 @@ public Mono> getTriggersByWorkspaceSinglePageAsyn /** * Lists triggers. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -228,7 +229,7 @@ public PagedFlux getTriggersByWorkspaceAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -242,7 +243,7 @@ public PagedFlux getTriggersByWorkspaceAsync(Context context) { /** * Lists triggers. * - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -256,7 +257,7 @@ public PagedIterable getTriggersByWorkspace() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -273,24 +274,19 @@ public PagedIterable getTriggersByWorkspace(Context context) { * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateTriggerWithResponseAsync( String triggerName, TriggerResource trigger, String ifMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.createOrUpdateTrigger( - this.client.getEndpoint(), - triggerName, - this.client.getApiVersion(), - ifMatch, - trigger, - accept, - context)); + this.client.getEndpoint(), triggerName, apiVersion, ifMatch, trigger, accept, context)); } /** @@ -302,16 +298,17 @@ public Mono> createOrUpdateTriggerWithResponseAsync( * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> createOrUpdateTriggerWithResponseAsync( String triggerName, TriggerResource trigger, String ifMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.createOrUpdateTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), ifMatch, trigger, accept, context); + this.client.getEndpoint(), triggerName, apiVersion, ifMatch, trigger, accept, context); } /** @@ -322,7 +319,7 @@ public Mono> createOrUpdateTriggerWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -346,7 +343,7 @@ public Mono createOrUpdateTriggerAsync( * @param triggerName The trigger name. * @param trigger Trigger resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -373,7 +370,7 @@ public Mono createOrUpdateTriggerAsync(String triggerName, Trig * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -399,7 +396,7 @@ public Mono createOrUpdateTriggerAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -414,7 +411,7 @@ public TriggerResource createOrUpdateTrigger(String triggerName, TriggerResource * @param triggerName The trigger name. * @param trigger Trigger resource definition. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -433,7 +430,7 @@ public TriggerResource createOrUpdateTrigger(String triggerName, TriggerResource * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -450,22 +447,18 @@ public Response createOrUpdateTriggerWithResponse( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getTriggerWithResponseAsync(String triggerName, String ifNoneMatch) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getTrigger( - this.client.getEndpoint(), - triggerName, - this.client.getApiVersion(), - ifNoneMatch, - accept, - context)); + this.client.getEndpoint(), triggerName, apiVersion, ifNoneMatch, accept, context)); } /** @@ -476,16 +469,16 @@ public Mono> getTriggerWithResponseAsync(String trigge * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getTriggerWithResponseAsync( String triggerName, String ifNoneMatch, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), ifNoneMatch, accept, context); + return service.getTrigger(this.client.getEndpoint(), triggerName, apiVersion, ifNoneMatch, accept, context); } /** @@ -495,7 +488,7 @@ public Mono> getTriggerWithResponseAsync( * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -517,7 +510,7 @@ public Mono getTriggerAsync(String triggerName, String ifNoneMa * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -543,7 +536,7 @@ public Mono getTriggerAsync(String triggerName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -567,7 +560,7 @@ public Mono getTriggerAsync(String triggerName, String ifNoneMa * @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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -581,7 +574,7 @@ public TriggerResource getTrigger(String triggerName, String ifNoneMatch) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -599,7 +592,7 @@ public TriggerResource getTrigger(String triggerName) { * 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 CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -613,17 +606,16 @@ public Response getTriggerWithResponse(String triggerName, Stri * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteTriggerWithResponseAsync(String triggerName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.deleteTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context)); + context -> service.deleteTrigger(this.client.getEndpoint(), triggerName, apiVersion, accept, context)); } /** @@ -632,15 +624,15 @@ public Mono> deleteTriggerWithResponseAsync(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteTriggerWithResponseAsync(String triggerName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.deleteTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context); + return service.deleteTrigger(this.client.getEndpoint(), triggerName, apiVersion, accept, context); } /** @@ -648,7 +640,7 @@ public Mono> deleteTriggerWithResponseAsync(String triggerName, C * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -663,7 +655,7 @@ public Mono deleteTriggerAsync(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -677,7 +669,7 @@ public Mono deleteTriggerAsync(String triggerName, Context context) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -691,7 +683,7 @@ public void deleteTrigger(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -705,18 +697,19 @@ public Response deleteTriggerWithResponse(String triggerName, Context cont * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> subscribeTriggerToEventsWithResponseAsync( String triggerName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.subscribeTriggerToEvents( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context)); + this.client.getEndpoint(), triggerName, apiVersion, accept, context)); } /** @@ -725,16 +718,16 @@ public Mono> subscribeTriggerToEven * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> subscribeTriggerToEventsWithResponseAsync( String triggerName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.subscribeTriggerToEvents( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context); + return service.subscribeTriggerToEvents(this.client.getEndpoint(), triggerName, apiVersion, accept, context); } /** @@ -742,7 +735,7 @@ public Mono> subscribeTriggerToEven * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -765,7 +758,7 @@ public Mono subscribeTriggerToEventsAsync(St * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -787,7 +780,7 @@ public Mono subscribeTriggerToEventsAsync(St * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -802,7 +795,7 @@ public TriggerSubscriptionOperationStatus subscribeTriggerToEvents(String trigge * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -817,18 +810,19 @@ public Response subscribeTriggerToEventsWith * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getEventSubscriptionStatusWithResponseAsync( String triggerName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getEventSubscriptionStatus( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context)); + this.client.getEndpoint(), triggerName, apiVersion, accept, context)); } /** @@ -837,16 +831,16 @@ public Mono> getEventSubscriptionSt * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> getEventSubscriptionStatusWithResponseAsync( String triggerName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.getEventSubscriptionStatus( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context); + return service.getEventSubscriptionStatus(this.client.getEndpoint(), triggerName, apiVersion, accept, context); } /** @@ -854,7 +848,7 @@ public Mono> getEventSubscriptionSt * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -877,7 +871,7 @@ public Mono getEventSubscriptionStatusAsync( * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -900,7 +894,7 @@ public Mono getEventSubscriptionStatusAsync( * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -915,7 +909,7 @@ public TriggerSubscriptionOperationStatus getEventSubscriptionStatus(String trig * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -930,18 +924,19 @@ public Response getEventSubscriptionStatusWi * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> unsubscribeTriggerFromEventsWithResponseAsync( String triggerName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.unsubscribeTriggerFromEvents( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context)); + this.client.getEndpoint(), triggerName, apiVersion, accept, context)); } /** @@ -950,16 +945,17 @@ public Mono> unsubscribeTriggerFrom * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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 Mono> unsubscribeTriggerFromEventsWithResponseAsync( String triggerName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.unsubscribeTriggerFromEvents( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context); + this.client.getEndpoint(), triggerName, apiVersion, accept, context); } /** @@ -967,7 +963,7 @@ public Mono> unsubscribeTriggerFrom * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -990,7 +986,7 @@ public Mono unsubscribeTriggerFromEventsAsyn * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1013,7 +1009,7 @@ public Mono unsubscribeTriggerFromEventsAsyn * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1028,7 +1024,7 @@ public TriggerSubscriptionOperationStatus unsubscribeTriggerFromEvents(String tr * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1043,17 +1039,16 @@ public Response unsubscribeTriggerFromEvents * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> startTriggerWithResponseAsync(String triggerName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.startTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context)); + context -> service.startTrigger(this.client.getEndpoint(), triggerName, apiVersion, accept, context)); } /** @@ -1062,15 +1057,15 @@ public Mono> startTriggerWithResponseAsync(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> startTriggerWithResponseAsync(String triggerName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.startTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context); + return service.startTrigger(this.client.getEndpoint(), triggerName, apiVersion, accept, context); } /** @@ -1078,7 +1073,7 @@ public Mono> startTriggerWithResponseAsync(String triggerName, Co * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -1093,7 +1088,7 @@ public Mono startTriggerAsync(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -1107,7 +1102,7 @@ public Mono startTriggerAsync(String triggerName, Context context) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -1121,7 +1116,7 @@ public void startTrigger(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1135,17 +1130,16 @@ public Response startTriggerWithResponse(String triggerName, Context conte * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> stopTriggerWithResponseAsync(String triggerName) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( - context -> - service.stopTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context)); + context -> service.stopTrigger(this.client.getEndpoint(), triggerName, apiVersion, accept, context)); } /** @@ -1154,15 +1148,15 @@ public Mono> stopTriggerWithResponseAsync(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> stopTriggerWithResponseAsync(String triggerName, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.stopTrigger( - this.client.getEndpoint(), triggerName, this.client.getApiVersion(), accept, context); + return service.stopTrigger(this.client.getEndpoint(), triggerName, apiVersion, accept, context); } /** @@ -1170,7 +1164,7 @@ public Mono> stopTriggerWithResponseAsync(String triggerName, Con * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -1185,7 +1179,7 @@ public Mono stopTriggerAsync(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */ @@ -1199,7 +1193,7 @@ public Mono stopTriggerAsync(String triggerName, Context context) { * * @param triggerName The trigger name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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) @@ -1213,7 +1207,7 @@ public void stopTrigger(String triggerName) { * @param triggerName The trigger name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1227,7 +1221,7 @@ public Response stopTriggerWithResponse(String triggerName, Context contex * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ @@ -1255,7 +1249,7 @@ public Mono> getTriggersByWorkspaceNextSinglePage * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws CloudErrorException thrown if the request is rejected by server. + * @throws CloudErrorAutoGeneratedException 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. */ diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspaceGitRepoManagementsImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspaceGitRepoManagementsImpl.java index 6fcac6f27b7ec..cbc3b4b03b783 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspaceGitRepoManagementsImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspaceGitRepoManagementsImpl.java @@ -78,13 +78,14 @@ Mono> getGitHubAccessToken( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getGitHubAccessTokenWithResponseAsync( GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return FluxUtil.withContext( context -> service.getGitHubAccessToken( this.client.getEndpoint(), clientRequestId, - this.client.getApiVersion(), + apiVersion, gitHubAccessTokenRequest, accept, context)); @@ -104,14 +105,10 @@ public Mono> getGitHubAccessTokenWithRespons @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getGitHubAccessTokenWithResponseAsync( GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId, Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; return service.getGitHubAccessToken( - this.client.getEndpoint(), - clientRequestId, - this.client.getApiVersion(), - gitHubAccessTokenRequest, - accept, - context); + this.client.getEndpoint(), clientRequestId, apiVersion, gitHubAccessTokenRequest, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspacesImpl.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspacesImpl.java index 9a04af071e349..7b95b9663274d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspacesImpl.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/implementation/WorkspacesImpl.java @@ -67,9 +67,9 @@ Mono> get( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync() { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return FluxUtil.withContext( - context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)); + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, accept, context)); } /** @@ -83,8 +83,9 @@ public Mono> getWithResponseAsync() { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync(Context context) { + final String apiVersion = "2020-12-01"; final String accept = "application/json"; - return service.get(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return service.get(this.client.getEndpoint(), apiVersion, accept, context); } /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleLinkedService.java new file mode 100644 index 0000000000000..b54750b0deaa4 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleLinkedService.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** AmazonRdsForOracle database. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonRdsForOracle") +@JsonFlatten +@Fluent +public class AmazonRdsForOracleLinkedService extends LinkedService { + /* + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /* + * The Azure key vault secret reference of password in connection string. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connectionString property: The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + * + * @return the connectionString value. + */ + public Object getConnectionString() { + return this.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 setConnectionString(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 getPassword() { + 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 AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService setPassword(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 getEncryptedCredential() { + 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 AmazonRdsForOracleLinkedService object itself. + */ + public AmazonRdsForOracleLinkedService setEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionOption.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionOption.java new file mode 100644 index 0000000000000..1d1dcedc6d7fd --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionOption.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for AmazonRdsForOraclePartitionOption. */ +public final class AmazonRdsForOraclePartitionOption extends ExpandableStringEnum { + /** Static value None for AmazonRdsForOraclePartitionOption. */ + public static final AmazonRdsForOraclePartitionOption NONE = fromString("None"); + + /** Static value PhysicalPartitionsOfTable for AmazonRdsForOraclePartitionOption. */ + public static final AmazonRdsForOraclePartitionOption PHYSICAL_PARTITIONS_OF_TABLE = + fromString("PhysicalPartitionsOfTable"); + + /** Static value DynamicRange for AmazonRdsForOraclePartitionOption. */ + public static final AmazonRdsForOraclePartitionOption DYNAMIC_RANGE = fromString("DynamicRange"); + + /** + * Creates or finds a AmazonRdsForOraclePartitionOption from its string representation. + * + * @param name a name to look for. + * @return the corresponding AmazonRdsForOraclePartitionOption. + */ + @JsonCreator + public static AmazonRdsForOraclePartitionOption fromString(String name) { + return fromString(name, AmazonRdsForOraclePartitionOption.class); + } + + /** @return known AmazonRdsForOraclePartitionOption values. */ + public static Collection values() { + return values(AmazonRdsForOraclePartitionOption.class); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionSettings.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionSettings.java new file mode 100644 index 0000000000000..450fba5154fe3 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOraclePartitionSettings.java @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.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 getPartitionNames() { + 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 setPartitionNames(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 getPartitionColumnName() { + 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 setPartitionColumnName(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 getPartitionUpperBound() { + 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 setPartitionUpperBound(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 getPartitionLowerBound() { + 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 setPartitionLowerBound(Object partitionLowerBound) { + this.partitionLowerBound = partitionLowerBound; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleSource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleSource.java new file mode 100644 index 0000000000000..f9f872e73f527 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleSource.java @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.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 getOracleReaderQuery() { + 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 setOracleReaderQuery(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 getQueryTimeout() { + 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 setQueryTimeout(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 getPartitionOption() { + 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 setPartitionOption(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 getPartitionSettings() { + 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 setPartitionSettings(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 getAdditionalColumns() { + 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 setAdditionalColumns(Object additionalColumns) { + this.additionalColumns = additionalColumns; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleTableDataset.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleTableDataset.java new file mode 100644 index 0000000000000..b6cca88bcb3fc --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForOracleTableDataset.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** The AmazonRdsForOracle database dataset. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonRdsForOracleTable") +@JsonFlatten +@Fluent +public class AmazonRdsForOracleTableDataset extends Dataset { + /* + * The schema name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; + + /* + * The table name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the schemaTypePropertiesSchema property: The schema name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). + * + * @return the schemaTypePropertiesSchema value. + */ + public Object getSchemaTypePropertiesSchema() { + return this.schemaTypePropertiesSchema; + } + + /** + * Set the schemaTypePropertiesSchema property: The schema name of the AmazonRdsForOracle database. Type: string (or + * Expression with resultType string). + * + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. + * @return the AmazonRdsForOracleTableDataset object itself. + */ + public AmazonRdsForOracleTableDataset setSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + 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 getTable() { + 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 AmazonRdsForOracleTableDataset object itself. + */ + public AmazonRdsForOracleTableDataset setTable(Object table) { + this.table = table; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerLinkedService.java new file mode 100644 index 0000000000000..891b220187d99 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerLinkedService.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** Amazon RDS for SQL Server linked service. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonRdsForSqlServer") +@JsonFlatten +@Fluent +public class AmazonRdsForSqlServerLinkedService extends LinkedService { + /* + * The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + */ + @JsonProperty(value = "typeProperties.connectionString", required = true) + private Object connectionString; + + /* + * The on-premises Windows authentication user name. Type: string (or + * Expression with resultType string). + */ + @JsonProperty(value = "typeProperties.userName") + private Object userName; + + /* + * The on-premises Windows authentication password. + */ + @JsonProperty(value = "typeProperties.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 = "typeProperties.encryptedCredential") + private Object encryptedCredential; + + /** + * Get the connectionString property: The connection string. Type: string, SecureString or + * AzureKeyVaultSecretReference. + * + * @return the connectionString value. + */ + public Object getConnectionString() { + return this.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 setConnectionString(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 getUserName() { + 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 AmazonRdsForSqlServerLinkedService object itself. + */ + public AmazonRdsForSqlServerLinkedService setUserName(Object userName) { + this.userName = userName; + return this; + } + + /** + * Get the password property: The on-premises Windows authentication password. + * + * @return the password value. + */ + public SecretBase getPassword() { + return this.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 setPassword(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 getEncryptedCredential() { + 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 AmazonRdsForSqlServerLinkedService object itself. + */ + public AmazonRdsForSqlServerLinkedService setEncryptedCredential(Object encryptedCredential) { + this.encryptedCredential = encryptedCredential; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerSource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerSource.java new file mode 100644 index 0000000000000..1bc2748270b33 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerSource.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.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.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") + 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 getSqlReaderQuery() { + 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 setSqlReaderQuery(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 getSqlReaderStoredProcedureName() { + 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 setSqlReaderStoredProcedureName(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 getStoredProcedureParameters() { + 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 setStoredProcedureParameters( + Map storedProcedureParameters) { + this.storedProcedureParameters = storedProcedureParameters; + return this; + } + + /** + * Get the produceAdditionalTypes property: Which additional types to produce. + * + * @return the produceAdditionalTypes value. + */ + public Object getProduceAdditionalTypes() { + 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 setProduceAdditionalTypes(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 getPartitionOption() { + 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 setPartitionOption(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 getPartitionSettings() { + 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 setPartitionSettings(SqlPartitionSettings partitionSettings) { + this.partitionSettings = partitionSettings; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerTableDataset.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerTableDataset.java new file mode 100644 index 0000000000000..3aad02d5c3689 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AmazonRdsForSqlServerTableDataset.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** The Amazon RDS for SQL Server dataset. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") +@JsonTypeName("AmazonRdsForSqlServerTable") +@JsonFlatten +@Fluent +public class AmazonRdsForSqlServerTableDataset extends Dataset { + /* + * The schema name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.schema") + private Object schemaTypePropertiesSchema; + + /* + * The table name of the SQL Server dataset. Type: string (or Expression + * with resultType string). + */ + @JsonProperty(value = "typeProperties.table") + private Object table; + + /** + * Get the schemaTypePropertiesSchema property: The schema name of the SQL Server dataset. Type: string (or + * Expression with resultType string). + * + * @return the schemaTypePropertiesSchema value. + */ + public Object getSchemaTypePropertiesSchema() { + return this.schemaTypePropertiesSchema; + } + + /** + * Set the schemaTypePropertiesSchema property: The schema name of the SQL Server dataset. Type: string (or + * Expression with resultType string). + * + * @param schemaTypePropertiesSchema the schemaTypePropertiesSchema value to set. + * @return the AmazonRdsForSqlServerTableDataset object itself. + */ + public AmazonRdsForSqlServerTableDataset setSchemaTypePropertiesSchema(Object schemaTypePropertiesSchema) { + this.schemaTypePropertiesSchema = schemaTypePropertiesSchema; + 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 getTable() { + 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 AmazonRdsForSqlServerTableDataset object itself. + */ + public AmazonRdsForSqlServerTableDataset setTable(Object table) { + this.table = table; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoPauseProperties.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoPauseProperties.java index caf295695638e..48d3b4aeed239 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoPauseProperties.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoPauseProperties.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Auto-pausing properties of a Big Data pool powered by Apache Spark. */ +/** Spark pool auto-pausing properties Auto-pausing properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class AutoPauseProperties { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoScaleProperties.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoScaleProperties.java index fce139c8571cc..f971962241b89 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoScaleProperties.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AutoScaleProperties.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Auto-scaling properties of a Big Data pool powered by Apache Spark. */ +/** Spark pool auto-scaling properties Auto-scaling properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class AutoScaleProperties { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureBlobStorageLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureBlobStorageLinkedService.java index 5250143fed9e7..7d6fdc8f5b4ed 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureBlobStorageLinkedService.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureBlobStorageLinkedService.java @@ -81,6 +81,14 @@ public class AzureBlobStorageLinkedService extends LinkedService { @JsonProperty(value = "typeProperties.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 = "typeProperties.accountKind") + private String accountKind; + /* * The encrypted credential used for authentication. Credentials are * encrypted using the integration runtime credential manager. Type: string @@ -285,6 +293,30 @@ public AzureBlobStorageLinkedService setAzureCloudType(Object 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 getAccountKind() { + 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 AzureBlobStorageLinkedService object itself. + */ + public AzureBlobStorageLinkedService setAccountKind(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). diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureDataExplorerLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureDataExplorerLinkedService.java index d7ed0c0197542..4fb14324a0041 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureDataExplorerLinkedService.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureDataExplorerLinkedService.java @@ -28,13 +28,13 @@ public class AzureDataExplorerLinkedService extends LinkedService { * The ID of the service principal used to authenticate against Azure Data * Explorer. Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties.servicePrincipalId", required = true) + @JsonProperty(value = "typeProperties.servicePrincipalId") private Object servicePrincipalId; /* * The key of the service principal used to authenticate against Kusto. */ - @JsonProperty(value = "typeProperties.servicePrincipalKey", required = true) + @JsonProperty(value = "typeProperties.servicePrincipalKey") private SecretBase servicePrincipalKey; /* @@ -48,7 +48,7 @@ public class AzureDataExplorerLinkedService extends LinkedService { * The name or ID of the tenant to which the service principal belongs. * Type: string (or Expression with resultType string). */ - @JsonProperty(value = "typeProperties.tenant", required = true) + @JsonProperty(value = "typeProperties.tenant") private Object tenant; /** diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureEntityResource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureEntityResource.java index 7ba588778fdf8..45539bae5b0ea 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureEntityResource.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/AzureEntityResource.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** The resource model definition for an Azure Resource Manager resource with an etag. */ +/** Entity Resource The resource model definition for an Azure Resource Manager resource with an etag. */ @Immutable public class AzureEntityResource extends Resource { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfo.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfo.java index c51c6a3659ce8..26c80a7105407 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfo.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfo.java @@ -10,7 +10,7 @@ import java.time.OffsetDateTime; import java.util.List; -/** A Big Data pool. */ +/** Big Data pool A Big Data pool. */ @JsonFlatten @Fluent public class BigDataPoolResourceInfo extends TrackedResource { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfoListResult.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfoListResult.java index 0047bc28c4e2e..ba59ff05bfd41 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfoListResult.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/BigDataPoolResourceInfoListResult.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Collection of Big Data pool information. */ +/** Collection of Big Data pools Collection of Big Data pool information. */ @Fluent public final class BigDataPoolResourceInfoListResult { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGenerated.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGenerated.java new file mode 100644 index 0000000000000..a0e60dec31a00 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGenerated.java @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.JsonFlatten; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The object that defines the structure of an Azure Synapse error response. */ +@JsonFlatten +@Fluent +public class CloudErrorAutoGenerated { + /* + * Error code. + */ + @JsonProperty(value = "error.code", required = true) + private String code; + + /* + * Error message. + */ + @JsonProperty(value = "error.message", required = true) + private String message; + + /* + * Property name/path in request associated with error. + */ + @JsonProperty(value = "error.target") + private String target; + + /* + * Array with additional error details. + */ + @JsonProperty(value = "error.details") + private List details; + + /** + * Get the code property: Error code. + * + * @return the code value. + */ + public String getCode() { + return this.code; + } + + /** + * Set the code property: Error code. + * + * @param code the code value to set. + * @return the CloudErrorAutoGenerated object itself. + */ + public CloudErrorAutoGenerated setCode(String code) { + this.code = code; + return this; + } + + /** + * Get the message property: Error message. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Set the message property: Error message. + * + * @param message the message value to set. + * @return the CloudErrorAutoGenerated object itself. + */ + public CloudErrorAutoGenerated setMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the target property: Property name/path in request associated with error. + * + * @return the target value. + */ + public String getTarget() { + return this.target; + } + + /** + * Set the target property: Property name/path in request associated with error. + * + * @param target the target value to set. + * @return the CloudErrorAutoGenerated object itself. + */ + public CloudErrorAutoGenerated setTarget(String target) { + this.target = target; + return this; + } + + /** + * Get the details property: Array with additional error details. + * + * @return the details value. + */ + public List getDetails() { + return this.details; + } + + /** + * Set the details property: Array with additional error details. + * + * @param details the details value to set. + * @return the CloudErrorAutoGenerated object itself. + */ + public CloudErrorAutoGenerated setDetails(List details) { + this.details = details; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGeneratedException.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGeneratedException.java new file mode 100644 index 0000000000000..49b20f659554a --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CloudErrorAutoGeneratedException.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** Exception thrown for an invalid response with CloudErrorAutoGenerated information. */ +public final class CloudErrorAutoGeneratedException extends HttpResponseException { + /** + * Initializes a new instance of the CloudErrorAutoGeneratedException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public CloudErrorAutoGeneratedException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the CloudErrorAutoGeneratedException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public CloudErrorAutoGeneratedException(String message, HttpResponse response, CloudErrorAutoGenerated value) { + super(message, response, value); + } + + @Override + public CloudErrorAutoGenerated getValue() { + return (CloudErrorAutoGenerated) super.getValue(); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CommonDataServiceForAppsLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CommonDataServiceForAppsLinkedService.java index 7ee99ebcc3cb4..81655fd7f6fbe 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CommonDataServiceForAppsLinkedService.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CommonDataServiceForAppsLinkedService.java @@ -23,7 +23,7 @@ public class CommonDataServiceForAppsLinkedService extends LinkedService { * Expression with resultType string). */ @JsonProperty(value = "typeProperties.deploymentType", required = true) - private DynamicsDeploymentType deploymentType; + private Object deploymentType; /* * The host name of the on-premises Common Data Service for Apps server. @@ -65,7 +65,7 @@ public class CommonDataServiceForAppsLinkedService extends LinkedService { * online scenario. Type: string (or Expression with resultType string). */ @JsonProperty(value = "typeProperties.authenticationType", required = true) - private DynamicsAuthenticationType authenticationType; + private Object authenticationType; /* * User name to access the Common Data Service for Apps instance. Type: @@ -120,7 +120,7 @@ public class CommonDataServiceForAppsLinkedService extends LinkedService { * * @return the deploymentType value. */ - public DynamicsDeploymentType getDeploymentType() { + public Object getDeploymentType() { return this.deploymentType; } @@ -132,7 +132,7 @@ public DynamicsDeploymentType getDeploymentType() { * @param deploymentType the deploymentType value to set. * @return the CommonDataServiceForAppsLinkedService object itself. */ - public CommonDataServiceForAppsLinkedService setDeploymentType(DynamicsDeploymentType deploymentType) { + public CommonDataServiceForAppsLinkedService setDeploymentType(Object deploymentType) { this.deploymentType = deploymentType; return this; } @@ -236,7 +236,7 @@ public CommonDataServiceForAppsLinkedService setOrganizationName(Object organiza * * @return the authenticationType value. */ - public DynamicsAuthenticationType getAuthenticationType() { + public Object getAuthenticationType() { return this.authenticationType; } @@ -248,7 +248,7 @@ public DynamicsAuthenticationType getAuthenticationType() { * @param authenticationType the authenticationType value to set. * @return the CommonDataServiceForAppsLinkedService object itself. */ - public CommonDataServiceForAppsLinkedService setAuthenticationType(DynamicsAuthenticationType authenticationType) { + public CommonDataServiceForAppsLinkedService setAuthenticationType(Object authenticationType) { this.authenticationType = authenticationType; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CompressionCodec.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CompressionCodec.java index ff2ba92f18ebc..a07d8d0940ebd 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CompressionCodec.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CompressionCodec.java @@ -10,6 +10,12 @@ /** Defines values for CompressionCodec. */ public final class CompressionCodec extends ExpandableStringEnum { + /** Static value none for CompressionCodec. */ + public static final CompressionCodec NONE = fromString("none"); + + /** Static value lzo for CompressionCodec. */ + public static final CompressionCodec LZO = fromString("lzo"); + /** Static value bzip2 for CompressionCodec. */ public static final CompressionCodec BZIP2 = fromString("bzip2"); diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CopySource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CopySource.java index 1a8d1efea7a3a..682c99d42824e 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CopySource.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CopySource.java @@ -47,6 +47,7 @@ @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), diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CreateDataFlowDebugSessionRequest.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CreateDataFlowDebugSessionRequest.java index b7f919ee19f9f..d37ef4e3feded 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CreateDataFlowDebugSessionRequest.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/CreateDataFlowDebugSessionRequest.java @@ -11,158 +11,112 @@ @Fluent public final class CreateDataFlowDebugSessionRequest { /* - * The name of the data flow. + * Compute type of the cluster. The value will be overwritten by the same + * setting in integration runtime if provided. */ - @JsonProperty(value = "dataFlowName") - private String dataFlowName; + @JsonProperty(value = "computeType") + private String computeType; /* - * The ID of existing Databricks cluster. + * Core count of the cluster. The value will be overwritten by the same + * setting in integration runtime if provided. */ - @JsonProperty(value = "existingClusterId") - private String existingClusterId; + @JsonProperty(value = "coreCount") + private Integer coreCount; /* - * Timeout setting for Databricks cluster. + * Time to live setting of the cluster in minutes. */ - @JsonProperty(value = "clusterTimeout") - private Integer clusterTimeout; + @JsonProperty(value = "timeToLive") + private Integer timeToLive; /* - * The name of new Databricks cluster. + * Set to use integration runtime setting for data flow debug session. */ - @JsonProperty(value = "newClusterName") - private String newClusterName; - - /* - * The type of new Databricks cluster. - */ - @JsonProperty(value = "newClusterNodeType") - private String newClusterNodeType; - - /* - * Data bricks linked service. - */ - @JsonProperty(value = "dataBricksLinkedService") - private LinkedServiceResource dataBricksLinkedService; - - /** - * Get the dataFlowName property: The name of the data flow. - * - * @return the dataFlowName value. - */ - public String getDataFlowName() { - return this.dataFlowName; - } - - /** - * Set the dataFlowName property: The name of the data flow. - * - * @param dataFlowName the dataFlowName value to set. - * @return the CreateDataFlowDebugSessionRequest object itself. - */ - public CreateDataFlowDebugSessionRequest setDataFlowName(String dataFlowName) { - this.dataFlowName = dataFlowName; - return this; - } - - /** - * Get the existingClusterId property: The ID of existing Databricks cluster. - * - * @return the existingClusterId value. - */ - public String getExistingClusterId() { - return this.existingClusterId; - } - - /** - * Set the existingClusterId property: The ID of existing Databricks cluster. - * - * @param existingClusterId the existingClusterId value to set. - * @return the CreateDataFlowDebugSessionRequest object itself. - */ - public CreateDataFlowDebugSessionRequest setExistingClusterId(String existingClusterId) { - this.existingClusterId = existingClusterId; - return this; - } + @JsonProperty(value = "integrationRuntime") + private IntegrationRuntimeDebugResource integrationRuntime; /** - * Get the clusterTimeout property: Timeout setting for Databricks cluster. + * 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 clusterTimeout value. + * @return the computeType value. */ - public Integer getClusterTimeout() { - return this.clusterTimeout; + public String getComputeType() { + return this.computeType; } /** - * Set the clusterTimeout property: Timeout setting for Databricks cluster. + * Set the computeType property: Compute type of the cluster. The value will be overwritten by the same setting in + * integration runtime if provided. * - * @param clusterTimeout the clusterTimeout value to set. + * @param computeType the computeType value to set. * @return the CreateDataFlowDebugSessionRequest object itself. */ - public CreateDataFlowDebugSessionRequest setClusterTimeout(Integer clusterTimeout) { - this.clusterTimeout = clusterTimeout; + public CreateDataFlowDebugSessionRequest setComputeType(String computeType) { + this.computeType = computeType; return this; } /** - * Get the newClusterName property: The name of new Databricks cluster. + * 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 newClusterName value. + * @return the coreCount value. */ - public String getNewClusterName() { - return this.newClusterName; + public Integer getCoreCount() { + return this.coreCount; } /** - * Set the newClusterName property: The name of new Databricks cluster. + * Set the coreCount property: Core count of the cluster. The value will be overwritten by the same setting in + * integration runtime if provided. * - * @param newClusterName the newClusterName value to set. + * @param coreCount the coreCount value to set. * @return the CreateDataFlowDebugSessionRequest object itself. */ - public CreateDataFlowDebugSessionRequest setNewClusterName(String newClusterName) { - this.newClusterName = newClusterName; + public CreateDataFlowDebugSessionRequest setCoreCount(Integer coreCount) { + this.coreCount = coreCount; return this; } /** - * Get the newClusterNodeType property: The type of new Databricks cluster. + * Get the timeToLive property: Time to live setting of the cluster in minutes. * - * @return the newClusterNodeType value. + * @return the timeToLive value. */ - public String getNewClusterNodeType() { - return this.newClusterNodeType; + public Integer getTimeToLive() { + return this.timeToLive; } /** - * Set the newClusterNodeType property: The type of new Databricks cluster. + * Set the timeToLive property: Time to live setting of the cluster in minutes. * - * @param newClusterNodeType the newClusterNodeType value to set. + * @param timeToLive the timeToLive value to set. * @return the CreateDataFlowDebugSessionRequest object itself. */ - public CreateDataFlowDebugSessionRequest setNewClusterNodeType(String newClusterNodeType) { - this.newClusterNodeType = newClusterNodeType; + public CreateDataFlowDebugSessionRequest setTimeToLive(Integer timeToLive) { + this.timeToLive = timeToLive; return this; } /** - * Get the dataBricksLinkedService property: Data bricks linked service. + * Get the integrationRuntime property: Set to use integration runtime setting for data flow debug session. * - * @return the dataBricksLinkedService value. + * @return the integrationRuntime value. */ - public LinkedServiceResource getDataBricksLinkedService() { - return this.dataBricksLinkedService; + public IntegrationRuntimeDebugResource getIntegrationRuntime() { + return this.integrationRuntime; } /** - * Set the dataBricksLinkedService property: Data bricks linked service. + * Set the integrationRuntime property: Set to use integration runtime setting for data flow debug session. * - * @param dataBricksLinkedService the dataBricksLinkedService value to set. + * @param integrationRuntime the integrationRuntime value to set. * @return the CreateDataFlowDebugSessionRequest object itself. */ - public CreateDataFlowDebugSessionRequest setDataBricksLinkedService(LinkedServiceResource dataBricksLinkedService) { - this.dataBricksLinkedService = dataBricksLinkedService; + public CreateDataFlowDebugSessionRequest setIntegrationRuntime(IntegrationRuntimeDebugResource integrationRuntime) { + this.integrationRuntime = integrationRuntime; return this; } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandPayload.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandPayload.java new file mode 100644 index 0000000000000..fed44a88d027f --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandPayload.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +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 getStreamName() { + 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 setStreamName(String streamName) { + this.streamName = streamName; + return this; + } + + /** + * Get the rowLimits property: Row limits for preview response. + * + * @return the rowLimits value. + */ + public Integer getRowLimits() { + 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 setRowLimits(Integer rowLimits) { + this.rowLimits = rowLimits; + return this; + } + + /** + * Get the columns property: Array of column names. + * + * @return the columns value. + */ + public List getColumns() { + 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 setColumns(List columns) { + this.columns = columns; + return this; + } + + /** + * Get the expression property: The expression which is used for preview. + * + * @return the expression value. + */ + public String getExpression() { + 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 setExpression(String expression) { + this.expression = expression; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandRequest.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandRequest.java index b6b19f2ce1544..0a4d723d7b19c 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandRequest.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandRequest.java @@ -13,26 +13,20 @@ public final class DataFlowDebugCommandRequest { /* * The ID of data flow debug session. */ - @JsonProperty(value = "sessionId", required = true) + @JsonProperty(value = "sessionId") private String sessionId; /* - * The data flow which contains the debug session. + * The command type. */ - @JsonProperty(value = "dataFlowName") - private String dataFlowName; - - /* - * The command name. - */ - @JsonProperty(value = "commandName") - private String commandName; + @JsonProperty(value = "command") + private DataFlowDebugCommandType command; /* * The command payload object. */ - @JsonProperty(value = "commandPayload", required = true) - private Object commandPayload; + @JsonProperty(value = "commandPayload") + private DataFlowDebugCommandPayload commandPayload; /** * Get the sessionId property: The ID of data flow debug session. @@ -55,42 +49,22 @@ public DataFlowDebugCommandRequest setSessionId(String sessionId) { } /** - * Get the dataFlowName property: The data flow which contains the debug session. - * - * @return the dataFlowName value. - */ - public String getDataFlowName() { - return this.dataFlowName; - } - - /** - * Set the dataFlowName property: The data flow which contains the debug session. - * - * @param dataFlowName the dataFlowName value to set. - * @return the DataFlowDebugCommandRequest object itself. - */ - public DataFlowDebugCommandRequest setDataFlowName(String dataFlowName) { - this.dataFlowName = dataFlowName; - return this; - } - - /** - * Get the commandName property: The command name. + * Get the command property: The command type. * - * @return the commandName value. + * @return the command value. */ - public String getCommandName() { - return this.commandName; + public DataFlowDebugCommandType getCommand() { + return this.command; } /** - * Set the commandName property: The command name. + * Set the command property: The command type. * - * @param commandName the commandName value to set. + * @param command the command value to set. * @return the DataFlowDebugCommandRequest object itself. */ - public DataFlowDebugCommandRequest setCommandName(String commandName) { - this.commandName = commandName; + public DataFlowDebugCommandRequest setCommand(DataFlowDebugCommandType command) { + this.command = command; return this; } @@ -99,7 +73,7 @@ public DataFlowDebugCommandRequest setCommandName(String commandName) { * * @return the commandPayload value. */ - public Object getCommandPayload() { + public DataFlowDebugCommandPayload getCommandPayload() { return this.commandPayload; } @@ -109,7 +83,7 @@ public Object getCommandPayload() { * @param commandPayload the commandPayload value to set. * @return the DataFlowDebugCommandRequest object itself. */ - public DataFlowDebugCommandRequest setCommandPayload(Object commandPayload) { + public DataFlowDebugCommandRequest setCommandPayload(DataFlowDebugCommandPayload commandPayload) { this.commandPayload = commandPayload; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandType.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandType.java new file mode 100644 index 0000000000000..dfd224fd4b940 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DataFlowDebugCommandType.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.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/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Dataset.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Dataset.java index 8f1fe04652e02..4af5bf1a4a6a3 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Dataset.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Dataset.java @@ -58,6 +58,7 @@ @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), @@ -77,6 +78,7 @@ @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), diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetDeflateCompression.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetDeflateCompression.java index 4e90865e09f14..d865144d107bb 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetDeflateCompression.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetDeflateCompression.java @@ -15,13 +15,14 @@ @Fluent public final class DatasetDeflateCompression extends DatasetCompression { /* - * The Deflate compression level. + * The Deflate compression level. Type: string (or Expression with + * resultType string). */ @JsonProperty(value = "level") private Object level; /** - * Get the level property: The Deflate compression level. + * Get the level property: The Deflate compression level. Type: string (or Expression with resultType string). * * @return the level value. */ @@ -30,7 +31,7 @@ public Object getLevel() { } /** - * Set the level property: The Deflate compression level. + * Set the level property: The Deflate compression level. Type: string (or Expression with resultType string). * * @param level the level value to set. * @return the DatasetDeflateCompression object itself. diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetGZipCompression.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetGZipCompression.java index 4a36059b795cc..92a3d171f6e6e 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetGZipCompression.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetGZipCompression.java @@ -15,13 +15,14 @@ @Fluent public final class DatasetGZipCompression extends DatasetCompression { /* - * The GZip compression level. + * The GZip compression level. Type: string (or Expression with resultType + * string). */ @JsonProperty(value = "level") private Object level; /** - * Get the level property: The GZip compression level. + * Get the level property: The GZip compression level. Type: string (or Expression with resultType string). * * @return the level value. */ @@ -30,7 +31,7 @@ public Object getLevel() { } /** - * Set the level property: The GZip compression level. + * Set the level property: The GZip compression level. Type: string (or Expression with resultType string). * * @param level the level value to set. * @return the DatasetGZipCompression object itself. diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetTarGZipCompression.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetTarGZipCompression.java index 0e3493b5d7e6c..538ee130adc19 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetTarGZipCompression.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetTarGZipCompression.java @@ -15,13 +15,14 @@ @Fluent public final class DatasetTarGZipCompression extends DatasetCompression { /* - * The TarGZip compression level. + * The TarGZip compression level. Type: string (or Expression with + * resultType string). */ @JsonProperty(value = "level") private Object level; /** - * Get the level property: The TarGZip compression level. + * Get the level property: The TarGZip compression level. Type: string (or Expression with resultType string). * * @return the level value. */ @@ -30,7 +31,7 @@ public Object getLevel() { } /** - * Set the level property: The TarGZip compression level. + * Set the level property: The TarGZip compression level. Type: string (or Expression with resultType string). * * @param level the level value to set. * @return the DatasetTarGZipCompression object itself. diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetZipDeflateCompression.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetZipDeflateCompression.java index 4d3266eaa1153..c9d6870c24f2c 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetZipDeflateCompression.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DatasetZipDeflateCompression.java @@ -15,13 +15,14 @@ @Fluent public final class DatasetZipDeflateCompression extends DatasetCompression { /* - * The ZipDeflate compression level. + * The ZipDeflate compression level. Type: string (or Expression with + * resultType string). */ @JsonProperty(value = "level") private Object level; /** - * Get the level property: The ZipDeflate compression level. + * Get the level property: The ZipDeflate compression level. Type: string (or Expression with resultType string). * * @return the level value. */ @@ -30,7 +31,7 @@ public Object getLevel() { } /** - * Set the level property: The ZipDeflate compression level. + * Set the level property: The ZipDeflate compression level. Type: string (or Expression with resultType string). * * @param level the level value to set. * @return the DatasetZipDeflateCompression object itself. diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DelimitedTextDataset.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DelimitedTextDataset.java index ddc5fc7ea5fe4..25a1f92263f04 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DelimitedTextDataset.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DelimitedTextDataset.java @@ -46,10 +46,11 @@ public class DelimitedTextDataset extends Dataset { private Object encodingName; /* - * The compressionCodec property. + * The data compressionCodec. Type: string (or Expression with resultType + * string). */ @JsonProperty(value = "typeProperties.compressionCodec") - private CompressionCodec compressionCodec; + private Object compressionCodec; /* * The data compression method used for DelimitedText. @@ -174,21 +175,23 @@ public DelimitedTextDataset setEncodingName(Object encodingName) { } /** - * Get the compressionCodec property: The compressionCodec property. + * Get the compressionCodec property: The data compressionCodec. Type: string (or Expression with resultType + * string). * * @return the compressionCodec value. */ - public CompressionCodec getCompressionCodec() { + public Object getCompressionCodec() { return this.compressionCodec; } /** - * Set the compressionCodec property: The compressionCodec property. + * 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 setCompressionCodec(CompressionCodec compressionCodec) { + public DelimitedTextDataset setCompressionCodec(Object compressionCodec) { this.compressionCodec = compressionCodec; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsCrmLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsCrmLinkedService.java index 022e9a90b3a43..5885dc881f62d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsCrmLinkedService.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsCrmLinkedService.java @@ -22,7 +22,7 @@ public class DynamicsCrmLinkedService extends LinkedService { * Ifd. Type: string (or Expression with resultType string). */ @JsonProperty(value = "typeProperties.deploymentType", required = true) - private DynamicsDeploymentType deploymentType; + private Object deploymentType; /* * The host name of the on-premises Dynamics CRM server. The property is @@ -64,7 +64,7 @@ public class DynamicsCrmLinkedService extends LinkedService { * scenario. Type: string (or Expression with resultType string). */ @JsonProperty(value = "typeProperties.authenticationType", required = true) - private DynamicsAuthenticationType authenticationType; + private Object authenticationType; /* * User name to access the Dynamics CRM instance. Type: string (or @@ -119,7 +119,7 @@ public class DynamicsCrmLinkedService extends LinkedService { * * @return the deploymentType value. */ - public DynamicsDeploymentType getDeploymentType() { + public Object getDeploymentType() { return this.deploymentType; } @@ -131,7 +131,7 @@ public DynamicsDeploymentType getDeploymentType() { * @param deploymentType the deploymentType value to set. * @return the DynamicsCrmLinkedService object itself. */ - public DynamicsCrmLinkedService setDeploymentType(DynamicsDeploymentType deploymentType) { + public DynamicsCrmLinkedService setDeploymentType(Object deploymentType) { this.deploymentType = deploymentType; return this; } @@ -233,7 +233,7 @@ public DynamicsCrmLinkedService setOrganizationName(Object organizationName) { * * @return the authenticationType value. */ - public DynamicsAuthenticationType getAuthenticationType() { + public Object getAuthenticationType() { return this.authenticationType; } @@ -245,7 +245,7 @@ public DynamicsAuthenticationType getAuthenticationType() { * @param authenticationType the authenticationType value to set. * @return the DynamicsCrmLinkedService object itself. */ - public DynamicsCrmLinkedService setAuthenticationType(DynamicsAuthenticationType authenticationType) { + public DynamicsCrmLinkedService setAuthenticationType(Object authenticationType) { this.authenticationType = authenticationType; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsLinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsLinkedService.java index bc6cc280a9062..bebac35eafed2 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsLinkedService.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsLinkedService.java @@ -22,7 +22,7 @@ public class DynamicsLinkedService extends LinkedService { * string (or Expression with resultType string). */ @JsonProperty(value = "typeProperties.deploymentType", required = true) - private DynamicsDeploymentType deploymentType; + private Object deploymentType; /* * The host name of the on-premises Dynamics server. The property is @@ -64,7 +64,7 @@ public class DynamicsLinkedService extends LinkedService { * scenario. Type: string (or Expression with resultType string). */ @JsonProperty(value = "typeProperties.authenticationType", required = true) - private DynamicsAuthenticationType authenticationType; + private Object authenticationType; /* * User name to access the Dynamics instance. Type: string (or Expression @@ -94,7 +94,7 @@ public class DynamicsLinkedService extends LinkedService { * resultType string). */ @JsonProperty(value = "typeProperties.servicePrincipalCredentialType") - private DynamicsServicePrincipalCredentialType servicePrincipalCredentialType; + private Object servicePrincipalCredentialType; /* * The credential of the service principal object in Azure Active @@ -121,7 +121,7 @@ public class DynamicsLinkedService extends LinkedService { * * @return the deploymentType value. */ - public DynamicsDeploymentType getDeploymentType() { + public Object getDeploymentType() { return this.deploymentType; } @@ -132,7 +132,7 @@ public DynamicsDeploymentType getDeploymentType() { * @param deploymentType the deploymentType value to set. * @return the DynamicsLinkedService object itself. */ - public DynamicsLinkedService setDeploymentType(DynamicsDeploymentType deploymentType) { + public DynamicsLinkedService setDeploymentType(Object deploymentType) { this.deploymentType = deploymentType; return this; } @@ -234,7 +234,7 @@ public DynamicsLinkedService setOrganizationName(Object organizationName) { * * @return the authenticationType value. */ - public DynamicsAuthenticationType getAuthenticationType() { + public Object getAuthenticationType() { return this.authenticationType; } @@ -246,7 +246,7 @@ public DynamicsAuthenticationType getAuthenticationType() { * @param authenticationType the authenticationType value to set. * @return the DynamicsLinkedService object itself. */ - public DynamicsLinkedService setAuthenticationType(DynamicsAuthenticationType authenticationType) { + public DynamicsLinkedService setAuthenticationType(Object authenticationType) { this.authenticationType = authenticationType; return this; } @@ -322,7 +322,7 @@ public DynamicsLinkedService setServicePrincipalId(Object servicePrincipalId) { * * @return the servicePrincipalCredentialType value. */ - public DynamicsServicePrincipalCredentialType getServicePrincipalCredentialType() { + public Object getServicePrincipalCredentialType() { return this.servicePrincipalCredentialType; } @@ -334,8 +334,7 @@ public DynamicsServicePrincipalCredentialType getServicePrincipalCredentialType( * @param servicePrincipalCredentialType the servicePrincipalCredentialType value to set. * @return the DynamicsLinkedService object itself. */ - public DynamicsLinkedService setServicePrincipalCredentialType( - DynamicsServicePrincipalCredentialType servicePrincipalCredentialType) { + public DynamicsLinkedService setServicePrincipalCredentialType(Object servicePrincipalCredentialType) { this.servicePrincipalCredentialType = servicePrincipalCredentialType; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsServicePrincipalCredentialType.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsServicePrincipalCredentialType.java deleted file mode 100644 index 822883496c49d..0000000000000 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/DynamicsServicePrincipalCredentialType.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.analytics.synapse.artifacts.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for DynamicsServicePrincipalCredentialType. */ -public final class DynamicsServicePrincipalCredentialType - extends ExpandableStringEnum { - /** Static value ServicePrincipalKey for DynamicsServicePrincipalCredentialType. */ - public static final DynamicsServicePrincipalCredentialType SERVICE_PRINCIPAL_KEY = - fromString("ServicePrincipalKey"); - - /** Static value ServicePrincipalCert for DynamicsServicePrincipalCredentialType. */ - public static final DynamicsServicePrincipalCredentialType SERVICE_PRINCIPAL_CERT = - fromString("ServicePrincipalCert"); - - /** - * Creates or finds a DynamicsServicePrincipalCredentialType from its string representation. - * - * @param name a name to look for. - * @return the corresponding DynamicsServicePrincipalCredentialType. - */ - @JsonCreator - public static DynamicsServicePrincipalCredentialType fromString(String name) { - return fromString(name, DynamicsServicePrincipalCredentialType.class); - } - - /** @return known DynamicsServicePrincipalCredentialType values. */ - public static Collection values() { - return values(DynamicsServicePrincipalCredentialType.class); - } -} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorContract.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorContract.java index fd00aa90389d3..80cc0a74b1f15 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorContract.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorContract.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Contains details when the response code indicates an error. */ +/** Error details. Contains details when the response code indicates an error. */ @Fluent public final class ErrorContract { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorResponse.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorResponse.java index 48b1c89600beb..8488eb44bcdfb 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorResponse.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ErrorResponse.java @@ -9,8 +9,8 @@ import java.util.List; /** - * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also - * follows the OData error response format.). + * Error Response Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). */ @Immutable public final class ErrorResponse { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDataFlowProperties.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDataFlowProperties.java index 0a517db85814c..62da7dbbc384f 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDataFlowProperties.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDataFlowProperties.java @@ -35,6 +35,14 @@ public final class IntegrationRuntimeDataFlowProperties { @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. */ @@ -102,6 +110,28 @@ public IntegrationRuntimeDataFlowProperties setTimeToLive(Integer 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 isCleanup() { + 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 setCleanup(Boolean cleanup) { + this.cleanup = cleanup; + return this; + } + /** * Get the additionalProperties property: Data flow properties for managed integration runtime. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDebugResource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDebugResource.java new file mode 100644 index 0000000000000..b83ab18e935c3 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/IntegrationRuntimeDebugResource.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +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 getProperties() { + return this.properties; + } + + /** + * Set the properties property: Integration runtime properties. + * + * @param properties the properties value to set. + * @return the IntegrationRuntimeDebugResource object itself. + */ + public IntegrationRuntimeDebugResource setProperties(IntegrationRuntime properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonFormat.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonFormat.java index 16335b211be28..bd810a13d7db0 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonFormat.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonFormat.java @@ -20,7 +20,7 @@ public final class JsonFormat extends DatasetStorageFormat { * case-sensitive. */ @JsonProperty(value = "filePattern") - private JsonFormatFilePattern filePattern; + private Object filePattern; /* * The character used to separate nesting levels. Default value is '.' @@ -64,7 +64,7 @@ public final class JsonFormat extends DatasetStorageFormat { * * @return the filePattern value. */ - public JsonFormatFilePattern getFilePattern() { + public Object getFilePattern() { return this.filePattern; } @@ -75,7 +75,7 @@ public JsonFormatFilePattern getFilePattern() { * @param filePattern the filePattern value to set. * @return the JsonFormat object itself. */ - public JsonFormat setFilePattern(JsonFormatFilePattern filePattern) { + public JsonFormat setFilePattern(Object filePattern) { this.filePattern = filePattern; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonWriteSettings.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonWriteSettings.java index ca6b0d0e2c83d..6dde67ed1a876 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonWriteSettings.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/JsonWriteSettings.java @@ -20,7 +20,7 @@ public final class JsonWriteSettings extends FormatWriteSettings { * case-sensitive. */ @JsonProperty(value = "filePattern") - private JsonWriteFilePattern filePattern; + private Object filePattern; /** * Get the filePattern property: File pattern of JSON. This setting controls the way a collection of JSON objects @@ -28,7 +28,7 @@ public final class JsonWriteSettings extends FormatWriteSettings { * * @return the filePattern value. */ - public JsonWriteFilePattern getFilePattern() { + public Object getFilePattern() { return this.filePattern; } @@ -39,7 +39,7 @@ public JsonWriteFilePattern getFilePattern() { * @param filePattern the filePattern value to set. * @return the JsonWriteSettings object itself. */ - public JsonWriteSettings setFilePattern(JsonWriteFilePattern filePattern) { + public JsonWriteSettings setFilePattern(Object filePattern) { this.filePattern = filePattern; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScript.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScript.java new file mode 100644 index 0000000000000..b4b5a9effea5b --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScript.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The KqlScript model. */ +@Fluent +public final class KqlScript { + /* + * The content property. + */ + @JsonProperty(value = "content") + private KqlScriptContent content; + + /** + * Get the content property: The content property. + * + * @return the content value. + */ + public KqlScriptContent getContent() { + return this.content; + } + + /** + * Set the content property: The content property. + * + * @param content the content value to set. + * @return the KqlScript object itself. + */ + public KqlScript setContent(KqlScriptContent content) { + this.content = content; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContent.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContent.java new file mode 100644 index 0000000000000..b20f5492b32ab --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContent.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The KqlScriptContent model. */ +@Fluent +public final class KqlScriptContent { + /* + * The query property. + */ + @JsonProperty(value = "query") + private String query; + + /* + * The metadata property. + */ + @JsonProperty(value = "metadata") + private KqlScriptContentMetadata metadata; + + /* + * The currentConnection property. + */ + @JsonProperty(value = "currentConnection") + private KqlScriptContentCurrentConnection currentConnection; + + /** + * Get the query property: The query property. + * + * @return the query value. + */ + public String getQuery() { + return this.query; + } + + /** + * Set the query property: The query property. + * + * @param query the query value to set. + * @return the KqlScriptContent object itself. + */ + public KqlScriptContent setQuery(String query) { + this.query = query; + return this; + } + + /** + * Get the metadata property: The metadata property. + * + * @return the metadata value. + */ + public KqlScriptContentMetadata getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata property. + * + * @param metadata the metadata value to set. + * @return the KqlScriptContent object itself. + */ + public KqlScriptContent setMetadata(KqlScriptContentMetadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the currentConnection property: The currentConnection property. + * + * @return the currentConnection value. + */ + public KqlScriptContentCurrentConnection getCurrentConnection() { + return this.currentConnection; + } + + /** + * Set the currentConnection property: The currentConnection property. + * + * @param currentConnection the currentConnection value to set. + * @return the KqlScriptContent object itself. + */ + public KqlScriptContent setCurrentConnection(KqlScriptContentCurrentConnection currentConnection) { + this.currentConnection = currentConnection; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentCurrentConnection.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentCurrentConnection.java new file mode 100644 index 0000000000000..82a6dae4ac63d --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentCurrentConnection.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The KqlScriptContentCurrentConnection model. */ +@Fluent +public final class KqlScriptContentCurrentConnection { + /* + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The type property. + */ + @JsonProperty(value = "type") + private String type; + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the KqlScriptContentCurrentConnection object itself. + */ + public KqlScriptContentCurrentConnection setName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: The type property. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Set the type property: The type property. + * + * @param type the type value to set. + * @return the KqlScriptContentCurrentConnection object itself. + */ + public KqlScriptContentCurrentConnection setType(String type) { + this.type = type; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentMetadata.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentMetadata.java new file mode 100644 index 0000000000000..aa31d967a76bb --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptContentMetadata.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The KqlScriptContentMetadata model. */ +@Fluent +public final class KqlScriptContentMetadata { + /* + * The language property. + */ + @JsonProperty(value = "language") + private String language; + + /** + * Get the language property: The language property. + * + * @return the language value. + */ + public String getLanguage() { + return this.language; + } + + /** + * Set the language property: The language property. + * + * @param language the language value to set. + * @return the KqlScriptContentMetadata object itself. + */ + public KqlScriptContentMetadata setLanguage(String language) { + this.language = language; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptResource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptResource.java new file mode 100644 index 0000000000000..23145a55f3315 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptResource.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The KqlScriptResource model. */ +@Fluent +public final class KqlScriptResource { + /* + * The id property. + */ + @JsonProperty(value = "id") + private String id; + + /* + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The type property. + */ + @JsonProperty(value = "type") + private String type; + + /* + * Properties of sql script. + */ + @JsonProperty(value = "properties") + private KqlScript properties; + + /** + * Get the id property: The id property. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: The id property. + * + * @param id the id value to set. + * @return the KqlScriptResource object itself. + */ + public KqlScriptResource setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the KqlScriptResource object itself. + */ + public KqlScriptResource setName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: The type property. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Set the type property: The type property. + * + * @param type the type value to set. + * @return the KqlScriptResource object itself. + */ + public KqlScriptResource setType(String type) { + this.type = type; + return this; + } + + /** + * Get the properties property: Properties of sql script. + * + * @return the properties value. + */ + public KqlScript getProperties() { + return this.properties; + } + + /** + * Set the properties property: Properties of sql script. + * + * @param properties the properties value to set. + * @return the KqlScriptResource object itself. + */ + public KqlScriptResource setProperties(KqlScript properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptsResourceCollectionResponse.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptsResourceCollectionResponse.java new file mode 100644 index 0000000000000..70ba63657ec6f --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/KqlScriptsResourceCollectionResponse.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The KqlScriptsResourceCollectionResponse model. */ +@Fluent +public final class KqlScriptsResourceCollectionResponse { + /* + * The value property. + */ + @JsonProperty(value = "value") + private List value; + + /* + * The nextLink property. + */ + @JsonProperty(value = "nextLink") + private String nextLink; + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + public List getValue() { + return this.value; + } + + /** + * Set the value property: The value property. + * + * @param value the value value to set. + * @return the KqlScriptsResourceCollectionResponse object itself. + */ + public KqlScriptsResourceCollectionResponse setValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: The nextLink property. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The nextLink property. + * + * @param nextLink the nextLink value to set. + * @return the KqlScriptsResourceCollectionResponse object itself. + */ + public KqlScriptsResourceCollectionResponse setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryInfo.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryInfo.java index 9cff7a1e68e3c..9e66338e0e43a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryInfo.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryInfo.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Library/package information of a Big Data pool powered by Apache Spark. */ +/** + * Information about a library/package created at the workspace level. Library/package information of a Big Data pool + * powered by Apache Spark. + */ @Fluent public final class LibraryInfo { /* @@ -32,7 +35,7 @@ public final class LibraryInfo { /* * The last update time of the library. */ - @JsonProperty(value = "uploadedTimestamp", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "uploadedTimestamp") private OffsetDateTime uploadedTimestamp; /* @@ -122,6 +125,17 @@ public OffsetDateTime getUploadedTimestamp() { return this.uploadedTimestamp; } + /** + * Set the uploadedTimestamp property: The last update time of the library. + * + * @param uploadedTimestamp the uploadedTimestamp value to set. + * @return the LibraryInfo object itself. + */ + public LibraryInfo setUploadedTimestamp(OffsetDateTime uploadedTimestamp) { + this.uploadedTimestamp = uploadedTimestamp; + return this; + } + /** * Get the type property: Type of the library. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryRequirements.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryRequirements.java index 16c3e640a9cbd..aed21442a17aa 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryRequirements.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LibraryRequirements.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Library requirements for a Big Data pool powered by Apache Spark. */ +/** Spark pool library version requirements Library requirements for a Big Data pool powered by Apache Spark. */ @Fluent public final class LibraryRequirements { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LinkedService.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LinkedService.java index 7c25783bf11bb..75798f5afc482 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LinkedService.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LinkedService.java @@ -32,6 +32,7 @@ @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), @@ -45,6 +46,7 @@ @JsonSubTypes.Type(name = "AzureFileStorage", value = AzureFileStorageLinkedService.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), diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LivyStates.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LivyStates.java new file mode 100644 index 0000000000000..53da2af28961e --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/LivyStates.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for LivyStates. */ +public final class LivyStates extends ExpandableStringEnum { + /** Static value not_started for LivyStates. */ + public static final LivyStates NOT_STARTED = fromString("not_started"); + + /** Static value starting for LivyStates. */ + public static final LivyStates STARTING = fromString("starting"); + + /** Static value idle for LivyStates. */ + public static final LivyStates IDLE = fromString("idle"); + + /** Static value busy for LivyStates. */ + public static final LivyStates BUSY = fromString("busy"); + + /** Static value shutting_down for LivyStates. */ + public static final LivyStates SHUTTING_DOWN = fromString("shutting_down"); + + /** Static value error for LivyStates. */ + public static final LivyStates ERROR = fromString("error"); + + /** Static value dead for LivyStates. */ + public static final LivyStates DEAD = fromString("dead"); + + /** Static value killed for LivyStates. */ + public static final LivyStates KILLED = fromString("killed"); + + /** Static value success for LivyStates. */ + public static final LivyStates SUCCESS = fromString("success"); + + /** Static value running for LivyStates. */ + public static final LivyStates RUNNING = fromString("running"); + + /** Static value recovering for LivyStates. */ + public static final LivyStates RECOVERING = fromString("recovering"); + + /** + * Creates or finds a LivyStates from its string representation. + * + * @param name a name to look for. + * @return the corresponding LivyStates. + */ + @JsonCreator + public static LivyStates fromString(String name) { + return fromString(name, LivyStates.class); + } + + /** @return known LivyStates values. */ + public static Collection values() { + return values(LivyStates.class); + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ManagedVirtualNetworkReference.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ManagedVirtualNetworkReference.java index 92cebf6d1cc18..1bb5db540488b 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ManagedVirtualNetworkReference.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ManagedVirtualNetworkReference.java @@ -14,7 +14,7 @@ public final class ManagedVirtualNetworkReference { * Managed Virtual Network reference type. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "ManagedVirtualNetworkReference"; /* * Reference ManagedVirtualNetwork name. diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Notebook.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Notebook.java index 72fd3272329a7..2e03d933db0c7 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Notebook.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Notebook.java @@ -60,6 +60,13 @@ public final class Notebook { @JsonProperty(value = "cells", required = true) private List cells; + /* + * The folder that this notebook is in. If not specified, this notebook + * will appear at the root level. + */ + @JsonProperty(value = "folder") + private NotebookFolder folder; + /* * Notebook. */ @@ -209,6 +216,28 @@ public Notebook setCells(List cells) { return this; } + /** + * Get the folder property: The folder that this notebook is in. If not specified, this notebook will appear at the + * root level. + * + * @return the folder value. + */ + public NotebookFolder getFolder() { + return this.folder; + } + + /** + * Set the folder property: The folder that this notebook is in. If not specified, this notebook will appear at the + * root level. + * + * @param folder the folder value to set. + * @return the Notebook object itself. + */ + public Notebook setFolder(NotebookFolder folder) { + this.folder = folder; + return this; + } + /** * Get the additionalProperties property: Notebook. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/NotebookFolder.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/NotebookFolder.java new file mode 100644 index 0000000000000..ea08d1bd2b7b2 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/NotebookFolder.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The folder that this notebook is in. If not specified, this notebook will appear at the root level. */ +@Fluent +public final class NotebookFolder { + /* + * The name of the folder that this notebook is in. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Get the name property: The name of the folder that this notebook is in. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name of the folder that this notebook is in. + * + * @param name the name value to set. + * @return the NotebookFolder object itself. + */ + public NotebookFolder setName(String name) { + this.name = name; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OperationResult.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OperationResult.java index 92741a3f54ca5..05481f5926cd2 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OperationResult.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OperationResult.java @@ -41,7 +41,7 @@ public class OperationResult { * Array with additional error details. */ @JsonProperty(value = "error.details") - private List details; + private List details; /** * Get the status property: Operation status. @@ -117,7 +117,7 @@ public OperationResult setTarget(String target) { * * @return the details value. */ - public List getDetails() { + public List getDetails() { return this.details; } @@ -127,7 +127,7 @@ public List getDetails() { * @param details the details value to set. * @return the OperationResult object itself. */ - public OperationResult setDetails(List details) { + public OperationResult setDetails(List details) { this.details = details; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OrcDataset.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OrcDataset.java index a09d8b276e255..7a8610be5e97d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OrcDataset.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/OrcDataset.java @@ -23,10 +23,11 @@ public class OrcDataset extends Dataset { private DatasetLocation location; /* - * The orcCompressionCodec property. + * The data orcCompressionCodec. Type: string (or Expression with + * resultType string). */ @JsonProperty(value = "typeProperties.orcCompressionCodec") - private OrcCompressionCodec orcCompressionCodec; + private Object orcCompressionCodec; /** * Get the location property: The location of the ORC data storage. @@ -49,21 +50,23 @@ public OrcDataset setLocation(DatasetLocation location) { } /** - * Get the orcCompressionCodec property: The orcCompressionCodec property. + * Get the orcCompressionCodec property: The data orcCompressionCodec. Type: string (or Expression with resultType + * string). * * @return the orcCompressionCodec value. */ - public OrcCompressionCodec getOrcCompressionCodec() { + public Object getOrcCompressionCodec() { return this.orcCompressionCodec; } /** - * Set the orcCompressionCodec property: The orcCompressionCodec property. + * 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 setOrcCompressionCodec(OrcCompressionCodec orcCompressionCodec) { + public OrcDataset setOrcCompressionCodec(Object orcCompressionCodec) { this.orcCompressionCodec = orcCompressionCodec; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ProxyResource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ProxyResource.java index 19cf11d47a8b1..18762e4d419ce 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ProxyResource.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ProxyResource.java @@ -6,6 +6,9 @@ import com.azure.core.annotation.Immutable; -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. */ +/** + * Proxy Resource The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a + * location. + */ @Immutable public class ProxyResource extends Resource {} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Resource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Resource.java index cca83683cea1a..f69eb01c86114 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Resource.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Resource.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Common fields that are returned in the response for all Azure Resource Manager resources. */ +/** Resource Common fields that are returned in the response for all Azure Resource Manager resources. */ @Immutable public class Resource { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ScriptAction.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ScriptAction.java index 901def5177f77..8a407e21f063c 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ScriptAction.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/ScriptAction.java @@ -26,7 +26,7 @@ public final class ScriptAction { * The node types on which the script action should be executed. */ @JsonProperty(value = "roles", required = true) - private HdiNodeTypes roles; + private Object roles; /* * The parameters for the script action. @@ -79,7 +79,7 @@ public ScriptAction setUri(String uri) { * * @return the roles value. */ - public HdiNodeTypes getRoles() { + public Object getRoles() { return this.roles; } @@ -89,7 +89,7 @@ public HdiNodeTypes getRoles() { * @param roles the roles value to set. * @return the ScriptAction object itself. */ - public ScriptAction setRoles(HdiNodeTypes roles) { + public ScriptAction setRoles(Object roles) { this.roles = roles; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Sku.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Sku.java index b2941858c14d1..7582b330978ff 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Sku.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/Sku.java @@ -7,7 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** SQL pool SKU. */ +/** Sku SQL pool SKU. */ @Fluent public final class Sku { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkBatchJob.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkBatchJob.java index 14b60d17f00c7..3829a1a2232b3 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkBatchJob.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkBatchJob.java @@ -112,7 +112,7 @@ public final class SparkBatchJob { * The batch state */ @JsonProperty(value = "state") - private String state; + private LivyStates state; /* * The log lines. @@ -445,7 +445,7 @@ public SparkBatchJob setAppInfo(Map appInfo) { * * @return the state value. */ - public String getState() { + public LivyStates getState() { return this.state; } @@ -455,7 +455,7 @@ public String getState() { * @param state the state value to set. * @return the SparkBatchJob object itself. */ - public SparkBatchJob setState(String state) { + public SparkBatchJob setState(LivyStates state) { this.state = state; return this; } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkConfiguration.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkConfiguration.java index 1466cfbecf028..79a7a7009e949 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkConfiguration.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkConfiguration.java @@ -10,7 +10,7 @@ import java.util.List; import java.util.Map; -/** SparkConfiguration Artifact information. */ +/** Information about a SparkConfiguration created at the workspace level. SparkConfiguration Artifact information. */ @Fluent public final class SparkConfiguration { /* @@ -49,6 +49,12 @@ public final class SparkConfiguration { @JsonProperty(value = "created") private OffsetDateTime created; + /* + * SparkConfiguration configMergeRule. + */ + @JsonProperty(value = "configMergeRule") + private Map configMergeRule; + /** * Get the description property: Description about the SparkConfiguration. * @@ -168,4 +174,24 @@ public SparkConfiguration setCreated(OffsetDateTime created) { this.created = created; return this; } + + /** + * Get the configMergeRule property: SparkConfiguration configMergeRule. + * + * @return the configMergeRule value. + */ + public Map getConfigMergeRule() { + return this.configMergeRule; + } + + /** + * Set the configMergeRule property: SparkConfiguration configMergeRule. + * + * @param configMergeRule the configMergeRule value to set. + * @return the SparkConfiguration object itself. + */ + public SparkConfiguration setConfigMergeRule(Map configMergeRule) { + this.configMergeRule = configMergeRule; + return this; + } } diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinition.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinition.java index 49dc09aac5050..8110020ed088d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinition.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinition.java @@ -45,6 +45,13 @@ public final class SparkJobDefinition { @JsonProperty(value = "jobProperties", required = true) private SparkJobProperties jobProperties; + /* + * The folder that this Spark job definition is in. If not specified, this + * Spark job definition will appear at the root level. + */ + @JsonProperty(value = "folder") + private SparkJobDefinitionFolder folder; + /* * Spark job definition. */ @@ -150,6 +157,28 @@ public SparkJobDefinition setJobProperties(SparkJobProperties jobProperties) { return this; } + /** + * Get the folder property: The folder that this Spark job definition is in. If not specified, this Spark job + * definition will appear at the root level. + * + * @return the folder value. + */ + public SparkJobDefinitionFolder getFolder() { + return this.folder; + } + + /** + * Set the folder property: The folder that this Spark job definition is in. If not specified, this Spark job + * definition will appear at the root level. + * + * @param folder the folder value to set. + * @return the SparkJobDefinition object itself. + */ + public SparkJobDefinition setFolder(SparkJobDefinitionFolder folder) { + this.folder = folder; + return this; + } + /** * Get the additionalProperties property: Spark job definition. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinitionFolder.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinitionFolder.java new file mode 100644 index 0000000000000..d5c3878a0b2b9 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SparkJobDefinitionFolder.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The folder that this Spark job definition is in. If not specified, this Spark job definition will appear at the root + * level. + */ +@Fluent +public final class SparkJobDefinitionFolder { + /* + * The name of the folder that this Spark job definition is in. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Get the name property: The name of the folder that this Spark job definition is in. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name of the folder that this Spark job definition is in. + * + * @param name the name value to set. + * @return the SparkJobDefinitionFolder object itself. + */ + public SparkJobDefinitionFolder setName(String name) { + this.name = name; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlConnection.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlConnection.java index 6212b5b71ba1f..96020b4234ec2 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlConnection.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlConnection.java @@ -18,15 +18,27 @@ public final class SqlConnection { /* * The type of the connection. */ - @JsonProperty(value = "type", required = true) + @JsonProperty(value = "type") private SqlConnectionType type; /* * The identifier of the connection. */ - @JsonProperty(value = "name", required = true) + @JsonProperty(value = "name") private String name; + /* + * The associated SQL pool name (supported by SQL pool v3) + */ + @JsonProperty(value = "poolName") + private String poolName; + + /* + * The associated database name (supported by SQL pool v3) + */ + @JsonProperty(value = "databaseName") + private String databaseName; + /* * The connection used to execute the SQL script. */ @@ -72,6 +84,46 @@ public SqlConnection setName(String name) { return this; } + /** + * Get the poolName property: The associated SQL pool name (supported by SQL pool v3). + * + * @return the poolName value. + */ + public String getPoolName() { + return this.poolName; + } + + /** + * Set the poolName property: The associated SQL pool name (supported by SQL pool v3). + * + * @param poolName the poolName value to set. + * @return the SqlConnection object itself. + */ + public SqlConnection setPoolName(String poolName) { + this.poolName = poolName; + return this; + } + + /** + * Get the databaseName property: The associated database name (supported by SQL pool v3). + * + * @return the databaseName value. + */ + public String getDatabaseName() { + return this.databaseName; + } + + /** + * Set the databaseName property: The associated database name (supported by SQL pool v3). + * + * @param databaseName the databaseName value to set. + * @return the SqlConnection object itself. + */ + public SqlConnection setDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + /** * Get the additionalProperties property: The connection used to execute the SQL script. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPool.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPool.java index a64dfa25fe843..dfc9c04512b67 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPool.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPool.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** A SQL Analytics pool. */ +/** SQL pool A SQL Analytics pool. */ @JsonFlatten @Fluent public class SqlPool extends TrackedResource { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPoolInfoListResult.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPoolInfoListResult.java index 61ec7a1fe8361..04f5e803b611e 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPoolInfoListResult.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlPoolInfoListResult.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of SQL pools. */ +/** SQL pool collection List of SQL pools. */ @Fluent public final class SqlPoolInfoListResult { /* diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScript.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScript.java index 4881eb9c38da9..584cb07ddd079 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScript.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScript.java @@ -33,6 +33,13 @@ public final class SqlScript { @JsonProperty(value = "content", required = true) private SqlScriptContent content; + /* + * The folder that this SQL script is in. If not specified, this SQL script + * will appear at the root level. + */ + @JsonProperty(value = "folder") + private SqlScriptFolder folder; + /* * SQL script. */ @@ -98,6 +105,28 @@ public SqlScript setContent(SqlScriptContent content) { return this; } + /** + * Get the folder property: The folder that this SQL script is in. If not specified, this SQL script will appear at + * the root level. + * + * @return the folder value. + */ + public SqlScriptFolder getFolder() { + return this.folder; + } + + /** + * Set the folder property: The folder that this SQL script is in. If not specified, this SQL script will appear at + * the root level. + * + * @param folder the folder value to set. + * @return the SqlScript object itself. + */ + public SqlScript setFolder(SqlScriptFolder folder) { + this.folder = folder; + return this; + } + /** * Get the additionalProperties property: SQL script. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptContent.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptContent.java index 4ac2a3863ead8..a2b37397c2f5a 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptContent.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptContent.java @@ -24,9 +24,15 @@ public final class SqlScriptContent { /* * The connection used to execute the SQL script. */ - @JsonProperty(value = "currentConnection", required = true) + @JsonProperty(value = "currentConnection") private SqlConnection currentConnection; + /* + * Limit of results, '-1' for no limit. + */ + @JsonProperty(value = "resultLimit") + private Integer resultLimit; + /* * The metadata of the SQL script. */ @@ -78,6 +84,26 @@ public SqlScriptContent setCurrentConnection(SqlConnection currentConnection) { return this; } + /** + * Get the resultLimit property: Limit of results, '-1' for no limit. + * + * @return the resultLimit value. + */ + public Integer getResultLimit() { + return this.resultLimit; + } + + /** + * Set the resultLimit property: Limit of results, '-1' for no limit. + * + * @param resultLimit the resultLimit value to set. + * @return the SqlScriptContent object itself. + */ + public SqlScriptContent setResultLimit(Integer resultLimit) { + this.resultLimit = resultLimit; + return this; + } + /** * Get the metadata property: The metadata of the SQL script. * diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptFolder.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptFolder.java new file mode 100644 index 0000000000000..683007252d409 --- /dev/null +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SqlScriptFolder.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.analytics.synapse.artifacts.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The folder that this SQL script is in. If not specified, this SQL script will appear at the root level. */ +@Fluent +public final class SqlScriptFolder { + /* + * The name of the folder that this SQL script is in. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Get the name property: The name of the folder that this SQL script is in. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name of the folder that this SQL script is in. + * + * @param name the name value to set. + * @return the SqlScriptFolder object itself. + */ + public SqlScriptFolder setName(String name) { + this.name = name; + return this; + } +} diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TabularSource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TabularSource.java index 2b1c0a82d099c..6ddf0e8cee640 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TabularSource.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TabularSource.java @@ -34,6 +34,7 @@ @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), diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TrackedResource.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TrackedResource.java index ff137ea3ec7c7..8ae8db0b0e237 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TrackedResource.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/TrackedResource.java @@ -9,8 +9,8 @@ import java.util.Map; /** - * The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a - * 'location'. + * Tracked Resource The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location'. */ @Fluent public class TrackedResource extends Resource { diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/WorkspaceIdentity.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/WorkspaceIdentity.java index 9a7647443be90..456de50b28c12 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/WorkspaceIdentity.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/WorkspaceIdentity.java @@ -15,7 +15,7 @@ public final class WorkspaceIdentity { * 'SystemAssigned'. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "SystemAssigned"; /* * The principal id of the identity. diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/test/java/com/azure/analytics/synapse/artifacts/ArtifactsClientTestBase.java b/sdk/synapse/azure-analytics-synapse-artifacts/src/test/java/com/azure/analytics/synapse/artifacts/ArtifactsClientTestBase.java index eec657c56c5a1..69fd083411a0d 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/test/java/com/azure/analytics/synapse/artifacts/ArtifactsClientTestBase.java +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/test/java/com/azure/analytics/synapse/artifacts/ArtifactsClientTestBase.java @@ -53,9 +53,9 @@ T clientSetup(Function clientBuilder) { TokenCredential credential = null; if (!interceptorManager.isPlaybackMode()) { - String clientId = System.getenv("CLIENT_ID"); - String clientKey = System.getenv("CLIENT_SECRET"); - String tenantId = System.getenv("TENANT_ID"); + String clientId = System.getenv("AZURE_CLIENT_ID"); + String clientKey = System.getenv("AZURE_CLIENT_SECRET"); + String tenantId = System.getenv("AZURE_TENANT_ID"); Objects.requireNonNull(clientId, "The client id cannot be null"); Objects.requireNonNull(clientKey, "The client key cannot be null"); Objects.requireNonNull(tenantId, "The tenant id cannot be null"); diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/src/test/resources/session-records/getNoteBook.json b/sdk/synapse/azure-analytics-synapse-artifacts/src/test/resources/session-records/getNoteBook.json index 7e997da9c7cd3..746e1e7dfa65c 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/src/test/resources/session-records/getNoteBook.json +++ b/sdk/synapse/azure-analytics-synapse-artifacts/src/test/resources/session-records/getNoteBook.json @@ -1,98 +1,143 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks?api-version=2021-06-01-preview", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks?api-version=2020-12-01", "Headers" : { - "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.1 (1.8.0_251; Windows Server 2019 10.0)", - "x-ms-client-request-id" : "b9af5d40-b44f-434c-9758-7480632380ac" + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "5a32a5b5-a51a-4905-9646-30ab0ee319b5" }, "Response" : { + "content-length" : "7351", "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", "Server" : "Microsoft-HTTPAPI/2.0", "retry-after" : "0", - "Content-Length" : "2425", "StatusCode" : "200", - "x-ms-request-id" : "06cd952d-144e-4433-ab29-47bd2f2a7afb", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/notebooks/Notebook 1\",\"name\":\"Notebook 1\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"10003327-0000-0100-0000-5e031adb0000\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":1},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/bigDataPools/testsparkpool\",\"name\":\"testsparkpool\",\"type\":\"Spark\",\"endpoint\":\"https://testsynapseworkspace.dev.azuresynapse.net/livyApi/versions/2019-11-01-preview/sparkPools/testsparkpool\",\"auth\":{\"type\":\"AAD\",\"authResource\":\"https://dev.azuresynapse.net\"},\"sparkVersion\":\"2.4\",\"nodeCount\":41,\"cores\":8,\"memory\":56,\"extraHeader\":{}}},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"print(\\\"hello from portal\\\")\"],\"attachments\":{},\"outputs\":[],\"execution_count\":null}]}},{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/notebooks/dongwwaTestNotebook\",\"name\":\"dongwwaTestNotebook\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"0100d5a0-0000-0100-0000-5ecba4720000\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"sessionKeepAliveTimeout\":30},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"print('hello')\"],\"attachments\":{},\"outputs\":[],\"execution_count\":null}]}},{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/notebooks/dongwwaNb2\",\"name\":\"dongwwaNb2\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"0100f6a0-0000-0100-0000-5ecba61e0000\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"sessionKeepAliveTimeout\":30},\"cells\":[]}}]}", - "Date" : "Mon, 15 Jun 2020 14:50:13 GMT", + "x-ms-request-id" : "c25a9ead-f8df-4103-9c28-d145d679e7f7", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/Notebook 1\",\"name\":\"Notebook 1\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"63015fd8-0000-0800-0000-5fd018790000\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":{\"spark.dynamicAllocation.enabled\":\"false\",\"spark.dynamicAllocation.minExecutors\":\"2\",\"spark.dynamicAllocation.maxExecutors\":\"2\"}},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/bigDataPools/testsparkpool\",\"name\":\"testsparkpool\",\"type\":\"Spark\",\"endpoint\":\"https://xysynapsetest.dev.azuresynapse.net/livyApi/versions/2019-11-01-preview/sparkPools/testsparkpool\",\"auth\":{\"type\":\"AAD\",\"authResource\":\"https://dev.azuresynapse.net\"},\"sparkVersion\":\"2.4\",\"nodeCount\":10,\"cores\":4,\"memory\":28,\"extraHeader\":null},\"sessionKeepAliveTimeout\":30,\"saveOutput\":true},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"from azureml.opendatasets import NycTlcYellow\\n\",\"\\n\",\"data = NycTlcYellow()\\n\",\"df = data.to_spark_dataframe()\\n\",\"# Display 10 rows\\n\",\"display(df.limit(10))\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null}},{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/demo_notebook\",\"name\":\"demo_notebook\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"79015c4f-0000-0800-0000-5fd1639f0000\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":null,\"sessionProperties\":null,\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"from azureml.opendatasets import NycTlcYellow\\n\",\"\\n\",\"data = NycTlcYellow()\\n\",\"df = data.to_spark_dataframe()\\n\",\"# Display 10 rows\\n\",\"display(df.limit(10))\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null}},{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/jianghao_notebook\",\"name\":\"jianghao_notebook\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"92051b0e-0000-0800-0000-600f7f8d0000\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"jianghaospool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":{\"spark.dynamicAllocation.enabled\":\"false\",\"spark.dynamicAllocation.minExecutors\":\"2\",\"spark.dynamicAllocation.maxExecutors\":\"2\"}},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/bigDataPools/jianghaospool\",\"name\":\"jianghaospool\",\"type\":\"Spark\",\"endpoint\":\"https://xysynapsetest.dev.azuresynapse.net/livyApi/versions/2019-11-01-preview/sparkPools/jianghaospool\",\"auth\":{\"type\":\"AAD\",\"authResource\":\"https://dev.azuresynapse.net\"},\"sparkVersion\":\"2.4\",\"nodeCount\":3,\"cores\":4,\"memory\":28,\"extraHeader\":null},\"sessionKeepAliveTimeout\":30,\"saveOutput\":true,\"kernelspec\":{\"name\":\"synapse_pyspark\",\"display_name\":\"Synapse PySpark\"}},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\r\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\r\\n\",\"demo_df.show()\"],\"attachments\":null,\"outputs\":[{\"output_type\":\"display_data\",\"data\":{\"application/vnd.livy.statement-meta+json\":{\"spark_pool\":null,\"session_id\":null,\"statement_id\":null,\"state\":\"session_starting\",\"livy_statement_state\":null,\"queued_time\":\"2021-01-26T02:33:32.090252Z\",\"execution_start_time\":null,\"execution_finish_time\":null},\"text/plain\":\"StatementMeta(, , , SessionStarting, )\"},\"metadata\":{}}],\"execution_count\":1}],\"folder\":null}},{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/notebook-410678e1\",\"name\":\"notebook-410678e1\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"530694ca-0000-0800-0000-60105a130000\",\"properties\":{\"nbformat\":0,\"nbformat_minor\":0,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":null},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":null,\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\n\",\"demo_df.show()\\n\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null}},{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/notebook-68037f94\",\"name\":\"notebook-68037f94\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"5506abc3-0000-0800-0000-60105c2f0000\",\"properties\":{\"nbformat\":0,\"nbformat_minor\":0,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":null},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":null,\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\n\",\"demo_df.show()\\n\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null}},{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/notebook-72999002\",\"name\":\"notebook-72999002\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"etag\":\"56060b07-0000-0800-0000-60105c790000\",\"properties\":{\"nbformat\":0,\"nbformat_minor\":0,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":null},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":null,\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\n\",\"demo_df.show()\\n\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null}}]}", + "Date" : "Mon, 04 Oct 2021 22:06:33 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/Notebook%201?api-version=2021-06-01-preview", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/Notebook%201?api-version=2020-12-01", "Headers" : { - "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.1 (1.8.0_251; Windows Server 2019 10.0)", - "x-ms-client-request-id" : "31025ff0-a8a8-4176-990f-e6ce775439f6" + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "1b02ddac-d09f-4299-9ff9-bec9df99b7c9" }, "Response" : { - "Server" : "Microsoft-IIS/10.0 Microsoft-HTTPAPI/2.0", - "X-Content-Type-Options" : "nosniff", - "Pragma" : "no-cache", + "Transfer-Encoding" : "chunked", + "Strict-Transport-Security" : "max-age=2592000", + "Server" : "Kestrel Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 15 Jun 2020 14:50:13 GMT", - "x-ms-correlation-request-id" : "7bac6474-0b87-45cc-9791-055d4cba375c", - "Strict-Transport-Security" : "max-age=15724800; includeSubDomains", - "Cache-Control" : "no-cache", - "Expires" : "-1", - "Content-Length" : "1212", - "x-ms-request-id" : "255e8274-274e-41ab-88ef-39ef99addb40", - "Body" : "{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/notebooks/Notebook 1\",\"name\":\"Notebook 1\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":1},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/bigDataPools/testsparkpool\",\"name\":\"testsparkpool\",\"type\":\"Spark\",\"endpoint\":\"https://testsynapseworkspace.dev.azuresynapse.net/livyApi/versions/2019-11-01-preview/sparkPools/testsparkpool\",\"auth\":{\"type\":\"AAD\",\"authResource\":\"https://dev.azuresynapse.net\"},\"sparkVersion\":\"2.4\",\"nodeCount\":41,\"cores\":8,\"memory\":56,\"extraHeader\":{}}},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"print(\\\"hello from portal\\\")\"],\"attachments\":{},\"outputs\":[],\"execution_count\":null}]},\"etag\":\"10003327-0000-0100-0000-5e031adb0000\"}", - "X-Powered-By" : "ASP.NET", - "Content-Type" : "application/json; charset=utf-8" + "x-ms-request-id" : "2d290c49-b24e-4c71-9c30-a7a22b4e2124", + "Body" : "{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/Notebook 1\",\"name\":\"Notebook 1\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":{\"spark.dynamicAllocation.enabled\":\"false\",\"spark.dynamicAllocation.minExecutors\":\"2\",\"spark.dynamicAllocation.maxExecutors\":\"2\"}},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/bigDataPools/testsparkpool\",\"name\":\"testsparkpool\",\"type\":\"Spark\",\"endpoint\":\"https://xysynapsetest.dev.azuresynapse.net/livyApi/versions/2019-11-01-preview/sparkPools/testsparkpool\",\"auth\":{\"type\":\"AAD\",\"authResource\":\"https://dev.azuresynapse.net\"},\"sparkVersion\":\"2.4\",\"nodeCount\":10,\"cores\":4,\"memory\":28,\"extraHeader\":null},\"sessionKeepAliveTimeout\":30,\"saveOutput\":true},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"from azureml.opendatasets import NycTlcYellow\\n\",\"\\n\",\"data = NycTlcYellow()\\n\",\"df = data.to_spark_dataframe()\\n\",\"# Display 10 rows\\n\",\"display(df.limit(10))\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null},\"etag\":\"63015fd8-0000-0800-0000-5fd018790000\"}", + "Date" : "Mon, 04 Oct 2021 22:06:33 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/dongwwaTestNotebook?api-version=2021-06-01-preview", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/demo_notebook?api-version=2020-12-01", "Headers" : { - "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.1 (1.8.0_251; Windows Server 2019 10.0)", - "x-ms-client-request-id" : "cc6a583c-02e8-4c00-9e22-f0e5480f373d" + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "5cf650dd-fb26-4443-a7c5-b698c7c7285c" }, "Response" : { - "Server" : "Microsoft-IIS/10.0 Microsoft-HTTPAPI/2.0", - "X-Content-Type-Options" : "nosniff", - "Pragma" : "no-cache", + "Transfer-Encoding" : "chunked", + "Strict-Transport-Security" : "max-age=2592000", + "Server" : "Kestrel Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 15 Jun 2020 14:50:13 GMT", - "x-ms-correlation-request-id" : "602570df-518e-45ce-bbfd-5a6d62dac00e", - "Strict-Transport-Security" : "max-age=15724800; includeSubDomains", - "Cache-Control" : "no-cache", - "Expires" : "-1", - "Content-Length" : "666", - "x-ms-request-id" : "37395d16-12bb-4a3e-bfa9-a56fd65c183e", - "Body" : "{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/notebooks/dongwwaTestNotebook\",\"name\":\"dongwwaTestNotebook\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"sessionKeepAliveTimeout\":30},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"print('hello')\"],\"attachments\":{},\"outputs\":[],\"execution_count\":null}]},\"etag\":\"0100d5a0-0000-0100-0000-5ecba4720000\"}", - "X-Powered-By" : "ASP.NET", - "Content-Type" : "application/json; charset=utf-8" + "x-ms-request-id" : "f6ea7796-4942-44f9-994f-6b3cc89406d3", + "Body" : "{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/demo_notebook\",\"name\":\"demo_notebook\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":null,\"sessionProperties\":null,\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"from azureml.opendatasets import NycTlcYellow\\n\",\"\\n\",\"data = NycTlcYellow()\\n\",\"df = data.to_spark_dataframe()\\n\",\"# Display 10 rows\\n\",\"display(df.limit(10))\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null},\"etag\":\"79015c4f-0000-0800-0000-5fd1639f0000\"}", + "Date" : "Mon, 04 Oct 2021 22:06:34 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/dongwwaNb2?api-version=2021-06-01-preview", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/jianghao_notebook?api-version=2020-12-01", "Headers" : { - "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.1 (1.8.0_251; Windows Server 2019 10.0)", - "x-ms-client-request-id" : "96f631f3-6c2f-4a06-9540-087e5a2b39fe" + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "8f7ad016-46b3-4961-bad6-5899e0214079" }, "Response" : { - "Server" : "Microsoft-IIS/10.0 Microsoft-HTTPAPI/2.0", - "X-Content-Type-Options" : "nosniff", - "Pragma" : "no-cache", + "Transfer-Encoding" : "chunked", + "Strict-Transport-Security" : "max-age=2592000", + "Server" : "Kestrel Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 15 Jun 2020 14:50:13 GMT", - "x-ms-correlation-request-id" : "bb269309-5832-4171-af1d-54563dce1262", - "Strict-Transport-Security" : "max-age=15724800; includeSubDomains", - "Cache-Control" : "no-cache", - "Expires" : "-1", - "Content-Length" : "533", - "x-ms-request-id" : "ccb50d9f-aae6-4ac0-b378-18e652e319a3", - "Body" : "{\"id\":\"/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/zzy-test-rg/providers/Microsoft.Synapse/workspaces/testsynapseworkspace/notebooks/dongwwaNb2\",\"name\":\"dongwwaNb2\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"sessionKeepAliveTimeout\":30},\"cells\":[]},\"etag\":\"0100f6a0-0000-0100-0000-5ecba61e0000\"}", - "X-Powered-By" : "ASP.NET", - "Content-Type" : "application/json; charset=utf-8" + "x-ms-request-id" : "b66bc0e9-77cd-4ec7-9ae6-d187a0772679", + "Body" : "{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/jianghao_notebook\",\"name\":\"jianghao_notebook\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":4,\"nbformat_minor\":2,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"jianghaospool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":{\"spark.dynamicAllocation.enabled\":\"false\",\"spark.dynamicAllocation.minExecutors\":\"2\",\"spark.dynamicAllocation.maxExecutors\":\"2\"}},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/bigDataPools/jianghaospool\",\"name\":\"jianghaospool\",\"type\":\"Spark\",\"endpoint\":\"https://xysynapsetest.dev.azuresynapse.net/livyApi/versions/2019-11-01-preview/sparkPools/jianghaospool\",\"auth\":{\"type\":\"AAD\",\"authResource\":\"https://dev.azuresynapse.net\"},\"sparkVersion\":\"2.4\",\"nodeCount\":3,\"cores\":4,\"memory\":28,\"extraHeader\":null},\"sessionKeepAliveTimeout\":30,\"saveOutput\":true,\"kernelspec\":{\"name\":\"synapse_pyspark\",\"display_name\":\"Synapse PySpark\"}},\"cells\":[{\"cell_type\":\"code\",\"metadata\":{},\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\r\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\r\\n\",\"demo_df.show()\"],\"attachments\":null,\"outputs\":[{\"output_type\":\"display_data\",\"data\":{\"application/vnd.livy.statement-meta+json\":{\"spark_pool\":null,\"session_id\":null,\"statement_id\":null,\"state\":\"session_starting\",\"livy_statement_state\":null,\"queued_time\":\"2021-01-26T02:33:32.090252Z\",\"execution_start_time\":null,\"execution_finish_time\":null},\"text/plain\":\"StatementMeta(, , , SessionStarting, )\"},\"metadata\":{}}],\"execution_count\":1}],\"folder\":null},\"etag\":\"92051b0e-0000-0800-0000-600f7f8d0000\"}", + "Date" : "Mon, 04 Oct 2021 22:06:34 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Request-Context" : "appId=" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/notebook-410678e1?api-version=2020-12-01", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "5b7fe188-1889-4967-b750-8f2eb820e017" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Strict-Transport-Security" : "max-age=2592000", + "Server" : "Kestrel Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "7d740ec7-6f36-434b-bb5e-cd98c4ba0f35", + "Body" : "{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/notebook-410678e1\",\"name\":\"notebook-410678e1\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":0,\"nbformat_minor\":0,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":null},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":null,\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\n\",\"demo_df.show()\\n\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null},\"etag\":\"530694ca-0000-0800-0000-60105a130000\"}", + "Date" : "Mon, 04 Oct 2021 22:06:35 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Request-Context" : "appId=" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/notebook-68037f94?api-version=2020-12-01", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "8c2de5fc-7c6a-4d2e-aae5-2a28e0a4f02a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Strict-Transport-Security" : "max-age=2592000", + "Server" : "Kestrel Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fbb3b511-2e33-4960-8759-0ada6e649ea3", + "Body" : "{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/notebook-68037f94\",\"name\":\"notebook-68037f94\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":0,\"nbformat_minor\":0,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":null},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":null,\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\n\",\"demo_df.show()\\n\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null},\"etag\":\"5506abc3-0000-0800-0000-60105c2f0000\"}", + "Date" : "Mon, 04 Oct 2021 22:06:35 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Request-Context" : "appId=" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.dev.azuresynapse.net/notebooks/notebook-72999002?api-version=2020-12-01", + "Headers" : { + "User-Agent" : "azsdk-java-azure-analytics-synapse-artifacts/1.0.0-beta.6 (1.8.0_302; Mac OS X; 10.16)", + "x-ms-client-request-id" : "6b8bd1a1-f4bb-46a1-b236-9d933a5a7456" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "Strict-Transport-Security" : "max-age=2592000", + "Server" : "Kestrel Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d0b81d1a-d8cb-49cd-a39f-1d1f60008662", + "Body" : "{\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/xiangyan/providers/Microsoft.Synapse/workspaces/xysynapsetest/notebooks/notebook-72999002\",\"name\":\"notebook-72999002\",\"type\":\"Microsoft.Synapse/workspaces/notebooks\",\"properties\":{\"nbformat\":0,\"nbformat_minor\":0,\"entityState\":null,\"renameOperationDetails\":null,\"bigDataPool\":{\"referenceName\":\"testsparkpool\",\"type\":\"BigDataPoolReference\"},\"sessionProperties\":{\"driverMemory\":\"28g\",\"driverCores\":4,\"executorMemory\":\"28g\",\"executorCores\":4,\"numExecutors\":2,\"conf\":null},\"metadata\":{\"language_info\":{\"name\":\"python\"},\"a365ComputeOptions\":null,\"sessionKeepAliveTimeout\":0},\"cells\":[{\"cell_type\":\"code\",\"metadata\":null,\"source\":[\"new_rows = [('CA',22, 45000),(\\\"WA\\\",35,65000) ,(\\\"WA\\\",50,85000)]\\n\",\"demo_df = spark.createDataFrame(new_rows, ['state', 'age', 'salary'])\\n\",\"demo_df.show()\\n\"],\"attachments\":null,\"outputs\":[],\"execution_count\":null}],\"folder\":null},\"etag\":\"56060b07-0000-0800-0000-60105c790000\"}", + "Date" : "Mon, 04 Oct 2021 22:06:36 GMT", + "Content-Type" : "application/json; charset=utf-8", + "Request-Context" : "appId=" }, "Exception" : null } ], "variables" : [ ] -} +} \ No newline at end of file diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/swagger/README.md b/sdk/synapse/azure-analytics-synapse-artifacts/swagger/README.md index 2aa82ed70503f..40aa2d9539045 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/swagger/README.md +++ b/sdk/synapse/azure-analytics-synapse-artifacts/swagger/README.md @@ -20,29 +20,11 @@ autorest --java --use=C:/work/autorest.java ### Code generation settings ```yaml -branch: 3d6211cf28f83236cdf78e7cfc50efd3fb7cba72 +branch: bee724836ffdeb5458274037dc75f4d43576b5e3 repo: https://github.com/Azure/azure-rest-api-specs/blob/$(branch) ``` ```yaml -input-file: - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/artifacts.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/bigDataPools.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/gitintegration.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntimes.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/library.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/operations.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/sqlPools.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/DataFlow.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Dataset.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/LinkedService.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Notebook.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Pipeline.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/SparkJobDefinition.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/SqlScript.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Trigger.json - - $(repo)/specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/SparkConfiguration.json java: true output-folder: ..\ generate-client-as-impl: true @@ -57,4 +39,6 @@ context-client-method-parameter: true required-parameter-client-methods: true credential-types: tokencredential credential-scopes: https://dev.azuresynapse.net/.default -``` +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/$(branch)/specification/synapse/data-plane/readme.md +tag: package-artifacts-composite-v1 +``` \ No newline at end of file