Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/synapse/mgmt-v2019_06_01_preview] rename synapse model in java #4223

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/synapse/mgmt-v2019_06_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.0</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-synapse</artifactId>
<version>1.0.0-beta-2</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Synapse Management</name>
<description>This package contains Microsoft Synapse Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public interface BigDataPoolResourceInfo extends HasInner<BigDataPoolResourceInf
*/
String id();

/**
* @return the isComputeIsolationEnabled value.
*/
Boolean isComputeIsolationEnabled();

/**
* @return the libraryRequirements value.
*/
Expand Down Expand Up @@ -205,6 +210,18 @@ interface WithDefaultSparkLogFolder {
WithCreate withDefaultSparkLogFolder(String defaultSparkLogFolder);
}

/**
* The stage of the bigdatapoolresourceinfo definition allowing to specify IsComputeIsolationEnabled.
*/
interface WithIsComputeIsolationEnabled {
/**
* Specifies isComputeIsolationEnabled.
* @param isComputeIsolationEnabled Whether compute isolation is required or not
* @return the next definition stage
*/
WithCreate withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled);
}

/**
* The stage of the bigdatapoolresourceinfo definition allowing to specify LibraryRequirements.
*/
Expand Down Expand Up @@ -235,7 +252,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 definition stage
*/
WithCreate withNodeSize(NodeSize nodeSize);
Expand Down Expand Up @@ -306,13 +323,13 @@ interface WithTags {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<BigDataPoolResourceInfo>, 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<BigDataPoolResourceInfo>, 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<BigDataPoolResourceInfo>, 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<BigDataPoolResourceInfo>, 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 {
}

/**
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public final class NodeSize extends ExpandableStringEnum<NodeSize> {
/** 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public interface Workspace extends HasInner<WorkspaceInner>, Resource, Groupable
*/
DataLakeStorageAccountDetails defaultDataLakeStorage();

/**
* @return the extraProperties value.
*/
Map<String, Object> extraProperties();

/**
* @return the identity value.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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<Workspace>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithConnectivityEndpoints, DefinitionStages.WithDefaultDataLakeStorage, DefinitionStages.WithIdentity, DefinitionStages.WithManagedVirtualNetwork, DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithSqlAdministratorLogin, DefinitionStages.WithSqlAdministratorLoginPassword, DefinitionStages.WithVirtualNetworkProfile {
interface WithCreate extends Creatable<Workspace>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithConnectivityEndpoints, DefinitionStages.WithDefaultDataLakeStorage, DefinitionStages.WithIdentity, DefinitionStages.WithManagedResourceGroupName, DefinitionStages.WithManagedVirtualNetwork, DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithSqlAdministratorLogin, DefinitionStages.WithSqlAdministratorLoginPassword, DefinitionStages.WithVirtualNetworkProfile {
}
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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;
}

}
Loading