From 64d4ff67b647653e2a5eaeed1cfb5e748ae59427 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 23 Sep 2020 09:35:22 +0000 Subject: [PATCH] Generated from 200da78a25d3cf0fdb9ea8cfecd69d038a953928 --- sdk/synapse/mgmt-v2019_06_01_preview/pom.xml | 6 +- .../BigDataPoolResourceInfo.java | 37 +- .../v2019_06_01_preview/EntityResource.java | 16 + .../synapse/v2019_06_01_preview/NodeSize.java | 6 + .../synapse/v2019_06_01_preview/Sku.java | 28 ++ .../v2019_06_01_preview/Workspace.java | 19 +- .../BigDataPoolResourceInfoImpl.java | 11 + .../BigDataPoolResourceInfoInner.java | 33 +- .../implementation/BigDataPoolsInner.java | 1 + .../IntegrationRuntimeInner.java | 7 +- .../IntegrationRuntimeResourceInner.java | 49 +-- .../IntegrationRuntimesInner.java | 315 ++++++++++++++++-- .../implementation/IpFirewallRulesInner.java | 26 +- .../implementation/OperationsInner.java | 1 + .../PrivateEndpointConnectionsInner.java | 1 + .../implementation/PrivateLinkHubsInner.java | 26 +- .../SqlPoolMetadataSyncConfigsInner.java | 1 + ...lnerabilityAssessmentRuleBaselineImpl.java | 11 +- ...nerabilityAssessmentRuleBaselinesImpl.java | 1 - .../implementation/SqlPoolsInner.java | 1 + .../WorkspaceAadAdminsInner.java | 1 + .../implementation/WorkspaceImpl.java | 11 + .../implementation/WorkspaceInner.java | 36 +- ...anagedIdentitySqlControlSettingsInner.java | 1 + .../implementation/WorkspacesInner.java | 1 + 25 files changed, 526 insertions(+), 120 deletions(-) create mode 100644 sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EntityResource.java diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml b/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml index 15739d4693a3f..4ca5aa6816ebe 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml +++ b/sdk/synapse/mgmt-v2019_06_01_preview/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.3.0 - ../../parents/azure-arm-parent/pom.xml + 1.1.0 + ../../../pom.management.xml azure-mgmt-synapse - 1.0.0-beta-2 + 1.0.0-beta jar Microsoft Azure SDK for Synapse Management This package contains Microsoft Synapse Management SDK. diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java index 9bf866aa0e6dc..7e958a968b169 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/BigDataPoolResourceInfo.java @@ -49,6 +49,11 @@ public interface BigDataPoolResourceInfo extends HasInner, DefinitionStages.WithAutoPause, DefinitionStages.WithAutoScale, DefinitionStages.WithCreationDate, DefinitionStages.WithDefaultSparkLogFolder, DefinitionStages.WithLibraryRequirements, DefinitionStages.WithNodeCount, DefinitionStages.WithNodeSize, DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithProvisioningState, DefinitionStages.WithSparkEventsFolder, DefinitionStages.WithSparkVersion, DefinitionStages.WithTags { + interface WithCreate extends Creatable, DefinitionStages.WithAutoPause, DefinitionStages.WithAutoScale, DefinitionStages.WithCreationDate, DefinitionStages.WithDefaultSparkLogFolder, DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithLibraryRequirements, DefinitionStages.WithNodeCount, DefinitionStages.WithNodeSize, DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithProvisioningState, DefinitionStages.WithSparkEventsFolder, DefinitionStages.WithSparkVersion, DefinitionStages.WithTags { } } /** * The template for a BigDataPoolResourceInfo update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithForce, UpdateStages.WithAutoPause, UpdateStages.WithAutoScale, UpdateStages.WithCreationDate, UpdateStages.WithDefaultSparkLogFolder, UpdateStages.WithLibraryRequirements, UpdateStages.WithNodeCount, UpdateStages.WithNodeSize, UpdateStages.WithNodeSizeFamily, UpdateStages.WithProvisioningState, UpdateStages.WithSparkEventsFolder, UpdateStages.WithSparkVersion, UpdateStages.WithTags { + interface Update extends Appliable, UpdateStages.WithForce, UpdateStages.WithAutoPause, UpdateStages.WithAutoScale, UpdateStages.WithCreationDate, UpdateStages.WithDefaultSparkLogFolder, UpdateStages.WithIsComputeIsolationEnabled, UpdateStages.WithLibraryRequirements, UpdateStages.WithNodeCount, UpdateStages.WithNodeSize, UpdateStages.WithNodeSizeFamily, UpdateStages.WithProvisioningState, UpdateStages.WithSparkEventsFolder, UpdateStages.WithSparkVersion, UpdateStages.WithTags { } /** @@ -379,6 +396,18 @@ interface WithDefaultSparkLogFolder { Update withDefaultSparkLogFolder(String defaultSparkLogFolder); } + /** + * The stage of the bigdatapoolresourceinfo update allowing to specify IsComputeIsolationEnabled. + */ + interface WithIsComputeIsolationEnabled { + /** + * Specifies isComputeIsolationEnabled. + * @param isComputeIsolationEnabled Whether compute isolation is required or not + * @return the next update stage + */ + Update withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled); + } + /** * The stage of the bigdatapoolresourceinfo update allowing to specify LibraryRequirements. */ @@ -409,7 +438,7 @@ interface WithNodeCount { interface WithNodeSize { /** * Specifies nodeSize. - * @param nodeSize The level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large' + * @param nodeSize The level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge' * @return the next update stage */ Update withNodeSize(NodeSize nodeSize); diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EntityResource.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EntityResource.java new file mode 100644 index 0000000000000..f6688244cfb1d --- /dev/null +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/EntityResource.java @@ -0,0 +1,16 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.synapse.v2019_06_01_preview; + + +/** + * Azure Synapse nested resource, which belongs to a workspace. + */ +public class EntityResource extends AzureEntityResource { +} diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java index 0dbbe7ef3c74a..cb6f27c30786a 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/NodeSize.java @@ -28,6 +28,12 @@ public final class NodeSize extends ExpandableStringEnum { /** Static value Large for NodeSize. */ public static final NodeSize LARGE = fromString("Large"); + /** Static value XLarge for NodeSize. */ + public static final NodeSize XLARGE = fromString("XLarge"); + + /** Static value XXLarge for NodeSize. */ + public static final NodeSize XXLARGE = fromString("XXLarge"); + /** * Creates or finds a NodeSize from its string representation. * @param name a name to look for diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Sku.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Sku.java index 1e312b1a0e4ae..39e71954db8f0 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Sku.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Sku.java @@ -27,6 +27,14 @@ public class Sku { @JsonProperty(value = "name") private String name; + /** + * If the SKU supports scale out/in then the capacity integer should be + * included. If scale out/in is not possible for the resource this may be + * omitted. + */ + @JsonProperty(value = "capacity") + private Integer capacity; + /** * Get the service tier. * @@ -67,4 +75,24 @@ public Sku withName(String name) { return this; } + /** + * Get if the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. + * + * @return the capacity value + */ + public Integer capacity() { + return this.capacity; + } + + /** + * Set if the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. + * + * @param capacity the capacity value to set + * @return the Sku object itself. + */ + public Sku withCapacity(Integer capacity) { + this.capacity = capacity; + return this; + } + } diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Workspace.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Workspace.java index 6657de01a1456..9b0311acc36d4 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Workspace.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/Workspace.java @@ -37,6 +37,11 @@ public interface Workspace extends HasInner, Resource, Groupable */ DataLakeStorageAccountDetails defaultDataLakeStorage(); + /** + * @return the extraProperties value. + */ + Map extraProperties(); + /** * @return the identity value. */ @@ -135,6 +140,18 @@ interface WithIdentity { WithCreate withIdentity(ManagedIdentity identity); } + /** + * The stage of the workspace definition allowing to specify ManagedResourceGroupName. + */ + interface WithManagedResourceGroupName { + /** + * Specifies managedResourceGroupName. + * @param managedResourceGroupName Workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.' + * @return the next definition stage + */ + WithCreate withManagedResourceGroupName(String managedResourceGroupName); + } + /** * The stage of the workspace definition allowing to specify ManagedVirtualNetwork. */ @@ -200,7 +217,7 @@ interface WithVirtualNetworkProfile { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithConnectivityEndpoints, DefinitionStages.WithDefaultDataLakeStorage, DefinitionStages.WithIdentity, DefinitionStages.WithManagedVirtualNetwork, DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithSqlAdministratorLogin, DefinitionStages.WithSqlAdministratorLoginPassword, DefinitionStages.WithVirtualNetworkProfile { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithConnectivityEndpoints, DefinitionStages.WithDefaultDataLakeStorage, DefinitionStages.WithIdentity, DefinitionStages.WithManagedResourceGroupName, DefinitionStages.WithManagedVirtualNetwork, DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithSqlAdministratorLogin, DefinitionStages.WithSqlAdministratorLoginPassword, DefinitionStages.WithVirtualNetworkProfile { } } /** diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoImpl.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoImpl.java index 76672d24f616f..25d7df094440b 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoImpl.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoImpl.java @@ -103,6 +103,11 @@ public String id() { return this.inner().id(); } + @Override + public Boolean isComputeIsolationEnabled() { + return this.inner().isComputeIsolationEnabled(); + } + @Override public LibraryRequirements libraryRequirements() { return this.inner().libraryRequirements(); @@ -205,6 +210,12 @@ public BigDataPoolResourceInfoImpl withDefaultSparkLogFolder(String defaultSpark return this; } + @Override + public BigDataPoolResourceInfoImpl withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled) { + this.inner().withIsComputeIsolationEnabled(isComputeIsolationEnabled); + return this; + } + @Override public BigDataPoolResourceInfoImpl withLibraryRequirements(LibraryRequirements libraryRequirements) { this.inner().withLibraryRequirements(libraryRequirements); diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoInner.java index adc52f53bb663..cb2304be4b50b 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolResourceInfoInner.java @@ -48,6 +48,12 @@ public class BigDataPoolResourceInfoInner extends Resource { @JsonProperty(value = "properties.autoPause") private AutoPauseProperties autoPause; + /** + * Whether compute isolation is required or not. + */ + @JsonProperty(value = "properties.isComputeIsolationEnabled") + private Boolean isComputeIsolationEnabled; + /** * The Spark events folder. */ @@ -80,7 +86,8 @@ public class BigDataPoolResourceInfoInner extends Resource { /** * The level of compute power that each node in the Big Data pool has. - * Possible values include: 'None', 'Small', 'Medium', 'Large'. + * Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', + * 'XXLarge'. */ @JsonProperty(value = "properties.nodeSize") private NodeSize nodeSize; @@ -172,6 +179,26 @@ public BigDataPoolResourceInfoInner withAutoPause(AutoPauseProperties autoPause) return this; } + /** + * Get whether compute isolation is required or not. + * + * @return the isComputeIsolationEnabled value + */ + public Boolean isComputeIsolationEnabled() { + return this.isComputeIsolationEnabled; + } + + /** + * Set whether compute isolation is required or not. + * + * @param isComputeIsolationEnabled the isComputeIsolationEnabled value to set + * @return the BigDataPoolResourceInfoInner object itself. + */ + public BigDataPoolResourceInfoInner withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled) { + this.isComputeIsolationEnabled = isComputeIsolationEnabled; + return this; + } + /** * Get the Spark events folder. * @@ -273,7 +300,7 @@ public BigDataPoolResourceInfoInner withDefaultSparkLogFolder(String defaultSpar } /** - * Get the level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large'. + * Get the level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge'. * * @return the nodeSize value */ @@ -282,7 +309,7 @@ public NodeSize nodeSize() { } /** - * Set the level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large'. + * Set the level of compute power that each node in the Big Data pool has. Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge'. * * @param nodeSize the nodeSize value to set * @return the BigDataPoolResourceInfoInner object itself. diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolsInner.java index d3aa835fdc10a..ec265475d13dd 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/BigDataPoolsInner.java @@ -14,6 +14,7 @@ import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; import com.microsoft.azure.management.synapse.v2019_06_01_preview.BigDataPoolPatchInfo; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeInner.java index 9e7a5ee0c62d8..f05ebd3908001 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeInner.java @@ -8,14 +8,11 @@ package com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.microsoft.azure.management.synapse.v2019_06_01_preview.ManagedIntegrationRuntime; -import com.microsoft.azure.management.synapse.v2019_06_01_preview.SelfHostedIntegrationRuntime; - -import java.util.Map; +import com.fasterxml.jackson.annotation.JsonSubTypes; /** * Azure Synapse nested object which serves as a compute resource for diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeResourceInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeResourceInner.java index 175943befb33d..cb2d5c49406b9 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeResourceInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimeResourceInner.java @@ -9,36 +9,18 @@ package com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation; import com.fasterxml.jackson.annotation.JsonProperty; -import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.EntityResource; /** * Integration runtime resource type. */ -public class IntegrationRuntimeResourceInner extends SubResource { +public class IntegrationRuntimeResourceInner extends EntityResource { /** * Integration runtime properties. */ @JsonProperty(value = "properties", required = true) private IntegrationRuntimeInner properties; - /** - * The resource name. - */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) - private String name; - - /** - * The resource type. - */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) - private String type; - - /** - * Etag identifies change in the resource. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - /** * Get integration runtime properties. * @@ -59,31 +41,4 @@ public IntegrationRuntimeResourceInner withProperties(IntegrationRuntimeInner pr return this; } - /** - * Get the resource name. - * - * @return the name value - */ - public String name() { - return this.name; - } - - /** - * Get the resource type. - * - * @return the type value - */ - public String type() { - return this.type; - } - - /** - * Get etag identifies change in the resource. - * - * @return the etag value - */ - public String etag() { - return this.etag; - } - } diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimesInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimesInner.java index 78a55dd502dbf..ae0b2572a514d 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimesInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IntegrationRuntimesInner.java @@ -76,10 +76,18 @@ interface IntegrationRuntimesService { @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") Observable> create(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body IntegrationRuntimeResourceInner integrationRuntime, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.synapse.v2019_06_01_preview.IntegrationRuntimes beginCreate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") + Observable> beginCreate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("If-Match") String ifMatch, @Header("accept-language") String acceptLanguage, @Body IntegrationRuntimeResourceInner integrationRuntime, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.synapse.v2019_06_01_preview.IntegrationRuntimes delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", method = "DELETE", hasBody = true) Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.synapse.v2019_06_01_preview.IntegrationRuntimes beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.synapse.v2019_06_01_preview.IntegrationRuntimes upgrade" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade") Observable> upgrade(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("integrationRuntimeName") String integrationRuntimeName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -414,7 +422,7 @@ private ServiceResponse getDelegate(Response createAsync(String resourc * @param integrationRuntimeName Integration runtime name * @param properties Integration runtime properties. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IntegrationRuntimeResourceInner object + * @return the observable for the request */ public Observable createAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties).map(new Func1, IntegrationRuntimeResourceInner>() { @@ -462,7 +470,7 @@ public IntegrationRuntimeResourceInner call(ServiceResponse> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties) { if (this.client.subscriptionId() == null) { @@ -487,12 +495,196 @@ public Observable> createWithSe final String ifMatch = null; IntegrationRuntimeResourceInner integrationRuntime = new IntegrationRuntimeResourceInner(); integrationRuntime.withProperties(properties); - return service.create(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()) + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeResourceInner object if successful. + */ + public IntegrationRuntimeResourceInner create(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + return createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch).toBlocking().last().body(); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch), serviceCallback); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + return createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch).map(new Func1, IntegrationRuntimeResourceInner>() { + @Override + public IntegrationRuntimeResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workspaceName == null) { + throw new IllegalArgumentException("Parameter workspaceName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + IntegrationRuntimeResourceInner integrationRuntime = new IntegrationRuntimeResourceInner(); + integrationRuntime.withProperties(properties); + Observable> observable = service.create(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationRuntimeResourceInner object if successful. + */ + public IntegrationRuntimeResourceInner beginCreate(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties).toBlocking().single().body(); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties), serviceCallback); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties).map(new Func1, IntegrationRuntimeResourceInner>() { + @Override + public IntegrationRuntimeResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Create integration runtime. + * Create an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param properties Integration runtime properties. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationRuntimeResourceInner object + */ + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workspaceName == null) { + throw new IllegalArgumentException("Parameter workspaceName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (properties == null) { + throw new IllegalArgumentException("Parameter properties is required and cannot be null."); + } + Validator.validate(properties); + final String ifMatch = null; + IntegrationRuntimeResourceInner integrationRuntime = new IntegrationRuntimeResourceInner(); + integrationRuntime.withProperties(properties); + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = createDelegate(response); + ServiceResponse clientResponse = beginCreateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -515,8 +707,8 @@ public Observable> call(Respons * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the IntegrationRuntimeResourceInner object if successful. */ - public IntegrationRuntimeResourceInner create(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { - return createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch).toBlocking().single().body(); + public IntegrationRuntimeResourceInner beginCreate(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch).toBlocking().single().body(); } /** @@ -532,8 +724,8 @@ public IntegrationRuntimeResourceInner create(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch), serviceCallback); + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch), serviceCallback); } /** @@ -548,8 +740,8 @@ public ServiceFuture createAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the IntegrationRuntimeResourceInner object */ - public Observable createAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { - return createWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch).map(new Func1, IntegrationRuntimeResourceInner>() { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, properties, ifMatch).map(new Func1, IntegrationRuntimeResourceInner>() { @Override public IntegrationRuntimeResourceInner call(ServiceResponse response) { return response.body(); @@ -569,7 +761,7 @@ public IntegrationRuntimeResourceInner call(ServiceResponse> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeInner properties, String ifMatch) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -591,12 +783,12 @@ public Observable> createWithSe Validator.validate(properties); IntegrationRuntimeResourceInner integrationRuntime = new IntegrationRuntimeResourceInner(); integrationRuntime.withProperties(properties); - return service.create(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()) + return service.beginCreate(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), ifMatch, this.client.acceptLanguage(), integrationRuntime, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = createDelegate(response); + ServiceResponse clientResponse = beginCreateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -605,9 +797,10 @@ public Observable> call(Respons }); } - private ServiceResponse createDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginCreateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } @@ -624,7 +817,7 @@ private ServiceResponse createDelegate(Response * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - deleteWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName).toBlocking().single().body(); + deleteWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName).toBlocking().last().body(); } /** @@ -650,7 +843,7 @@ public ServiceFuture deleteAsync(String resourceGroupName, String workspac * @param workspaceName The name of the workspace * @param integrationRuntimeName Integration runtime name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ public Observable deleteAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { return deleteWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName).map(new Func1, Void>() { @@ -669,7 +862,7 @@ public Void call(ServiceResponse response) { * @param workspaceName The name of the workspace * @param integrationRuntimeName Integration runtime name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { if (this.client.subscriptionId() == null) { @@ -687,12 +880,91 @@ public Observable> deleteWithServiceResponseAsync(String r if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.delete(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Delete integration runtime. + * Delete an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName).toBlocking().single().body(); + } + + /** + * Delete integration runtime. + * Delete an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName), serviceCallback); + } + + /** + * Delete integration runtime. + * Delete an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Delete integration runtime. + * Delete an integration runtime. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param integrationRuntimeName Integration runtime name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workspaceName == null) { + throw new IllegalArgumentException("Parameter workspaceName is required and cannot be null."); + } + if (integrationRuntimeName == null) { + throw new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteDelegate(response); + ServiceResponse clientResponse = beginDeleteDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -701,9 +973,10 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IpFirewallRulesInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IpFirewallRulesInner.java index 4c761cfd3efbc..afbc02e57cb5c 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IpFirewallRulesInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/IpFirewallRulesInner.java @@ -8,39 +8,39 @@ package com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation; +import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; -import com.microsoft.azure.LongRunningFinalState; -import com.microsoft.azure.LongRunningOperationOptions; -import com.microsoft.azure.Page; -import com.microsoft.azure.PagedList; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.azure.management.synapse.v2019_06_01_preview.IpFirewallRuleProperties; import com.microsoft.azure.management.synapse.v2019_06_01_preview.ReplaceAllIpFirewallRulesRequest; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; import okhttp3.ResponseBody; -import retrofit2.Response; -import retrofit2.Retrofit; import retrofit2.http.Body; import retrofit2.http.GET; -import retrofit2.http.HTTP; import retrofit2.http.Header; import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; import retrofit2.http.POST; import retrofit2.http.PUT; -import retrofit2.http.Path; import retrofit2.http.Query; import retrofit2.http.Url; -import rx.Observable; +import retrofit2.Response; import rx.functions.Func1; - -import java.io.IOException; -import java.util.List; -import java.util.Map; +import rx.Observable; +import com.microsoft.azure.LongRunningFinalState; +import com.microsoft.azure.LongRunningOperationOptions; /** * An instance of this class provides access to all the operations defined diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/OperationsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/OperationsInner.java index b07de2719a2b0..5c9f5cd920180 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/OperationsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/OperationsInner.java @@ -12,6 +12,7 @@ import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; import com.microsoft.azure.management.synapse.v2019_06_01_preview.CheckNameAvailabilityRequest; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateEndpointConnectionsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateEndpointConnectionsInner.java index 41ddaafe290e1..054eb31b8a3ac 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateEndpointConnectionsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateEndpointConnectionsInner.java @@ -12,6 +12,7 @@ import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateLinkHubsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateLinkHubsInner.java index 3b26dce2451e0..7d536d2fcbb6a 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateLinkHubsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/PrivateLinkHubsInner.java @@ -8,39 +8,39 @@ package com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation; +import com.microsoft.azure.arm.collection.InnerSupportsGet; +import com.microsoft.azure.arm.collection.InnerSupportsDelete; +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.PrivateLinkHubPatchInfo; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; -import com.microsoft.azure.arm.collection.InnerSupportsDelete; -import com.microsoft.azure.arm.collection.InnerSupportsGet; -import com.microsoft.azure.arm.collection.InnerSupportsListing; -import com.microsoft.azure.management.synapse.v2019_06_01_preview.PrivateLinkHubPatchInfo; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; import okhttp3.ResponseBody; -import retrofit2.Response; -import retrofit2.Retrofit; import retrofit2.http.Body; import retrofit2.http.GET; -import retrofit2.http.HTTP; import retrofit2.http.Header; import retrofit2.http.Headers; +import retrofit2.http.HTTP; import retrofit2.http.PATCH; -import retrofit2.http.PUT; import retrofit2.http.Path; +import retrofit2.http.PUT; import retrofit2.http.Query; import retrofit2.http.Url; -import rx.Observable; +import retrofit2.Response; import rx.functions.Func1; - -import java.io.IOException; -import java.util.List; -import java.util.Map; +import rx.Observable; /** * An instance of this class provides access to all the operations defined diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolMetadataSyncConfigsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolMetadataSyncConfigsInner.java index c133dbd5faef9..d612f83cc127b 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolMetadataSyncConfigsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolMetadataSyncConfigsInner.java @@ -10,6 +10,7 @@ import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java index 12f3cbe6086d0..7e1910ef0042c 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java @@ -8,13 +8,12 @@ package com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation; -import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolVulnerabilityAssessmentRuleBaseline; -import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolVulnerabilityAssessmentRuleBaselineItem; -import com.microsoft.azure.management.synapse.v2019_06_01_preview.VulnerabilityAssessmentPolicyBaselineName; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; - import java.util.List; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolVulnerabilityAssessmentRuleBaselineItem; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.VulnerabilityAssessmentPolicyBaselineName; class SqlPoolVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatableImpl implements SqlPoolVulnerabilityAssessmentRuleBaseline, SqlPoolVulnerabilityAssessmentRuleBaseline.Definition, SqlPoolVulnerabilityAssessmentRuleBaseline.Update { private final SynapseManager manager; @@ -30,7 +29,7 @@ class SqlPoolVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatableI super(name, new SqlPoolVulnerabilityAssessmentRuleBaselineInner()); this.manager = manager; // Set resource name - this.baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(name); + this.baselineName = name; // } @@ -38,7 +37,7 @@ class SqlPoolVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatableI super(inner.name(), inner); this.manager = manager; // Set resource name - this.baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(inner.name()); + this.baselineName = inner.name(); // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.workspaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "workspaces"); diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java index 78559ada924b9..eabd608b67a01 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java @@ -11,7 +11,6 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolVulnerabilityAssessmentRuleBaselines; -import com.microsoft.azure.management.synapse.v2019_06_01_preview.VulnerabilityAssessmentPolicyBaselineName; import rx.Completable; class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl extends WrapperImpl implements SqlPoolVulnerabilityAssessmentRuleBaselines { diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolsInner.java index b714ac6e4d0c1..f3d91354ea47e 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/SqlPoolsInner.java @@ -13,6 +13,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.azure.management.synapse.v2019_06_01_preview.ResourceMoveDefinition; import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolPatchInfo; import com.microsoft.azure.Page; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceAadAdminsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceAadAdminsInner.java index f32368b741e2f..8f4fb10c11544 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceAadAdminsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceAadAdminsInner.java @@ -12,6 +12,7 @@ import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceImpl.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceImpl.java index fdca48e06b823..2ffba0d0f403c 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceImpl.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceImpl.java @@ -81,6 +81,11 @@ public DataLakeStorageAccountDetails defaultDataLakeStorage() { return this.inner().defaultDataLakeStorage(); } + @Override + public Map extraProperties() { + return this.inner().extraProperties(); + } + @Override public ManagedIdentity identity() { return this.inner().identity(); @@ -139,6 +144,12 @@ public WorkspaceImpl withDefaultDataLakeStorage(DataLakeStorageAccountDetails de return this; } + @Override + public WorkspaceImpl withManagedResourceGroupName(String managedResourceGroupName) { + this.inner().withManagedResourceGroupName(managedResourceGroupName); + return this; + } + @Override public WorkspaceImpl withManagedVirtualNetwork(String managedVirtualNetwork) { this.inner().withManagedVirtualNetwork(managedVirtualNetwork); diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceInner.java index 9d66ddb9f2070..c21cc1cbcba82 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceInner.java @@ -35,9 +35,13 @@ public class WorkspaceInner extends Resource { private String sqlAdministratorLoginPassword; /** - * Workspace managed resource group. + * Workspace managed resource group. The resource group name uniquely + * identifies the resource group within the user subscriptionId. The + * resource group name must be no longer than 90 characters long, and must + * be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', + * ')' and'.'. Note that the name cannot end with '.'. */ - @JsonProperty(value = "properties.managedResourceGroupName", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.managedResourceGroupName") private String managedResourceGroupName; /** @@ -77,6 +81,12 @@ public class WorkspaceInner extends Resource { @JsonProperty(value = "properties.privateEndpointConnections") private List privateEndpointConnections; + /** + * Workspace level configs and feature flags. + */ + @JsonProperty(value = "properties.extraProperties", access = JsonProperty.Access.WRITE_ONLY) + private Map extraProperties; + /** * Identity of the workspace. */ @@ -124,7 +134,7 @@ public WorkspaceInner withSqlAdministratorLoginPassword(String sqlAdministratorL } /** - * Get workspace managed resource group. + * Get workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'. * * @return the managedResourceGroupName value */ @@ -132,6 +142,17 @@ public String managedResourceGroupName() { return this.managedResourceGroupName; } + /** + * Set workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'. + * + * @param managedResourceGroupName the managedResourceGroupName value to set + * @return the WorkspaceInner object itself. + */ + public WorkspaceInner withManagedResourceGroupName(String managedResourceGroupName) { + this.managedResourceGroupName = managedResourceGroupName; + return this; + } + /** * Get resource provisioning state. * @@ -241,6 +262,15 @@ public WorkspaceInner withPrivateEndpointConnections(List extraProperties() { + return this.extraProperties; + } + /** * Get identity of the workspace. * diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceManagedIdentitySqlControlSettingsInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceManagedIdentitySqlControlSettingsInner.java index a112ce0262cb4..f8d68c92dba59 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceManagedIdentitySqlControlSettingsInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspaceManagedIdentitySqlControlSettingsInner.java @@ -10,6 +10,7 @@ import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.azure.management.synapse.v2019_06_01_preview.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; diff --git a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspacesInner.java b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspacesInner.java index dde9d4ae03b82..d47552ada98e3 100644 --- a/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspacesInner.java +++ b/sdk/synapse/mgmt-v2019_06_01_preview/src/main/java/com/microsoft/azure/management/synapse/v2019_06_01_preview/implementation/WorkspacesInner.java @@ -16,6 +16,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.synapse.v2019_06_01_preview.ErrorContractInnerException; import com.microsoft.azure.management.synapse.v2019_06_01_preview.WorkspacePatchInfo; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList;