forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 20360 in Azure/azure-rest-api-specs
Merge 1fd05ed80cef09e5bcae095dbf144446c6a36a2a into b749953e21e5c3f275d839862323920ef7bf716e
- Loading branch information
SDKAuto
committed
Sep 15, 2022
1 parent
769cb3a
commit 5ac4190
Showing
418 changed files
with
6,244 additions
and
3,227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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")) | ||
|
@@ -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(); | ||
|
@@ -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 { | ||
|
@@ -5847,9 +5848,7 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl | |
new ManagedIdentitySqlControlSettingsModelInner() | ||
.withGrantSqlControlToManagedIdentity( | ||
new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() | ||
.withDesiredState( | ||
ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState | ||
.ENABLED)), | ||
.withDesiredState(DesiredState.ENABLED)), | ||
Context.NONE); | ||
} | ||
} | ||
|
@@ -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 { | ||
|
@@ -6384,13 +6382,9 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam | |
resource | ||
.update() | ||
.withState(SecurityAlertPolicyState.ENABLED) | ||
.withDisabledAlerts(Arrays.asList("Access_Anomaly", "Usage_Anomaly")) | ||
.withEmailAddresses(Arrays.asList("[email protected]")) | ||
.withEmailAccountAdmins(true) | ||
.withStorageEndpoint("https://mystorage.blob.core.windows.net") | ||
.withStorageAccountAccessKey( | ||
"sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") | ||
.withRetentionDays(5) | ||
.apply(); | ||
} | ||
|
||
|
@@ -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==") | ||
|
Oops, something went wrong.