forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 10
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 20389 in Azure/azure-rest-api-specs
Merge bf8e650a407d8628ae52a311fc44d7ba1fb58c06 into 9e8ee53d513a1f7e698bba19dcaf1d376da00b95
- Loading branch information
SDKAuto
committed
Sep 7, 2022
1 parent
ffe8155
commit b65365d
Showing
415 changed files
with
6,183 additions
and
3,184 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.