Skip to content

Commit

Permalink
CodeGen from PR 20476 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e0a68f940e1964ee9e760cc2eac873d9e2a11a11 into 650a2be17c499104c7ad20f7a38f33f582170308
  • Loading branch information
SDKAuto committed Sep 15, 2022
1 parent 769cb3a commit 8b31b95
Show file tree
Hide file tree
Showing 418 changed files with 6,246 additions and 3,229 deletions.
4 changes: 3 additions & 1 deletion sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.7 (Unreleased)
## 1.0.0-beta.1 (2022-09-15)

- Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
2 changes: 1 addition & 1 deletion sdk/synapse/azure-resourcemanager-synapse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-synapse</artifactId>
<version>1.0.0-beta.6</version>
<version>1.0.0-beta.7</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
15 changes: 4 additions & 11 deletions sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ public final class BigDataPoolsCreateOrUpdateSamples {
.withTags(mapOf("key", "value"))
.withAutoScale(new AutoScaleProperties().withMinNodeCount(3).withEnabled(true).withMaxNodeCount(50))
.withAutoPause(new AutoPauseProperties().withDelayInMinutes(15).withEnabled(true))
.withIsAutotuneEnabled(false)
.withSparkEventsFolder("/events")
.withNodeCount(4)
.withLibraryRequirements(new LibraryRequirements().withContent("").withFilename("requirements.txt"))
Expand Down Expand Up @@ -5420,7 +5421,7 @@ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples {
.withMinResourcePercent(0)
.withMaxResourcePercent(100)
.withMinResourcePercentPerRequest(3.0)
.withMaxResourcePercentPerRequest(3.0)
.withMaxResourcePercentPerRequest(3.0D)
.withImportance("normal")
.withQueryExecutionTimeout(0)
.create();
Expand Down Expand Up @@ -5824,8 +5825,8 @@ public final class WorkspaceAadAdminsGetSamples {
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner;
import com.azure.resourcemanager.synapse.models.DesiredState;
import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity;
import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState;

/** Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. */
public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples {
Expand All @@ -5847,9 +5848,7 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl
new ManagedIdentitySqlControlSettingsModelInner()
.withGrantSqlControlToManagedIdentity(
new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity()
.withDesiredState(
ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState
.ENABLED)),
.withDesiredState(DesiredState.ENABLED)),
Context.NONE);
}
}
Expand Down Expand Up @@ -6361,7 +6360,6 @@ import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated;
import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState;
import com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicy;
import java.util.Arrays;

/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. */
public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples {
Expand All @@ -6384,13 +6382,9 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam
resource
.update()
.withState(SecurityAlertPolicyState.ENABLED)
.withDisabledAlerts(Arrays.asList("Access_Anomaly", "Usage_Anomaly"))
.withEmailAddresses(Arrays.asList("testSecurityAlert@microsoft.com"))
.withEmailAccountAdmins(true)
.withStorageEndpoint("https://mystorage.blob.core.windows.net")
.withStorageAccountAccessKey(
"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==")
.withRetentionDays(5)
.apply();
}

Expand All @@ -6413,7 +6407,6 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam
resource
.update()
.withState(SecurityAlertPolicyState.DISABLED)
.withEmailAccountAdmins(true)
.withStorageEndpoint("https://mystorage.blob.core.windows.net")
.withStorageAccountAccessKey(
"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==")
Expand Down
Loading

0 comments on commit 8b31b95

Please sign in to comment.