diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md index f8c934c4f0d1..72a766575ad6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.5 (Unreleased) +## 1.0.0-beta.1 (2022-01-07) + +- 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 diff --git a/sdk/synapse/azure-resourcemanager-synapse/README.md b/sdk/synapse/azure-resourcemanager-synapse/README.md index 864c09378d34..9b7cdba62258 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/README.md +++ b/sdk/synapse/azure-resourcemanager-synapse/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-synapse - 1.0.0-beta.4 + 1.0.0-beta.5 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md index e7405a707888..e280e03f5c48 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md +++ b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md @@ -5693,7 +5693,6 @@ public final class SqlPoolsResumeSamples { ```java import com.azure.core.util.Context; -import com.azure.resourcemanager.synapse.models.CreateMode; import com.azure.resourcemanager.synapse.models.Sku; import com.azure.resourcemanager.synapse.models.SqlPool; import java.time.OffsetDateTime; @@ -5722,11 +5721,7 @@ public final class SqlPoolsUpdateSamples { .withSku(new Sku().withTier("").withName("")) .withMaxSizeBytes(0L) .withCollation("") - .withSourceDatabaseId("") - .withRecoverableDatabaseId("") .withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) - .withCreateMode(CreateMode.fromString("")) - .withCreationDate(OffsetDateTime.parse("1970-01-01T00:00:00.000Z")) .apply(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/pom.xml b/sdk/synapse/azure-resourcemanager-synapse/pom.xml index 694295f46e58..048098796abc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/pom.xml +++ b/sdk/synapse/azure-resourcemanager-synapse/pom.xml @@ -55,4 +55,27 @@ 1.5.0 + + + + org.revapi + revapi-maven-plugin + 0.14.6 + + + + + java.method.addedToInterface + + + true + .* + com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)* + + + + + + + diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java index 5f3b579bca84..bd6fb18b61e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java @@ -456,7 +456,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.synapse") .append("/") - .append("1.0.0-beta.4"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java index 140295794564..646c53e82db3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java @@ -109,20 +109,6 @@ public OffsetDateTime creationDate() { return this.innerProperties() == null ? null : this.innerProperties().creationDate(); } - /** - * Set the creationDate property: The time when the Big Data pool was created. - * - * @param creationDate the creationDate value to set. - * @return the BigDataPoolResourceInfoInner object itself. - */ - public BigDataPoolResourceInfoInner withCreationDate(OffsetDateTime creationDate) { - if (this.innerProperties() == null) { - this.innerProperties = new BigDataPoolResourceProperties(); - } - this.innerProperties().withCreationDate(creationDate); - return this; - } - /** * Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java index 918608da1d77..20f4ddffda7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java @@ -38,7 +38,7 @@ public final class BigDataPoolResourceProperties { /* * The time when the Big Data pool was created. */ - @JsonProperty(value = "creationDate") + @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; /* @@ -181,17 +181,6 @@ public OffsetDateTime creationDate() { return this.creationDate; } - /** - * Set the creationDate property: The time when the Big Data pool was created. - * - * @param creationDate the creationDate value to set. - * @return the BigDataPoolResourceProperties object itself. - */ - public BigDataPoolResourceProperties withCreationDate(OffsetDateTime creationDate) { - this.creationDate = creationDate; - return this; - } - /** * Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java index 7ce06d4f38f0..0dbc65eca298 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java @@ -8,6 +8,7 @@ import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase; import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; @@ -22,7 +23,10 @@ property = "kind", defaultImpl = DatabaseInner.class) @JsonTypeName("Database") -@JsonSubTypes({@JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class)}) +@JsonSubTypes({ + @JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class), + @JsonSubTypes.Type(name = "ReadOnlyFollowing", value = ReadOnlyFollowingDatabase.class) +}) @Fluent public class DatabaseInner extends ProxyResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java index 9d1729622a90..e8bd160a1c06 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java @@ -387,6 +387,51 @@ public ExtendedServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelay return this; } + /** + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @return the isDevopsAuditEnabled value. + */ + public Boolean isDevopsAuditEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().isDevopsAuditEnabled(); + } + + /** + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. + * @return the ExtendedServerBlobAuditingPolicyInner object itself. + */ + public ExtendedServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new ExtendedServerBlobAuditingPolicyProperties(); + } + this.innerProperties().withIsDevopsAuditEnabled(isDevopsAuditEnabled); + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java index 60993c5f7975..127faee70e97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java @@ -183,6 +183,30 @@ public final class ExtendedServerBlobAuditingPolicyProperties { @JsonProperty(value = "queueDelayMs") private Integer queueDelayMs; + /* + * Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as + * 'Enabled', 'IsAzureMonitorTargetEnabled' as true and + * 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'DevOpsOperationsAudit' diagnostic logs category on the master database + * should also be created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + @JsonProperty(value = "isDevopsAuditEnabled") + private Boolean isDevopsAuditEnabled; + /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. * @@ -510,6 +534,48 @@ public ExtendedServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queue return this; } + /** + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @return the isDevopsAuditEnabled value. + */ + public Boolean isDevopsAuditEnabled() { + return this.isDevopsAuditEnabled; + } + + /** + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. + * @return the ExtendedServerBlobAuditingPolicyProperties object itself. + */ + public ExtendedServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { + this.isDevopsAuditEnabled = isDevopsAuditEnabled; + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java new file mode 100644 index 000000000000..8d1139de0788 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Managed integration runtime managed virtual network reference. */ +@Fluent +public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference { + @JsonIgnore + private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class); + + /* + * The reference name of the managed virtual network. + */ + @JsonProperty(value = "referenceName") + private String referenceName; + + /* + * The type of the managed virtual network. + */ + @JsonProperty(value = "type") + private String type; + + /* + * The id of the managed virtual network. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the referenceName property: The reference name of the managed virtual network. + * + * @return the referenceName value. + */ + public String referenceName() { + return this.referenceName; + } + + /** + * Set the referenceName property: The reference name of the managed virtual network. + * + * @param referenceName the referenceName value to set. + * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. + */ + public ManagedIntegrationRuntimeManagedVirtualNetworkReference withReferenceName(String referenceName) { + this.referenceName = referenceName; + return this; + } + + /** + * Get the type property: The type of the managed virtual network. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Set the type property: The type of the managed virtual network. + * + * @param type the type value to set. + * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. + */ + public ManagedIntegrationRuntimeManagedVirtualNetworkReference withType(String type) { + this.type = type; + return this; + } + + /** + * Get the id property: The id of the managed virtual network. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: The id of the managed virtual network. + * + * @param id the id value to set. + * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. + */ + public ManagedIntegrationRuntimeManagedVirtualNetworkReference withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java new file mode 100644 index 000000000000..5c9ee7e6f1eb --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.synapse.models.DatabaseStatistics; +import com.azure.resourcemanager.synapse.models.PrincipalsModificationKind; +import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.Duration; + +/** Class representing the Kusto database properties. */ +@Fluent +public final class ReadOnlyFollowingDatabaseProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ReadOnlyFollowingDatabaseProperties.class); + + /* + * The provisioned state of the resource. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ResourceProvisioningState provisioningState; + + /* + * The time the data should be kept before it stops being accessible to + * queries in TimeSpan. + */ + @JsonProperty(value = "softDeletePeriod", access = JsonProperty.Access.WRITE_ONLY) + private Duration softDeletePeriod; + + /* + * The time the data should be kept in cache for fast queries in TimeSpan. + */ + @JsonProperty(value = "hotCachePeriod") + private Duration hotCachePeriod; + + /* + * The statistics of the database. + */ + @JsonProperty(value = "statistics", access = JsonProperty.Access.WRITE_ONLY) + private DatabaseStatistics statistics; + + /* + * The name of the leader cluster + */ + @JsonProperty(value = "leaderClusterResourceId", access = JsonProperty.Access.WRITE_ONLY) + private String leaderClusterResourceId; + + /* + * The name of the attached database configuration cluster + */ + @JsonProperty(value = "attachedDatabaseConfigurationName", access = JsonProperty.Access.WRITE_ONLY) + private String attachedDatabaseConfigurationName; + + /* + * The principals modification kind of the database + */ + @JsonProperty(value = "principalsModificationKind", access = JsonProperty.Access.WRITE_ONLY) + private PrincipalsModificationKind principalsModificationKind; + + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ResourceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries + * in TimeSpan. + * + * @return the softDeletePeriod value. + */ + public Duration softDeletePeriod() { + return this.softDeletePeriod; + } + + /** + * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. + * + * @return the hotCachePeriod value. + */ + public Duration hotCachePeriod() { + return this.hotCachePeriod; + } + + /** + * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. + * + * @param hotCachePeriod the hotCachePeriod value to set. + * @return the ReadOnlyFollowingDatabaseProperties object itself. + */ + public ReadOnlyFollowingDatabaseProperties withHotCachePeriod(Duration hotCachePeriod) { + this.hotCachePeriod = hotCachePeriod; + return this; + } + + /** + * Get the statistics property: The statistics of the database. + * + * @return the statistics value. + */ + public DatabaseStatistics statistics() { + return this.statistics; + } + + /** + * Get the leaderClusterResourceId property: The name of the leader cluster. + * + * @return the leaderClusterResourceId value. + */ + public String leaderClusterResourceId() { + return this.leaderClusterResourceId; + } + + /** + * Get the attachedDatabaseConfigurationName property: The name of the attached database configuration cluster. + * + * @return the attachedDatabaseConfigurationName value. + */ + public String attachedDatabaseConfigurationName() { + return this.attachedDatabaseConfigurationName; + } + + /** + * Get the principalsModificationKind property: The principals modification kind of the database. + * + * @return the principalsModificationKind value. + */ + public PrincipalsModificationKind principalsModificationKind() { + return this.principalsModificationKind; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (statistics() != null) { + statistics().validate(); + } + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java index b9704d500fe3..8be9e857b141 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java @@ -132,6 +132,18 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { @JsonProperty(value = "autoUpdateETA", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime autoUpdateEta; + /* + * The service region of the integration runtime + */ + @JsonProperty(value = "serviceRegion") + private String serviceRegion; + + /* + * The newer versions on download center. + */ + @JsonProperty(value = "newerVersions") + private List newerVersions; + /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. * @@ -313,6 +325,46 @@ public OffsetDateTime autoUpdateEta() { return this.autoUpdateEta; } + /** + * Get the serviceRegion property: The service region of the integration runtime. + * + * @return the serviceRegion value. + */ + public String serviceRegion() { + return this.serviceRegion; + } + + /** + * Set the serviceRegion property: The service region of the integration runtime. + * + * @param serviceRegion the serviceRegion value to set. + * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. + */ + public SelfHostedIntegrationRuntimeStatusTypeProperties withServiceRegion(String serviceRegion) { + this.serviceRegion = serviceRegion; + return this; + } + + /** + * Get the newerVersions property: The newer versions on download center. + * + * @return the newerVersions value. + */ + public List newerVersions() { + return this.newerVersions; + } + + /** + * Set the newerVersions property: The newer versions on download center. + * + * @param newerVersions the newerVersions value to set. + * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. + */ + public SelfHostedIntegrationRuntimeStatusTypeProperties withNewerVersions(List newerVersions) { + this.newerVersions = newerVersions; + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java index 1ed1fd448889..7ccf11ecb415 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java @@ -364,6 +364,51 @@ public ServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) { return this; } + /** + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @return the isDevopsAuditEnabled value. + */ + public Boolean isDevopsAuditEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().isDevopsAuditEnabled(); + } + + /** + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. + * @return the ServerBlobAuditingPolicyInner object itself. + */ + public ServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new ServerBlobAuditingPolicyProperties(); + } + this.innerProperties().withIsDevopsAuditEnabled(isDevopsAuditEnabled); + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java index 80eb1e6f10c6..64bc6ea5ce14 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java @@ -177,6 +177,30 @@ public final class ServerBlobAuditingPolicyProperties { @JsonProperty(value = "queueDelayMs") private Integer queueDelayMs; + /* + * Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as + * 'Enabled', 'IsAzureMonitorTargetEnabled' as true and + * 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with + * 'DevOpsOperationsAudit' diagnostic logs category on the master database + * should also be created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * + */ + @JsonProperty(value = "isDevopsAuditEnabled") + private Boolean isDevopsAuditEnabled; + /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. @@ -481,6 +505,48 @@ public ServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queueDelayMs) return this; } + /** + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @return the isDevopsAuditEnabled value. + */ + public Boolean isDevopsAuditEnabled() { + return this.isDevopsAuditEnabled; + } + + /** + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will + * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. + * @return the ServerBlobAuditingPolicyProperties object itself. + */ + public ServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { + this.isDevopsAuditEnabled = isDevopsAuditEnabled; + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java index 3dd5ecd2f5d3..3235f3d11e49 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java @@ -199,20 +199,6 @@ public String status() { return this.innerProperties() == null ? null : this.innerProperties().status(); } - /** - * Set the status property: Resource status. - * - * @param status the status value to set. - * @return the SqlPoolInner object itself. - */ - public SqlPoolInner withStatus(String status) { - if (this.innerProperties() == null) { - this.innerProperties = new SqlPoolResourceProperties(); - } - this.innerProperties().withStatus(status); - return this; - } - /** * Get the restorePointInTime property: Snapshot time to restore. * @@ -292,20 +278,6 @@ public OffsetDateTime creationDate() { return this.innerProperties() == null ? null : this.innerProperties().creationDate(); } - /** - * Set the creationDate property: Date the SQL pool was created. - * - * @param creationDate the creationDate value to set. - * @return the SqlPoolInner object itself. - */ - public SqlPoolInner withCreationDate(OffsetDateTime creationDate) { - if (this.innerProperties() == null) { - this.innerProperties = new SqlPoolResourceProperties(); - } - this.innerProperties().withCreationDate(creationDate); - return this; - } - /** * Get the storageAccountType property: The storage account type used to store backups for this sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java index f047c0959ae9..bcc3b7612a89 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java @@ -50,7 +50,7 @@ public final class SqlPoolResourceProperties { /* * Resource status */ - @JsonProperty(value = "status") + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private String status; /* @@ -83,7 +83,7 @@ public final class SqlPoolResourceProperties { /* * Date the SQL pool was created */ - @JsonProperty(value = "creationDate") + @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; /* @@ -207,17 +207,6 @@ public String status() { return this.status; } - /** - * Set the status property: Resource status. - * - * @param status the status value to set. - * @return the SqlPoolResourceProperties object itself. - */ - public SqlPoolResourceProperties withStatus(String status) { - this.status = status; - return this; - } - /** * Get the restorePointInTime property: Snapshot time to restore. * @@ -291,17 +280,6 @@ public OffsetDateTime creationDate() { return this.creationDate; } - /** - * Set the creationDate property: Date the SQL pool was created. - * - * @param creationDate the creationDate value to set. - * @return the SqlPoolResourceProperties object itself. - */ - public SqlPoolResourceProperties withCreationDate(OffsetDateTime creationDate) { - this.creationDate = creationDate; - return this; - } - /** * Get the storageAccountType property: The storage account type used to store backups for this sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java index 6289827dc95b..0c929e362b95 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java @@ -485,6 +485,29 @@ public WorkspaceInner withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentic return this; } + /** + * Get the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. + * + * @return the trustedServiceBypassEnabled value. + */ + public Boolean trustedServiceBypassEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().trustedServiceBypassEnabled(); + } + + /** + * Set the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. + * + * @param trustedServiceBypassEnabled the trustedServiceBypassEnabled value to set. + * @return the WorkspaceInner object itself. + */ + public WorkspaceInner withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkspaceProperties(); + } + this.innerProperties().withTrustedServiceBypassEnabled(trustedServiceBypassEnabled); + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java index fa4db79f686b..881b9a1a3535 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java @@ -154,6 +154,12 @@ public final class WorkspaceProperties { @JsonProperty(value = "azureADOnlyAuthentication") private Boolean azureADOnlyAuthentication; + /* + * Is trustedServiceBypassEnabled for the workspace + */ + @JsonProperty(value = "trustedServiceBypassEnabled") + private Boolean trustedServiceBypassEnabled; + /** * Get the defaultDataLakeStorage property: Workspace default data lake storage account details. * @@ -513,6 +519,26 @@ public WorkspaceProperties withAzureADOnlyAuthentication(Boolean azureADOnlyAuth return this; } + /** + * Get the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. + * + * @return the trustedServiceBypassEnabled value. + */ + public Boolean trustedServiceBypassEnabled() { + return this.trustedServiceBypassEnabled; + } + + /** + * Set the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. + * + * @param trustedServiceBypassEnabled the trustedServiceBypassEnabled value to set. + * @return the WorkspaceProperties object itself. + */ + public WorkspaceProperties withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled) { + this.trustedServiceBypassEnabled = trustedServiceBypassEnabled; + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java index 3709e7678847..f889191d8ab0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java @@ -473,7 +473,7 @@ private PollerFlux, AzureADOnlyAuthen this.client.getHttpPipeline(), AzureADOnlyAuthenticationInner.class, AzureADOnlyAuthenticationInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java index 222b9f543dda..29cc642e3a32 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java @@ -275,11 +275,6 @@ public BigDataPoolResourceInfoImpl withAutoScale(AutoScaleProperties autoScale) return this; } - public BigDataPoolResourceInfoImpl withCreationDate(OffsetDateTime creationDate) { - this.innerModel().withCreationDate(creationDate); - return this; - } - public BigDataPoolResourceInfoImpl withAutoPause(AutoPauseProperties autoPause) { this.innerModel().withAutoPause(autoPause); return this; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java index 04a9a72c975d..3edd8dc0f2c3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java @@ -700,7 +700,7 @@ private PollerFlux, BigDataPoolResource this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1065,7 +1065,7 @@ private PollerFlux, Object> beginDeleteAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE); + mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java index aa8a9dcd0534..3be920a3af7d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java @@ -78,6 +78,10 @@ public Integer queueDelayMs() { return this.innerModel().queueDelayMs(); } + public Boolean isDevopsAuditEnabled() { + return this.innerModel().isDevopsAuditEnabled(); + } + public ExtendedServerBlobAuditingPolicyInner innerModel() { return this.innerObject; } @@ -227,4 +231,9 @@ public ExtendedServerBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayM this.innerModel().withQueueDelayMs(queueDelayMs); return this; } + + public ExtendedServerBlobAuditingPolicyImpl withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { + this.innerModel().withIsDevopsAuditEnabled(isDevopsAuditEnabled); + return this; + } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index 20b561e4ec77..1c1e1367b487 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -460,7 +460,7 @@ private Mono>> refreshWithResponseAsync( this.client.getHttpPipeline(), SsisObjectMetadataStatusResponseInner.class, SsisObjectMetadataStatusResponseInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java index 338a9b297f7e..5144327daaf7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java @@ -865,7 +865,7 @@ private PollerFlux, IntegrationRunti this.client.getHttpPipeline(), IntegrationRuntimeResourceInner.class, IntegrationRuntimeResourceInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1241,7 +1241,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1848,7 +1849,7 @@ private Mono>> startWithResponseAsync( this.client.getHttpPipeline(), IntegrationRuntimeStatusResponseInner.class, IntegrationRuntimeStatusResponseInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -2117,7 +2118,8 @@ private PollerFlux, Void> beginStopAsync( stopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2553,7 +2555,8 @@ private PollerFlux, Void> beginEnableInteractiveQueryAsync( enableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2815,7 +2818,8 @@ private PollerFlux, Void> beginDisableInteractiveQueryAsync( disableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java index 1f2d0db5fd5b..a8c15d280a3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java @@ -89,7 +89,7 @@ Mono> listByWorkspace( @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" + "/{workspaceName}/firewallRules/{ruleName}") - @ExpectedResponses({200, 201}) + @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @HostParam("$host") String endpoint, @@ -493,7 +493,7 @@ private PollerFlux, IpFirewallRuleInfoInner> this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -781,7 +781,7 @@ private PollerFlux, Object> beginDeleteAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE); + mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } /** @@ -1209,7 +1209,7 @@ private Mono>> replaceAllWithResponseAsync( this.client.getHttpPipeline(), ReplaceAllFirewallRulesOperationResponseInner.class, ReplaceAllFirewallRulesOperationResponseInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java index a9e6a5c5dedf..6401764be922 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java @@ -712,7 +712,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), AttachedDatabaseConfigurationInner.class, AttachedDatabaseConfigurationInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1068,7 +1068,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java index 95ba95f3324a..dae02f077c1e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java @@ -601,7 +601,7 @@ private Mono>> dataConnectionValidationWithResponseAsy this.client.getHttpPipeline(), DataConnectionValidationListResultInner.class, DataConnectionValidationListResultInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1405,7 +1405,7 @@ private PollerFlux, DataConnectionInner> beginCr this.client.getHttpPipeline(), DataConnectionInner.class, DataConnectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1797,7 +1797,7 @@ private PollerFlux, DataConnectionInner> beginUp this.client.getHttpPipeline(), DataConnectionInner.class, DataConnectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -2165,7 +2165,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java index f1afad8d6f69..e3f8148c9c8b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java @@ -1009,7 +1009,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), DatabasePrincipalAssignmentInner.class, DatabasePrincipalAssignmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1411,7 +1411,8 @@ private PollerFlux, Void> beginDeleteAsync( workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java index 866a22a56112..d577ce90c442 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java @@ -683,7 +683,11 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DatabaseInner.class, DatabaseInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DatabaseInner.class, + DatabaseInner.class, + this.client.getContext()); } /** @@ -1035,7 +1039,11 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DatabaseInner.class, DatabaseInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DatabaseInner.class, + DatabaseInner.class, + this.client.getContext()); } /** @@ -1354,7 +1362,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java index 00b4831efcfa..651eea4ebff3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java @@ -918,7 +918,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), ClusterPrincipalAssignmentInner.class, ClusterPrincipalAssignmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1258,7 +1258,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java index 3d0f22e73aab..c1000a1f26fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java @@ -1085,7 +1085,11 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda return this .client .getLroResult( - mono, this.client.getHttpPipeline(), KustoPoolInner.class, KustoPoolInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + KustoPoolInner.class, + KustoPoolInner.class, + this.client.getContext()); } /** @@ -1510,7 +1514,11 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), KustoPoolInner.class, KustoPoolInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + KustoPoolInner.class, + KustoPoolInner.class, + this.client.getContext()); } /** @@ -1864,7 +1872,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2117,7 +2126,8 @@ private PollerFlux, Void> beginStopAsync( Mono>> mono = stopWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2370,7 +2380,8 @@ private PollerFlux, Void> beginStartAsync( Mono>> mono = startWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -3027,7 +3038,8 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -3354,7 +3366,8 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -3870,7 +3883,8 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java index a94b8496abf9..e25d152af1ea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java @@ -477,7 +477,7 @@ private PollerFlux, PrivateEndpointCo this.client.getHttpPipeline(), PrivateEndpointConnectionInner.class, PrivateEndpointConnectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -786,7 +786,7 @@ private PollerFlux, OperationResourceInner> b this.client.getHttpPipeline(), OperationResourceInner.class, OperationResourceInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java index 27e2b3f9e1f9..e81a4c7caad5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java @@ -965,7 +965,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateLinkHubName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java index 95cd2b57d4cb..41ca761c7c96 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java @@ -72,6 +72,10 @@ public Integer queueDelayMs() { return this.innerModel().queueDelayMs(); } + public Boolean isDevopsAuditEnabled() { + return this.innerModel().isDevopsAuditEnabled(); + } + public ServerBlobAuditingPolicyInner innerModel() { return this.innerObject; } @@ -215,4 +219,9 @@ public ServerBlobAuditingPolicyImpl withQueueDelayMs(Integer queueDelayMs) { this.innerModel().withQueueDelayMs(queueDelayMs); return this; } + + public ServerBlobAuditingPolicyImpl withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) { + this.innerModel().withIsDevopsAuditEnabled(isDevopsAuditEnabled); + return this; + } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java index 91b255319d0b..a8a805c4ccff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java @@ -309,16 +309,6 @@ public SqlPoolImpl withProvisioningState(String provisioningState) { } } - public SqlPoolImpl withStatus(String status) { - if (isInCreateMode()) { - this.innerModel().withStatus(status); - return this; - } else { - this.updateSqlPoolInfo.withStatus(status); - return this; - } - } - public SqlPoolImpl withRestorePointInTime(OffsetDateTime restorePointInTime) { if (isInCreateMode()) { this.innerModel().withRestorePointInTime(restorePointInTime); @@ -339,16 +329,6 @@ public SqlPoolImpl withCreateMode(CreateMode createMode) { } } - public SqlPoolImpl withCreationDate(OffsetDateTime creationDate) { - if (isInCreateMode()) { - this.innerModel().withCreationDate(creationDate); - return this; - } else { - this.updateSqlPoolInfo.withCreationDate(creationDate); - return this; - } - } - public SqlPoolImpl withStorageAccountType(StorageAccountType storageAccountType) { if (isInCreateMode()) { this.innerModel().withStorageAccountType(storageAccountType); @@ -360,13 +340,8 @@ public SqlPoolImpl withStorageAccountType(StorageAccountType storageAccountType) } public SqlPoolImpl withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate) { - if (isInCreateMode()) { - this.innerModel().withSourceDatabaseDeletionDate(sourceDatabaseDeletionDate); - return this; - } else { - this.updateSqlPoolInfo.withSourceDatabaseDeletionDate(sourceDatabaseDeletionDate); - return this; - } + this.innerModel().withSourceDatabaseDeletionDate(sourceDatabaseDeletionDate); + return this; } private boolean isInCreateMode() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java index dda3e08d9abb..6643eb48bca5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java @@ -492,7 +492,11 @@ private PollerFlux, RestorePointInner> beginCreate return this .client .getLroResult( - mono, this.client.getHttpPipeline(), RestorePointInner.class, RestorePointInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + RestorePointInner.class, + RestorePointInner.class, + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java index bd59b0ac87a1..b345c4e4c725 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java @@ -563,7 +563,8 @@ private PollerFlux, Void> beginInitiateScanAsync( resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java index 9bbe44b750f9..d3fa0285d74e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java @@ -567,7 +567,7 @@ private PollerFlux, WorkloadClassifierInner> this.client.getHttpPipeline(), WorkloadClassifierInner.class, WorkloadClassifierInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -964,7 +964,8 @@ private PollerFlux, Void> beginDeleteAsync( resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java index 852ef747a1e1..b59c3cc68156 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java @@ -494,7 +494,11 @@ private PollerFlux, WorkloadGroupInner> beginCrea return this .client .getLroResult( - mono, this.client.getHttpPipeline(), WorkloadGroupInner.class, WorkloadGroupInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + WorkloadGroupInner.class, + WorkloadGroupInner.class, + this.client.getContext()); } /** @@ -817,7 +821,8 @@ private PollerFlux, Void> beginDeleteAsync( deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java index 35c21fa8ff88..245a3780633a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java @@ -705,7 +705,7 @@ private PollerFlux, SqlPoolInner> beginCreateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, Context.NONE); + mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** @@ -972,7 +972,7 @@ private PollerFlux, Object> beginDeleteAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE); + mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } /** @@ -1410,7 +1410,7 @@ private PollerFlux, Object> beginPauseAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE); + mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } /** @@ -1666,7 +1666,7 @@ private PollerFlux, Object> beginResumeAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE); + mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java index d2e4c5bbe55d..51615d87c49b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java @@ -393,7 +393,7 @@ private PollerFlux, WorkspaceAadAdminInfo this.client.getHttpPipeline(), WorkspaceAadAdminInfoInner.class, WorkspaceAadAdminInfoInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -643,7 +643,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java index 1080deb357a4..237e6af234d9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java @@ -165,6 +165,10 @@ public Boolean azureADOnlyAuthentication() { return this.innerModel().azureADOnlyAuthentication(); } + public Boolean trustedServiceBypassEnabled() { + return this.innerModel().trustedServiceBypassEnabled(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -404,6 +408,11 @@ public WorkspaceImpl withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentica return this; } + public WorkspaceImpl withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled) { + this.innerModel().withTrustedServiceBypassEnabled(trustedServiceBypassEnabled); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java index ee055b9f2293..7b1bc2fc929e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java @@ -401,7 +401,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), ManagedIdentitySqlControlSettingsModelInner.class, ManagedIdentitySqlControlSettingsModelInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java index bde716cc32e7..a592dfb05f7d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java @@ -469,7 +469,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), ServerBlobAuditingPolicyInner.class, ServerBlobAuditingPolicyInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java index 79b7ae4d5f30..37f1b5017c25 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java @@ -484,7 +484,7 @@ private PollerFlux, EncryptionProtectorInne this.client.getHttpPipeline(), EncryptionProtectorInner.class, EncryptionProtectorInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -968,7 +968,8 @@ private PollerFlux, Void> beginRevalidateAsync( revalidateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java index 14c4675d8c80..bf7ba73c09f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java @@ -471,7 +471,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), ExtendedServerBlobAuditingPolicyInner.class, ExtendedServerBlobAuditingPolicyInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java index 4e4d606facea..18a2bd2f6bc9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java @@ -470,7 +470,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), ServerSecurityAlertPolicyInner.class, ServerSecurityAlertPolicyInner.class, - Context.NONE); + this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java index fc5c36f9bcbf..0f1d24a649d2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java @@ -394,7 +394,7 @@ private PollerFlux, WorkspaceAadAdminInfo this.client.getHttpPipeline(), WorkspaceAadAdminInfoInner.class, WorkspaceAadAdminInfoInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -644,7 +644,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java index f16b1f9610d3..6b416b751691 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java @@ -623,7 +623,11 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), WorkspaceInner.class, WorkspaceInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + WorkspaceInner.class, + WorkspaceInner.class, + this.client.getContext()); } /** @@ -888,7 +892,11 @@ private PollerFlux, WorkspaceInner> beginCreateOrUpda return this .client .getLroResult( - mono, this.client.getHttpPipeline(), WorkspaceInner.class, WorkspaceInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + WorkspaceInner.class, + WorkspaceInner.class, + this.client.getContext()); } /** @@ -1134,7 +1142,7 @@ private PollerFlux, Object> beginDeleteAsync(String resourceG return this .client .getLroResult( - mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE); + mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext()); } /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java index c4393b430b26..0598740e9e90 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java @@ -246,7 +246,6 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProvisioningState, DefinitionStages.WithAutoScale, - DefinitionStages.WithCreationDate, DefinitionStages.WithAutoPause, DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithSessionLevelPackagesEnabled, @@ -307,16 +306,6 @@ interface WithAutoScale { */ WithCreate withAutoScale(AutoScaleProperties autoScale); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify creationDate. */ - interface WithCreationDate { - /** - * Specifies the creationDate property: The time when the Big Data pool was created.. - * - * @param creationDate The time when the Big Data pool was created. - * @return the next definition stage. - */ - WithCreate withCreationDate(OffsetDateTime creationDate); - } /** The stage of the BigDataPoolResourceInfo definition allowing to specify autoPause. */ interface WithAutoPause { /** diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java index a5ab24c620ad..9f7c78ec32ee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java @@ -20,6 +20,18 @@ public final class DynamicExecutorAllocation { @JsonProperty(value = "enabled") private Boolean enabled; + /* + * The minimum number of executors alloted + */ + @JsonProperty(value = "minExecutors") + private Integer minExecutors; + + /* + * The maximum number of executors alloted + */ + @JsonProperty(value = "maxExecutors") + private Integer maxExecutors; + /** * Get the enabled property: Indicates whether Dynamic Executor Allocation is enabled or not. * @@ -40,6 +52,46 @@ public DynamicExecutorAllocation withEnabled(Boolean enabled) { return this; } + /** + * Get the minExecutors property: The minimum number of executors alloted. + * + * @return the minExecutors value. + */ + public Integer minExecutors() { + return this.minExecutors; + } + + /** + * Set the minExecutors property: The minimum number of executors alloted. + * + * @param minExecutors the minExecutors value to set. + * @return the DynamicExecutorAllocation object itself. + */ + public DynamicExecutorAllocation withMinExecutors(Integer minExecutors) { + this.minExecutors = minExecutors; + return this; + } + + /** + * Get the maxExecutors property: The maximum number of executors alloted. + * + * @return the maxExecutors value. + */ + public Integer maxExecutors() { + return this.maxExecutors; + } + + /** + * Set the maxExecutors property: The maximum number of executors alloted. + * + * @param maxExecutors the maxExecutors value to set. + * @return the DynamicExecutorAllocation object itself. + */ + public DynamicExecutorAllocation withMaxExecutors(Integer maxExecutors) { + this.maxExecutors = maxExecutors; + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java index 5b37e221aa02..aec60572febc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java @@ -164,6 +164,24 @@ public interface ExtendedServerBlobAuditingPolicy { */ Integer queueDelayMs(); + /** + * Gets the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @return the isDevopsAuditEnabled value. + */ + Boolean isDevopsAuditEnabled(); + /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ExtendedServerBlobAuditingPolicyInner object. * @@ -205,7 +223,8 @@ interface WithCreate DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithIsAzureMonitorTargetEnabled, - DefinitionStages.WithQueueDelayMs { + DefinitionStages.WithQueueDelayMs, + DefinitionStages.WithIsDevopsAuditEnabled { /** * Executes the create request. * @@ -449,6 +468,37 @@ interface WithQueueDelayMs { */ WithCreate withQueueDelayMs(Integer queueDelayMs); } + /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. */ + interface WithIsDevopsAuditEnabled { + /** + * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, + * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' + * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . + * + * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be + * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' + * diagnostic logs category on the master database should also be created. + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * @return the next definition stage. + */ + WithCreate withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); + } } /** * Begins update for the ExtendedServerBlobAuditingPolicy resource. @@ -468,7 +518,8 @@ interface Update UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs { + UpdateStages.WithQueueDelayMs, + UpdateStages.WithIsDevopsAuditEnabled { /** * Executes the update request. * @@ -709,6 +760,37 @@ interface WithQueueDelayMs { */ Update withQueueDelayMs(Integer queueDelayMs); } + /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. */ + interface WithIsDevopsAuditEnabled { + /** + * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, + * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' + * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . + * + * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be + * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' + * diagnostic logs category on the master database should also be created. + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * @return the next definition stage. + */ + Update withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); + } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java index cde0067bff53..a8b8bcb08312 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeManagedVirtualNetworkReference; import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeTypeProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; @@ -32,6 +33,12 @@ public final class ManagedIntegrationRuntime extends IntegrationRuntime { @JsonProperty(value = "typeProperties", required = true) private ManagedIntegrationRuntimeTypeProperties innerTypeProperties = new ManagedIntegrationRuntimeTypeProperties(); + /* + * Managed integration runtime managed virtual network. + */ + @JsonProperty(value = "managedVirtualNetwork") + private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork; + /** * Get the state property: Integration runtime state, only valid for managed dedicated integration runtime. * @@ -50,6 +57,15 @@ private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { return this.innerTypeProperties; } + /** + * Get the innerManagedVirtualNetwork property: Managed integration runtime managed virtual network. + * + * @return the innerManagedVirtualNetwork value. + */ + private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork() { + return this.innerManagedVirtualNetwork; + } + /** {@inheritDoc} */ @Override public ManagedIntegrationRuntime withDescription(String description) { @@ -103,6 +119,75 @@ public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProper return this; } + /** + * Get the referenceName property: The reference name of the managed virtual network. + * + * @return the referenceName value. + */ + public String referenceName() { + return this.innerManagedVirtualNetwork() == null ? null : this.innerManagedVirtualNetwork().referenceName(); + } + + /** + * Set the referenceName property: The reference name of the managed virtual network. + * + * @param referenceName the referenceName value to set. + * @return the ManagedIntegrationRuntime object itself. + */ + public ManagedIntegrationRuntime withReferenceName(String referenceName) { + if (this.innerManagedVirtualNetwork() == null) { + this.innerManagedVirtualNetwork = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); + } + this.innerManagedVirtualNetwork().withReferenceName(referenceName); + return this; + } + + /** + * Get the type property: The type of the managed virtual network. + * + * @return the type value. + */ + public String typeManagedVirtualNetworkType() { + return this.innerManagedVirtualNetwork() == null ? null : this.innerManagedVirtualNetwork().type(); + } + + /** + * Set the type property: The type of the managed virtual network. + * + * @param type the type value to set. + * @return the ManagedIntegrationRuntime object itself. + */ + public ManagedIntegrationRuntime withTypeManagedVirtualNetworkType(String type) { + if (this.innerManagedVirtualNetwork() == null) { + this.innerManagedVirtualNetwork = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); + } + this.innerManagedVirtualNetwork().withType(type); + return this; + } + + /** + * Get the id property: The id of the managed virtual network. + * + * @return the id value. + */ + public String id() { + return this.innerManagedVirtualNetwork() == null ? null : this.innerManagedVirtualNetwork().id(); + } + + /** + * Set the id property: The id of the managed virtual network. + * + * @param id the id value to set. + * @return the ManagedIntegrationRuntime object itself. + */ + public ManagedIntegrationRuntime withId(String id) { + if (this.innerManagedVirtualNetwork() == null) { + this.innerManagedVirtualNetwork = new ManagedIntegrationRuntimeManagedVirtualNetworkReference(); + } + this.innerManagedVirtualNetwork().withId(id); + return this; + } + /** * Validates the instance. * @@ -119,5 +204,8 @@ public void validate() { } else { innerTypeProperties().validate(); } + if (innerManagedVirtualNetwork() != null) { + innerManagedVirtualNetwork().validate(); + } } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java new file mode 100644 index 000000000000..b70fd89cef97 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for PrincipalsModificationKind. */ +public final class PrincipalsModificationKind extends ExpandableStringEnum { + /** Static value Union for PrincipalsModificationKind. */ + public static final PrincipalsModificationKind UNION = fromString("Union"); + + /** Static value Replace for PrincipalsModificationKind. */ + public static final PrincipalsModificationKind REPLACE = fromString("Replace"); + + /** Static value None for PrincipalsModificationKind. */ + public static final PrincipalsModificationKind NONE = fromString("None"); + + /** + * Creates or finds a PrincipalsModificationKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding PrincipalsModificationKind. + */ + @JsonCreator + public static PrincipalsModificationKind fromString(String name) { + return fromString(name, PrincipalsModificationKind.class); + } + + /** @return known PrincipalsModificationKind values. */ + public static Collection values() { + return values(PrincipalsModificationKind.class); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java new file mode 100644 index 000000000000..95f0e537c292 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; +import com.azure.resourcemanager.synapse.fluent.models.ReadOnlyFollowingDatabaseProperties; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.Duration; + +/** Class representing a read only following database. */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeName("ReadOnlyFollowing") +@Fluent +public final class ReadOnlyFollowingDatabase extends DatabaseInner { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ReadOnlyFollowingDatabase.class); + + /* + * The database properties. + */ + @JsonProperty(value = "properties") + private ReadOnlyFollowingDatabaseProperties innerProperties; + + /** + * Get the innerProperties property: The database properties. + * + * @return the innerProperties value. + */ + private ReadOnlyFollowingDatabaseProperties innerProperties() { + return this.innerProperties; + } + + /** {@inheritDoc} */ + @Override + public ReadOnlyFollowingDatabase withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ResourceProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries + * in TimeSpan. + * + * @return the softDeletePeriod value. + */ + public Duration softDeletePeriod() { + return this.innerProperties() == null ? null : this.innerProperties().softDeletePeriod(); + } + + /** + * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. + * + * @return the hotCachePeriod value. + */ + public Duration hotCachePeriod() { + return this.innerProperties() == null ? null : this.innerProperties().hotCachePeriod(); + } + + /** + * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. + * + * @param hotCachePeriod the hotCachePeriod value to set. + * @return the ReadOnlyFollowingDatabase object itself. + */ + public ReadOnlyFollowingDatabase withHotCachePeriod(Duration hotCachePeriod) { + if (this.innerProperties() == null) { + this.innerProperties = new ReadOnlyFollowingDatabaseProperties(); + } + this.innerProperties().withHotCachePeriod(hotCachePeriod); + return this; + } + + /** + * Get the statistics property: The statistics of the database. + * + * @return the statistics value. + */ + public DatabaseStatistics statistics() { + return this.innerProperties() == null ? null : this.innerProperties().statistics(); + } + + /** + * Get the leaderClusterResourceId property: The name of the leader cluster. + * + * @return the leaderClusterResourceId value. + */ + public String leaderClusterResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().leaderClusterResourceId(); + } + + /** + * Get the attachedDatabaseConfigurationName property: The name of the attached database configuration cluster. + * + * @return the attachedDatabaseConfigurationName value. + */ + public String attachedDatabaseConfigurationName() { + return this.innerProperties() == null ? null : this.innerProperties().attachedDatabaseConfigurationName(); + } + + /** + * Get the principalsModificationKind property: The principals modification kind of the database. + * + * @return the principalsModificationKind value. + */ + public PrincipalsModificationKind principalsModificationKind() { + return this.innerProperties() == null ? null : this.innerProperties().principalsModificationKind(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (innerProperties() != null) { + innerProperties().validate(); + } + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java index 1da6651a52c7..f230a60f666a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java @@ -227,6 +227,52 @@ public OffsetDateTime autoUpdateEta() { return this.innerTypeProperties() == null ? null : this.innerTypeProperties().autoUpdateEta(); } + /** + * Get the serviceRegion property: The service region of the integration runtime. + * + * @return the serviceRegion value. + */ + public String serviceRegion() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().serviceRegion(); + } + + /** + * Set the serviceRegion property: The service region of the integration runtime. + * + * @param serviceRegion the serviceRegion value to set. + * @return the SelfHostedIntegrationRuntimeStatus object itself. + */ + public SelfHostedIntegrationRuntimeStatus withServiceRegion(String serviceRegion) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); + } + this.innerTypeProperties().withServiceRegion(serviceRegion); + return this; + } + + /** + * Get the newerVersions property: The newer versions on download center. + * + * @return the newerVersions value. + */ + public List newerVersions() { + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().newerVersions(); + } + + /** + * Set the newerVersions property: The newer versions on download center. + * + * @param newerVersions the newerVersions value to set. + * @return the SelfHostedIntegrationRuntimeStatus object itself. + */ + public SelfHostedIntegrationRuntimeStatus withNewerVersions(List newerVersions) { + if (this.innerTypeProperties() == null) { + this.innerTypeProperties = new SelfHostedIntegrationRuntimeStatusTypeProperties(); + } + this.innerTypeProperties().withNewerVersions(newerVersions); + return this; + } + /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java index 8b73b870aec5..677803058b49 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicy.java @@ -157,6 +157,24 @@ public interface ServerBlobAuditingPolicy { */ Integer queueDelayMs(); + /** + * Gets the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or + * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * @return the isDevopsAuditEnabled value. + */ + Boolean isDevopsAuditEnabled(); + /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ServerBlobAuditingPolicyInner object. * @@ -197,7 +215,8 @@ interface WithCreate DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithIsAzureMonitorTargetEnabled, - DefinitionStages.WithQueueDelayMs { + DefinitionStages.WithQueueDelayMs, + DefinitionStages.WithIsDevopsAuditEnabled { /** * Executes the create request. * @@ -424,6 +443,37 @@ interface WithQueueDelayMs { */ WithCreate withQueueDelayMs(Integer queueDelayMs); } + /** The stage of the ServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. */ + interface WithIsDevopsAuditEnabled { + /** + * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, + * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' + * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . + * + * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be + * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' + * diagnostic logs category on the master database should also be created. + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * @return the next definition stage. + */ + WithCreate withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); + } } /** * Begins update for the ServerBlobAuditingPolicy resource. @@ -442,7 +492,8 @@ interface Update UpdateStages.WithStorageAccountSubscriptionId, UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs { + UpdateStages.WithQueueDelayMs, + UpdateStages.WithIsDevopsAuditEnabled { /** * Executes the update request. * @@ -671,6 +722,37 @@ interface WithQueueDelayMs { */ Update withQueueDelayMs(Integer queueDelayMs); } + /** The stage of the ServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. */ + interface WithIsDevopsAuditEnabled { + /** + * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, + * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' + * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . + * + * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be + * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', + * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' + * diagnostic logs category on the master database should also be created. + *

Diagnostic Settings URI format: PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + *

For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings + * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * @return the next definition stage. + */ + Update withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); + } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java index f2b2f902c63b..4f3bbc8d1d9c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java @@ -218,10 +218,8 @@ interface WithCreate DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithProvisioningState, - DefinitionStages.WithStatus, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithCreateMode, - DefinitionStages.WithCreationDate, DefinitionStages.WithStorageAccountType, DefinitionStages.WithSourceDatabaseDeletionDate { /** @@ -309,16 +307,6 @@ interface WithProvisioningState { */ WithCreate withProvisioningState(String provisioningState); } - /** The stage of the SqlPool definition allowing to specify status. */ - interface WithStatus { - /** - * Specifies the status property: Resource status. - * - * @param status Resource status. - * @return the next definition stage. - */ - WithCreate withStatus(String status); - } /** The stage of the SqlPool definition allowing to specify restorePointInTime. */ interface WithRestorePointInTime { /** @@ -360,16 +348,6 @@ interface WithCreateMode { */ WithCreate withCreateMode(CreateMode createMode); } - /** The stage of the SqlPool definition allowing to specify creationDate. */ - interface WithCreationDate { - /** - * Specifies the creationDate property: Date the SQL pool was created. - * - * @param creationDate Date the SQL pool was created. - * @return the next definition stage. - */ - WithCreate withCreationDate(OffsetDateTime creationDate); - } /** The stage of the SqlPool definition allowing to specify storageAccountType. */ interface WithStorageAccountType { /** @@ -408,12 +386,9 @@ interface Update UpdateStages.WithSourceDatabaseId, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithProvisioningState, - UpdateStages.WithStatus, UpdateStages.WithRestorePointInTime, UpdateStages.WithCreateMode, - UpdateStages.WithCreationDate, - UpdateStages.WithStorageAccountType, - UpdateStages.WithSourceDatabaseDeletionDate { + UpdateStages.WithStorageAccountType { /** * Executes the update request. * @@ -501,16 +476,6 @@ interface WithProvisioningState { */ Update withProvisioningState(String provisioningState); } - /** The stage of the SqlPool update allowing to specify status. */ - interface WithStatus { - /** - * Specifies the status property: Resource status. - * - * @param status Resource status. - * @return the next definition stage. - */ - Update withStatus(String status); - } /** The stage of the SqlPool update allowing to specify restorePointInTime. */ interface WithRestorePointInTime { /** @@ -552,16 +517,6 @@ interface WithCreateMode { */ Update withCreateMode(CreateMode createMode); } - /** The stage of the SqlPool update allowing to specify creationDate. */ - interface WithCreationDate { - /** - * Specifies the creationDate property: Date the SQL pool was created. - * - * @param creationDate Date the SQL pool was created. - * @return the next definition stage. - */ - Update withCreationDate(OffsetDateTime creationDate); - } /** The stage of the SqlPool update allowing to specify storageAccountType. */ interface WithStorageAccountType { /** @@ -573,16 +528,6 @@ interface WithStorageAccountType { */ Update withStorageAccountType(StorageAccountType storageAccountType); } - /** The stage of the SqlPool update allowing to specify sourceDatabaseDeletionDate. */ - interface WithSourceDatabaseDeletionDate { - /** - * Specifies the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * - * @param sourceDatabaseDeletionDate Specifies the time that the sql pool was deleted. - * @return the next definition stage. - */ - Update withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate); - } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java index b8d3fa720134..534393e92ad1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java @@ -236,20 +236,6 @@ public String status() { return this.innerProperties() == null ? null : this.innerProperties().status(); } - /** - * Set the status property: Resource status. - * - * @param status the status value to set. - * @return the SqlPoolPatchInfo object itself. - */ - public SqlPoolPatchInfo withStatus(String status) { - if (this.innerProperties() == null) { - this.innerProperties = new SqlPoolResourceProperties(); - } - this.innerProperties().withStatus(status); - return this; - } - /** * Get the restorePointInTime property: Snapshot time to restore. * @@ -329,20 +315,6 @@ public OffsetDateTime creationDate() { return this.innerProperties() == null ? null : this.innerProperties().creationDate(); } - /** - * Set the creationDate property: Date the SQL pool was created. - * - * @param creationDate the creationDate value to set. - * @return the SqlPoolPatchInfo object itself. - */ - public SqlPoolPatchInfo withCreationDate(OffsetDateTime creationDate) { - if (this.innerProperties() == null) { - this.innerProperties = new SqlPoolResourceProperties(); - } - this.innerProperties().withCreationDate(creationDate); - return this; - } - /** * Get the storageAccountType property: The storage account type used to store backups for this sql pool. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java index 3c65e31bae32..05d366977610 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java @@ -16,9 +16,6 @@ public final class StorageAccountType extends ExpandableStringEnum