diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/CHANGELOG.md b/sdk/postgresql/azure-resourcemanager-postgresql/CHANGELOG.md
index 2bad3ada43c5..038cb9f99fc8 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/CHANGELOG.md
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2021-06-04)
+- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0 (2021-04-09)
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/README.md b/sdk/postgresql/azure-resourcemanager-postgresql/README.md
index 5b615eaf007a..ca38b78130a0 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/README.md
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager PostgreSql client library for Java.
-This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2020-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-postgresql
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,8 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/pom.xml b/sdk/postgresql/azure-resourcemanager-postgresql/pom.xml
index 2bfb822354ec..253e96fbfc75 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/pom.xml
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/pom.xml
@@ -1,67 +1,86 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-postgresql
- 1.1.0-beta.1
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-postgresql
+ 1.1.0-beta.1
+ jar
- Microsoft Azure SDK for PostgreSql Management
- This package contains Microsoft Azure SDK for PostgreSql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2020-01-01.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for PostgreSql Management
+ This package contains Microsoft Azure SDK for PostgreSql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2021-06-01.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
-
-
-
-
- com.azure
- azure-core
- 1.16.0
-
-
- com.azure
- azure-core-management
- 1.2.2
-
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.5
-
- true
-
-
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.16.0
+
+
+ com.azure
+ azure-core-management
+ 1.2.2
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/PostgreSqlManager.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/PostgreSqlManager.java
index 9539bd347b92..69afb12ad379 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/PostgreSqlManager.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/PostgreSqlManager.java
@@ -25,39 +25,21 @@
import com.azure.resourcemanager.postgresql.implementation.ConfigurationsImpl;
import com.azure.resourcemanager.postgresql.implementation.DatabasesImpl;
import com.azure.resourcemanager.postgresql.implementation.FirewallRulesImpl;
-import com.azure.resourcemanager.postgresql.implementation.LocationBasedPerformanceTiersImpl;
-import com.azure.resourcemanager.postgresql.implementation.LogFilesImpl;
+import com.azure.resourcemanager.postgresql.implementation.GetPrivateDnsZoneSuffixesImpl;
+import com.azure.resourcemanager.postgresql.implementation.LocationBasedCapabilitiesImpl;
import com.azure.resourcemanager.postgresql.implementation.OperationsImpl;
import com.azure.resourcemanager.postgresql.implementation.PostgreSqlManagementClientBuilder;
-import com.azure.resourcemanager.postgresql.implementation.PrivateEndpointConnectionsImpl;
-import com.azure.resourcemanager.postgresql.implementation.PrivateLinkResourcesImpl;
-import com.azure.resourcemanager.postgresql.implementation.RecoverableServersImpl;
-import com.azure.resourcemanager.postgresql.implementation.ReplicasImpl;
-import com.azure.resourcemanager.postgresql.implementation.ServerAdministratorsImpl;
-import com.azure.resourcemanager.postgresql.implementation.ServerBasedPerformanceTiersImpl;
-import com.azure.resourcemanager.postgresql.implementation.ServerKeysImpl;
-import com.azure.resourcemanager.postgresql.implementation.ServerParametersImpl;
-import com.azure.resourcemanager.postgresql.implementation.ServerSecurityAlertPoliciesImpl;
import com.azure.resourcemanager.postgresql.implementation.ServersImpl;
-import com.azure.resourcemanager.postgresql.implementation.VirtualNetworkRulesImpl;
+import com.azure.resourcemanager.postgresql.implementation.VirtualNetworkSubnetUsagesImpl;
import com.azure.resourcemanager.postgresql.models.CheckNameAvailabilities;
import com.azure.resourcemanager.postgresql.models.Configurations;
import com.azure.resourcemanager.postgresql.models.Databases;
import com.azure.resourcemanager.postgresql.models.FirewallRules;
-import com.azure.resourcemanager.postgresql.models.LocationBasedPerformanceTiers;
-import com.azure.resourcemanager.postgresql.models.LogFiles;
+import com.azure.resourcemanager.postgresql.models.GetPrivateDnsZoneSuffixes;
+import com.azure.resourcemanager.postgresql.models.LocationBasedCapabilities;
import com.azure.resourcemanager.postgresql.models.Operations;
-import com.azure.resourcemanager.postgresql.models.PrivateEndpointConnections;
-import com.azure.resourcemanager.postgresql.models.PrivateLinkResources;
-import com.azure.resourcemanager.postgresql.models.RecoverableServers;
-import com.azure.resourcemanager.postgresql.models.Replicas;
-import com.azure.resourcemanager.postgresql.models.ServerAdministrators;
-import com.azure.resourcemanager.postgresql.models.ServerBasedPerformanceTiers;
-import com.azure.resourcemanager.postgresql.models.ServerKeys;
-import com.azure.resourcemanager.postgresql.models.ServerParameters;
-import com.azure.resourcemanager.postgresql.models.ServerSecurityAlertPolicies;
import com.azure.resourcemanager.postgresql.models.Servers;
-import com.azure.resourcemanager.postgresql.models.VirtualNetworkRules;
+import com.azure.resourcemanager.postgresql.models.VirtualNetworkSubnetUsages;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -72,39 +54,21 @@
public final class PostgreSqlManager {
private Servers servers;
- private Replicas replicas;
-
private FirewallRules firewallRules;
- private VirtualNetworkRules virtualNetworkRules;
-
- private Databases databases;
-
private Configurations configurations;
- private ServerParameters serverParameters;
-
- private LogFiles logFiles;
-
- private ServerAdministrators serverAdministrators;
-
- private RecoverableServers recoverableServers;
-
- private ServerBasedPerformanceTiers serverBasedPerformanceTiers;
-
- private LocationBasedPerformanceTiers locationBasedPerformanceTiers;
-
private CheckNameAvailabilities checkNameAvailabilities;
- private Operations operations;
+ private LocationBasedCapabilities locationBasedCapabilities;
- private ServerSecurityAlertPolicies serverSecurityAlertPolicies;
+ private VirtualNetworkSubnetUsages virtualNetworkSubnetUsages;
- private PrivateEndpointConnections privateEndpointConnections;
+ private Operations operations;
- private PrivateLinkResources privateLinkResources;
+ private Databases databases;
- private ServerKeys serverKeys;
+ private GetPrivateDnsZoneSuffixes getPrivateDnsZoneSuffixes;
private final PostgreSqlManagementClient clientObject;
@@ -230,7 +194,7 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.postgresql")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -277,14 +241,6 @@ public Servers servers() {
return servers;
}
- /** @return Resource collection API of Replicas. */
- public Replicas replicas() {
- if (this.replicas == null) {
- this.replicas = new ReplicasImpl(clientObject.getReplicas(), this);
- }
- return replicas;
- }
-
/** @return Resource collection API of FirewallRules. */
public FirewallRules firewallRules() {
if (this.firewallRules == null) {
@@ -293,22 +249,6 @@ public FirewallRules firewallRules() {
return firewallRules;
}
- /** @return Resource collection API of VirtualNetworkRules. */
- public VirtualNetworkRules virtualNetworkRules() {
- if (this.virtualNetworkRules == null) {
- this.virtualNetworkRules = new VirtualNetworkRulesImpl(clientObject.getVirtualNetworkRules(), this);
- }
- return virtualNetworkRules;
- }
-
- /** @return Resource collection API of Databases. */
- public Databases databases() {
- if (this.databases == null) {
- this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
- }
- return databases;
- }
-
/** @return Resource collection API of Configurations. */
public Configurations configurations() {
if (this.configurations == null) {
@@ -317,56 +257,6 @@ public Configurations configurations() {
return configurations;
}
- /** @return Resource collection API of ServerParameters. */
- public ServerParameters serverParameters() {
- if (this.serverParameters == null) {
- this.serverParameters = new ServerParametersImpl(clientObject.getServerParameters(), this);
- }
- return serverParameters;
- }
-
- /** @return Resource collection API of LogFiles. */
- public LogFiles logFiles() {
- if (this.logFiles == null) {
- this.logFiles = new LogFilesImpl(clientObject.getLogFiles(), this);
- }
- return logFiles;
- }
-
- /** @return Resource collection API of ServerAdministrators. */
- public ServerAdministrators serverAdministrators() {
- if (this.serverAdministrators == null) {
- this.serverAdministrators = new ServerAdministratorsImpl(clientObject.getServerAdministrators(), this);
- }
- return serverAdministrators;
- }
-
- /** @return Resource collection API of RecoverableServers. */
- public RecoverableServers recoverableServers() {
- if (this.recoverableServers == null) {
- this.recoverableServers = new RecoverableServersImpl(clientObject.getRecoverableServers(), this);
- }
- return recoverableServers;
- }
-
- /** @return Resource collection API of ServerBasedPerformanceTiers. */
- public ServerBasedPerformanceTiers serverBasedPerformanceTiers() {
- if (this.serverBasedPerformanceTiers == null) {
- this.serverBasedPerformanceTiers =
- new ServerBasedPerformanceTiersImpl(clientObject.getServerBasedPerformanceTiers(), this);
- }
- return serverBasedPerformanceTiers;
- }
-
- /** @return Resource collection API of LocationBasedPerformanceTiers. */
- public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
- if (this.locationBasedPerformanceTiers == null) {
- this.locationBasedPerformanceTiers =
- new LocationBasedPerformanceTiersImpl(clientObject.getLocationBasedPerformanceTiers(), this);
- }
- return locationBasedPerformanceTiers;
- }
-
/** @return Resource collection API of CheckNameAvailabilities. */
public CheckNameAvailabilities checkNameAvailabilities() {
if (this.checkNameAvailabilities == null) {
@@ -376,46 +266,47 @@ public CheckNameAvailabilities checkNameAvailabilities() {
return checkNameAvailabilities;
}
- /** @return Resource collection API of Operations. */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ /** @return Resource collection API of LocationBasedCapabilities. */
+ public LocationBasedCapabilities locationBasedCapabilities() {
+ if (this.locationBasedCapabilities == null) {
+ this.locationBasedCapabilities =
+ new LocationBasedCapabilitiesImpl(clientObject.getLocationBasedCapabilities(), this);
}
- return operations;
+ return locationBasedCapabilities;
}
- /** @return Resource collection API of ServerSecurityAlertPolicies. */
- public ServerSecurityAlertPolicies serverSecurityAlertPolicies() {
- if (this.serverSecurityAlertPolicies == null) {
- this.serverSecurityAlertPolicies =
- new ServerSecurityAlertPoliciesImpl(clientObject.getServerSecurityAlertPolicies(), this);
+ /** @return Resource collection API of VirtualNetworkSubnetUsages. */
+ public VirtualNetworkSubnetUsages virtualNetworkSubnetUsages() {
+ if (this.virtualNetworkSubnetUsages == null) {
+ this.virtualNetworkSubnetUsages =
+ new VirtualNetworkSubnetUsagesImpl(clientObject.getVirtualNetworkSubnetUsages(), this);
}
- return serverSecurityAlertPolicies;
+ return virtualNetworkSubnetUsages;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return privateEndpointConnections;
+ return operations;
}
- /** @return Resource collection API of PrivateLinkResources. */
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ /** @return Resource collection API of Databases. */
+ public Databases databases() {
+ if (this.databases == null) {
+ this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
}
- return privateLinkResources;
+ return databases;
}
- /** @return Resource collection API of ServerKeys. */
- public ServerKeys serverKeys() {
- if (this.serverKeys == null) {
- this.serverKeys = new ServerKeysImpl(clientObject.getServerKeys(), this);
+ /** @return Resource collection API of GetPrivateDnsZoneSuffixes. */
+ public GetPrivateDnsZoneSuffixes getPrivateDnsZoneSuffixes() {
+ if (this.getPrivateDnsZoneSuffixes == null) {
+ this.getPrivateDnsZoneSuffixes =
+ new GetPrivateDnsZoneSuffixesImpl(clientObject.getGetPrivateDnsZoneSuffixes(), this);
}
- return serverKeys;
+ return getPrivateDnsZoneSuffixes;
}
/**
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ConfigurationsClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ConfigurationsClient.java
index 56890225c56c..e466d4eba1b6 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ConfigurationsClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ConfigurationsClient.java
@@ -15,6 +15,63 @@
/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
public interface ConfigurationsClient {
+ /**
+ * List all the configurations in a given server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
+
+ /**
+ * List all the configurations in a given server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Gets information about a configuration of server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about a configuration of server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationInner get(String resourceGroupName, String serverName, String configurationName);
+
+ /**
+ * Gets information about a configuration of server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about a configuration of server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String configurationName, Context context);
+
/**
* Updates a configuration of a server.
*
@@ -28,7 +85,7 @@ public interface ConfigurationsClient {
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ConfigurationInner> beginCreateOrUpdate(
+ SyncPoller, ConfigurationInner> beginUpdate(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
/**
@@ -45,7 +102,7 @@ SyncPoller, ConfigurationInner> beginCreateOrUpda
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ConfigurationInner> beginCreateOrUpdate(
+ SyncPoller, ConfigurationInner> beginUpdate(
String resourceGroupName,
String serverName,
String configurationName,
@@ -65,7 +122,7 @@ SyncPoller, ConfigurationInner> beginCreateOrUpda
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner createOrUpdate(
+ ConfigurationInner update(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
/**
@@ -82,7 +139,7 @@ ConfigurationInner createOrUpdate(
* @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner createOrUpdate(
+ ConfigurationInner update(
String resourceGroupName,
String serverName,
String configurationName,
@@ -90,59 +147,76 @@ ConfigurationInner createOrUpdate(
Context context);
/**
- * Gets information about a configuration of server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a configuration of server.
+ * @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner get(String resourceGroupName, String serverName, String configurationName);
+ SyncPoller, ConfigurationInner> beginPut(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
/**
- * Gets information about a configuration of server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a configuration of server.
+ * @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, String configurationName, Context context);
+ SyncPoller, ConfigurationInner> beginPut(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context);
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationInner put(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationInner put(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context);
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/DatabasesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/DatabasesClient.java
index 63de99a3a435..0e9976a01ebc 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/DatabasesClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/DatabasesClient.java
@@ -28,7 +28,7 @@ public interface DatabasesClient {
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, DatabaseInner> beginCreateOrUpdate(
+ SyncPoller, DatabaseInner> beginCreate(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters);
/**
@@ -45,7 +45,7 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, DatabaseInner> beginCreateOrUpdate(
+ SyncPoller, DatabaseInner> beginCreate(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context);
/**
@@ -61,8 +61,7 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatabaseInner createOrUpdate(
- String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters);
+ DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters);
/**
* Creates a new database or updates an existing database.
@@ -78,7 +77,7 @@ DatabaseInner createOrUpdate(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatabaseInner createOrUpdate(
+ DatabaseInner create(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context);
/**
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/FirewallRulesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/FirewallRulesClient.java
index 0d61b232b077..abfeebab733f 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/FirewallRulesClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/FirewallRulesClient.java
@@ -90,7 +90,7 @@ FirewallRuleInner createOrUpdate(
Context context);
/**
- * Deletes a server firewall rule.
+ * Deletes a PostgreSQL server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -105,7 +105,7 @@ SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String firewallRuleName);
/**
- * Deletes a server firewall rule.
+ * Deletes a PostgreSQL server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -121,7 +121,7 @@ SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String firewallRuleName, Context context);
/**
- * Deletes a server firewall rule.
+ * Deletes a PostgreSQL server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -134,7 +134,7 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String serverName, String firewallRuleName);
/**
- * Deletes a server firewall rule.
+ * Deletes a PostgreSQL server firewall rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -148,7 +148,7 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String serverName, String firewallRuleName, Context context);
/**
- * Gets information about a server firewall rule.
+ * List all the firewall rules in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -156,13 +156,13 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a server firewall rule.
+ * @return represents a server firewall rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FirewallRuleInner get(String resourceGroupName, String serverName, String firewallRuleName);
/**
- * Gets information about a server firewall rule.
+ * List all the firewall rules in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -171,14 +171,14 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a server firewall rule.
+ * @return represents a server firewall rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String serverName, String firewallRuleName, Context context);
/**
- * List all the firewall rules in a given server.
+ * List all the firewall rules in a given PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -191,7 +191,7 @@ Response getWithResponse(
PagedIterable listByServer(String resourceGroupName, String serverName);
/**
- * List all the firewall rules in a given server.
+ * List all the firewall rules in a given PostgreSQL server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/RecoverableServersClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/GetPrivateDnsZoneSuffixesClient.java
similarity index 55%
rename from sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/RecoverableServersClient.java
rename to sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/GetPrivateDnsZoneSuffixesClient.java
index 6df0c58db1e3..ebca51b7f46a 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/RecoverableServersClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/GetPrivateDnsZoneSuffixesClient.java
@@ -8,35 +8,28 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresql.fluent.models.RecoverableServerResourceInner;
-/** An instance of this class provides access to all the operations defined in RecoverableServersClient. */
-public interface RecoverableServersClient {
+/** An instance of this class provides access to all the operations defined in GetPrivateDnsZoneSuffixesClient. */
+public interface GetPrivateDnsZoneSuffixesClient {
/**
- * Gets a recoverable PostgreSQL Server.
+ * Get private DNS zone suffix in the cloud.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recoverable PostgreSQL Server.
+ * @return private DNS zone suffix in the cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RecoverableServerResourceInner get(String resourceGroupName, String serverName);
+ String execute();
/**
- * Gets a recoverable PostgreSQL Server.
+ * Get private DNS zone suffix in the cloud.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recoverable PostgreSQL Server.
+ * @return private DNS zone suffix in the cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, Context context);
+ Response executeWithResponse(Context context);
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedPerformanceTiersClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedCapabilitiesClient.java
similarity index 68%
rename from sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedPerformanceTiersClient.java
rename to sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedCapabilitiesClient.java
index 6fd31abd4e3c..21f10c32198d 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedPerformanceTiersClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedCapabilitiesClient.java
@@ -8,32 +8,32 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresql.fluent.models.PerformanceTierPropertiesInner;
+import com.azure.resourcemanager.postgresql.fluent.models.CapabilityPropertiesInner;
-/** An instance of this class provides access to all the operations defined in LocationBasedPerformanceTiersClient. */
-public interface LocationBasedPerformanceTiersClient {
+/** An instance of this class provides access to all the operations defined in LocationBasedCapabilitiesClient. */
+public interface LocationBasedCapabilitiesClient {
/**
- * List all the performance tiers at specified location in a given subscription.
+ * Get capabilities at specified location in a given subscription.
*
* @param locationName The name of the location.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
+ * @return capabilities at specified location in a given subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String locationName);
+ PagedIterable execute(String locationName);
/**
- * List all the performance tiers at specified location in a given subscription.
+ * Get capabilities at specified location in a given subscription.
*
* @param locationName The name of the location.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
+ * @return capabilities at specified location in a given subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String locationName, Context context);
+ PagedIterable execute(String locationName, Context context);
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LogFilesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LogFilesClient.java
deleted file mode 100644
index 3e44299a7a46..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LogFilesClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresql.fluent.models.LogFileInner;
-
-/** An instance of this class provides access to all the operations defined in LogFilesClient. */
-public interface LogFilesClient {
- /**
- * List all the log files in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of log files.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * List all the log files in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of log files.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PostgreSqlManagementClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PostgreSqlManagementClient.java
index 3d7521329e2d..0033b7e1673a 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PostgreSqlManagementClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PostgreSqlManagementClient.java
@@ -23,6 +23,13 @@ public interface PostgreSqlManagementClient {
*/
String getEndpoint();
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -44,13 +51,6 @@ public interface PostgreSqlManagementClient {
*/
ServersClient getServers();
- /**
- * Gets the ReplicasClient object to access its operations.
- *
- * @return the ReplicasClient object.
- */
- ReplicasClient getReplicas();
-
/**
* Gets the FirewallRulesClient object to access its operations.
*
@@ -58,20 +58,6 @@ public interface PostgreSqlManagementClient {
*/
FirewallRulesClient getFirewallRules();
- /**
- * Gets the VirtualNetworkRulesClient object to access its operations.
- *
- * @return the VirtualNetworkRulesClient object.
- */
- VirtualNetworkRulesClient getVirtualNetworkRules();
-
- /**
- * Gets the DatabasesClient object to access its operations.
- *
- * @return the DatabasesClient object.
- */
- DatabasesClient getDatabases();
-
/**
* Gets the ConfigurationsClient object to access its operations.
*
@@ -79,48 +65,6 @@ public interface PostgreSqlManagementClient {
*/
ConfigurationsClient getConfigurations();
- /**
- * Gets the ServerParametersClient object to access its operations.
- *
- * @return the ServerParametersClient object.
- */
- ServerParametersClient getServerParameters();
-
- /**
- * Gets the LogFilesClient object to access its operations.
- *
- * @return the LogFilesClient object.
- */
- LogFilesClient getLogFiles();
-
- /**
- * Gets the ServerAdministratorsClient object to access its operations.
- *
- * @return the ServerAdministratorsClient object.
- */
- ServerAdministratorsClient getServerAdministrators();
-
- /**
- * Gets the RecoverableServersClient object to access its operations.
- *
- * @return the RecoverableServersClient object.
- */
- RecoverableServersClient getRecoverableServers();
-
- /**
- * Gets the ServerBasedPerformanceTiersClient object to access its operations.
- *
- * @return the ServerBasedPerformanceTiersClient object.
- */
- ServerBasedPerformanceTiersClient getServerBasedPerformanceTiers();
-
- /**
- * Gets the LocationBasedPerformanceTiersClient object to access its operations.
- *
- * @return the LocationBasedPerformanceTiersClient object.
- */
- LocationBasedPerformanceTiersClient getLocationBasedPerformanceTiers();
-
/**
* Gets the CheckNameAvailabilitiesClient object to access its operations.
*
@@ -129,37 +73,37 @@ public interface PostgreSqlManagementClient {
CheckNameAvailabilitiesClient getCheckNameAvailabilities();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the LocationBasedCapabilitiesClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the LocationBasedCapabilitiesClient object.
*/
- OperationsClient getOperations();
+ LocationBasedCapabilitiesClient getLocationBasedCapabilities();
/**
- * Gets the ServerSecurityAlertPoliciesClient object to access its operations.
+ * Gets the VirtualNetworkSubnetUsagesClient object to access its operations.
*
- * @return the ServerSecurityAlertPoliciesClient object.
+ * @return the VirtualNetworkSubnetUsagesClient object.
*/
- ServerSecurityAlertPoliciesClient getServerSecurityAlertPolicies();
+ VirtualNetworkSubnetUsagesClient getVirtualNetworkSubnetUsages();
/**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the PrivateEndpointConnectionsClient object.
+ * @return the OperationsClient object.
*/
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+ OperationsClient getOperations();
/**
- * Gets the PrivateLinkResourcesClient object to access its operations.
+ * Gets the DatabasesClient object to access its operations.
*
- * @return the PrivateLinkResourcesClient object.
+ * @return the DatabasesClient object.
*/
- PrivateLinkResourcesClient getPrivateLinkResources();
+ DatabasesClient getDatabases();
/**
- * Gets the ServerKeysClient object to access its operations.
+ * Gets the GetPrivateDnsZoneSuffixesClient object to access its operations.
*
- * @return the ServerKeysClient object.
+ * @return the GetPrivateDnsZoneSuffixesClient object.
*/
- ServerKeysClient getServerKeys();
+ GetPrivateDnsZoneSuffixesClient getGetPrivateDnsZoneSuffixes();
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PrivateEndpointConnectionsClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PrivateEndpointConnectionsClient.java
deleted file mode 100644
index d07da5347aef..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PrivateEndpointConnectionsClient.java
+++ /dev/null
@@ -1,289 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.postgresql.fluent.models.PrivateEndpointConnectionInner;
-import com.azure.resourcemanager.postgresql.models.TagsObject;
-
-/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
-public interface PrivateEndpointConnectionsClient {
- /**
- * Gets a private endpoint connection.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String serverName, String privateEndpointConnectionName);
-
- /**
- * Gets a private endpoint connection.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
-
- /**
- * Approve or reject a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters A private endpoint connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters);
-
- /**
- * Approve or reject a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters A private endpoint connection.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- Context context);
-
- /**
- * Approve or reject a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters A private endpoint connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters);
-
- /**
- * Approve or reject a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters A private endpoint connection.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- Context context);
-
- /**
- * Deletes a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, String privateEndpointConnectionName);
-
- /**
- * Deletes a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
-
- /**
- * Deletes a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, String privateEndpointConnectionName);
-
- /**
- * Deletes a private endpoint connection with a given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
-
- /**
- * Updates private endpoint connection with the specified tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
- String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
-
- /**
- * Updates private endpoint connection with the specified tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
- String resourceGroupName,
- String serverName,
- String privateEndpointConnectionName,
- TagsObject parameters,
- Context context);
-
- /**
- * Updates private endpoint connection with the specified tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner updateTags(
- String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
-
- /**
- * Updates private endpoint connection with the specified tags.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
- * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner updateTags(
- String resourceGroupName,
- String serverName,
- String privateEndpointConnectionName,
- TagsObject parameters,
- Context context);
-
- /**
- * Gets all private endpoint connections on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private endpoint connections on a server.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * Gets all private endpoint connections on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private endpoint connections on a server.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(
- String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PrivateLinkResourcesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PrivateLinkResourcesClient.java
deleted file mode 100644
index c2855b504bb4..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/PrivateLinkResourcesClient.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresql.fluent.models.PrivateLinkResourceInner;
-
-/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
-public interface PrivateLinkResourcesClient {
- /**
- * Gets the private link resources for PostgreSQL server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources for PostgreSQL server.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * Gets the private link resources for PostgreSQL server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private link resources for PostgreSQL server.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-
- /**
- * Gets a private link resource for PostgreSQL server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param groupName The name of the private link resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private link resource for PostgreSQL server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String serverName, String groupName);
-
- /**
- * Gets a private link resource for PostgreSQL server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param groupName The name of the private link resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private link resource for PostgreSQL server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, String groupName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ReplicasClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ReplicasClient.java
deleted file mode 100644
index 0899459cb2a3..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ReplicasClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresql.fluent.models.ServerInner;
-
-/** An instance of this class provides access to all the operations defined in ReplicasClient. */
-public interface ReplicasClient {
- /**
- * List all the replicas for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * List all the replicas for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerAdministratorsClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerAdministratorsClient.java
deleted file mode 100644
index 29e757a11c1b..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerAdministratorsClient.java
+++ /dev/null
@@ -1,190 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.postgresql.fluent.models.ServerAdministratorResourceInner;
-
-/** An instance of this class provides access to all the operations defined in ServerAdministratorsClient. */
-public interface ServerAdministratorsClient {
- /**
- * Gets information about a AAD server administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a AAD server administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerAdministratorResourceInner get(String resourceGroupName, String serverName);
-
- /**
- * Gets information about a AAD server administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a AAD server administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, Context context);
-
- /**
- * Creates or update active directory administrator on an existing server. The update action will overwrite the
- * existing administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param properties The required parameters for creating or updating an AAD server administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a and external administrator to be created.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServerAdministratorResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, ServerAdministratorResourceInner properties);
-
- /**
- * Creates or update active directory administrator on an existing server. The update action will overwrite the
- * existing administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param properties The required parameters for creating or updating an AAD server administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a and external administrator to be created.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServerAdministratorResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, ServerAdministratorResourceInner properties, Context context);
-
- /**
- * Creates or update active directory administrator on an existing server. The update action will overwrite the
- * existing administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param properties The required parameters for creating or updating an AAD server administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a and external administrator to be created.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerAdministratorResourceInner createOrUpdate(
- String resourceGroupName, String serverName, ServerAdministratorResourceInner properties);
-
- /**
- * Creates or update active directory administrator on an existing server. The update action will overwrite the
- * existing administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param properties The required parameters for creating or updating an AAD server administrator.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a and external administrator to be created.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerAdministratorResourceInner createOrUpdate(
- String resourceGroupName, String serverName, ServerAdministratorResourceInner properties, Context context);
-
- /**
- * Deletes server active directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(String resourceGroupName, String serverName);
-
- /**
- * Deletes server active directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, Context context);
-
- /**
- * Deletes server active directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName);
-
- /**
- * Deletes server active directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, Context context);
-
- /**
- * Returns a list of server Administrators.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response to a list Active Directory Administrators request.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName);
-
- /**
- * Returns a list of server Administrators.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response to a list Active Directory Administrators request.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerBasedPerformanceTiersClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerBasedPerformanceTiersClient.java
deleted file mode 100644
index f6fc274c05d8..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerBasedPerformanceTiersClient.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.postgresql.fluent.models.PerformanceTierPropertiesInner;
-
-/** An instance of this class provides access to all the operations defined in ServerBasedPerformanceTiersClient. */
-public interface ServerBasedPerformanceTiersClient {
- /**
- * List all the performance tiers for a PostgreSQL server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName);
-
- /**
- * List all the performance tiers for a PostgreSQL server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerKeysClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerKeysClient.java
deleted file mode 100644
index a6219b03909d..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerKeysClient.java
+++ /dev/null
@@ -1,197 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.postgresql.fluent.models.ServerKeyInner;
-
-/** An instance of this class provides access to all the operations defined in ServerKeysClient. */
-public interface ServerKeysClient {
- /**
- * Gets a list of Server keys.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Server keys.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName);
-
- /**
- * Gets a list of Server keys.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Server keys.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName, Context context);
-
- /**
- * Gets a PostgreSQL Server key.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be retrieved.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a PostgreSQL Server key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerKeyInner get(String resourceGroupName, String serverName, String keyName);
-
- /**
- * Gets a PostgreSQL Server key.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be retrieved.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a PostgreSQL Server key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, String keyName, Context context);
-
- /**
- * Creates or updates a PostgreSQL Server key.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be operated on (updated or created).
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param parameters The requested PostgreSQL Server key resource state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a PostgreSQL Server key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServerKeyInner> beginCreateOrUpdate(
- String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters);
-
- /**
- * Creates or updates a PostgreSQL Server key.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be operated on (updated or created).
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param parameters The requested PostgreSQL Server key resource state.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a PostgreSQL Server key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServerKeyInner> beginCreateOrUpdate(
- String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, Context context);
-
- /**
- * Creates or updates a PostgreSQL Server key.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be operated on (updated or created).
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param parameters The requested PostgreSQL Server key resource state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a PostgreSQL Server key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerKeyInner createOrUpdate(
- String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters);
-
- /**
- * Creates or updates a PostgreSQL Server key.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be operated on (updated or created).
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param parameters The requested PostgreSQL Server key resource state.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a PostgreSQL Server key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerKeyInner createOrUpdate(
- String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, Context context);
-
- /**
- * Deletes the PostgreSQL Server key with the given name.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be deleted.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(String serverName, String keyName, String resourceGroupName);
-
- /**
- * Deletes the PostgreSQL Server key with the given name.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be deleted.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(
- String serverName, String keyName, String resourceGroupName, Context context);
-
- /**
- * Deletes the PostgreSQL Server key with the given name.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be deleted.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String serverName, String keyName, String resourceGroupName);
-
- /**
- * Deletes the PostgreSQL Server key with the given name.
- *
- * @param serverName The name of the server.
- * @param keyName The name of the PostgreSQL Server key to be deleted.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String serverName, String keyName, String resourceGroupName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerParametersClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerParametersClient.java
deleted file mode 100644
index 9bac4f2ae16f..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerParametersClient.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationListResultInner;
-
-/** An instance of this class provides access to all the operations defined in ServerParametersClient. */
-public interface ServerParametersClient {
- /**
- * Update a list of configurations in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param value The parameters for updating a list of server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
- String resourceGroupName, String serverName, ConfigurationListResultInner value);
-
- /**
- * Update a list of configurations in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param value The parameters for updating a list of server configuration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
- String resourceGroupName, String serverName, ConfigurationListResultInner value, Context context);
-
- /**
- * Update a list of configurations in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param value The parameters for updating a list of server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationListResultInner listUpdateConfigurations(
- String resourceGroupName, String serverName, ConfigurationListResultInner value);
-
- /**
- * Update a list of configurations in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param value The parameters for updating a list of server configuration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationListResultInner listUpdateConfigurations(
- String resourceGroupName, String serverName, ConfigurationListResultInner value, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerSecurityAlertPoliciesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerSecurityAlertPoliciesClient.java
deleted file mode 100644
index bf08fe1260d3..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServerSecurityAlertPoliciesClient.java
+++ /dev/null
@@ -1,157 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.postgresql.fluent.models.ServerSecurityAlertPolicyInner;
-import com.azure.resourcemanager.postgresql.models.SecurityAlertPolicyName;
-
-/** An instance of this class provides access to all the operations defined in ServerSecurityAlertPoliciesClient. */
-public interface ServerSecurityAlertPoliciesClient {
- /**
- * Get a server's security alert policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param securityAlertPolicyName The name of the security alert policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server's security alert policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerSecurityAlertPolicyInner get(
- String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName);
-
- /**
- * Get a server's security alert policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param securityAlertPolicyName The name of the security alert policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server's security alert policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName, Context context);
-
- /**
- * Creates or updates a threat detection policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param securityAlertPolicyName The name of the threat detection policy.
- * @param parameters The server security alert policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server security alert policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- SecurityAlertPolicyName securityAlertPolicyName,
- ServerSecurityAlertPolicyInner parameters);
-
- /**
- * Creates or updates a threat detection policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param securityAlertPolicyName The name of the threat detection policy.
- * @param parameters The server security alert policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server security alert policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- SecurityAlertPolicyName securityAlertPolicyName,
- ServerSecurityAlertPolicyInner parameters,
- Context context);
-
- /**
- * Creates or updates a threat detection policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param securityAlertPolicyName The name of the threat detection policy.
- * @param parameters The server security alert policy.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server security alert policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerSecurityAlertPolicyInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- SecurityAlertPolicyName securityAlertPolicyName,
- ServerSecurityAlertPolicyInner parameters);
-
- /**
- * Creates or updates a threat detection policy.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param securityAlertPolicyName The name of the threat detection policy.
- * @param parameters The server security alert policy.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server security alert policy.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerSecurityAlertPolicyInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- SecurityAlertPolicyName securityAlertPolicyName,
- ServerSecurityAlertPolicyInner parameters,
- Context context);
-
- /**
- * Get the server's threat detection policies.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the server's threat detection policies.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * Get the server's threat detection policies.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the server's threat detection policies.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(
- String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServersClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServersClient.java
index 76c89873fb5a..72fe81046aa0 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServersClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/ServersClient.java
@@ -12,13 +12,13 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.ServerInner;
-import com.azure.resourcemanager.postgresql.models.ServerForCreate;
-import com.azure.resourcemanager.postgresql.models.ServerUpdateParameters;
+import com.azure.resourcemanager.postgresql.models.RestartParameter;
+import com.azure.resourcemanager.postgresql.models.ServerForUpdate;
/** An instance of this class provides access to all the operations defined in ServersClient. */
public interface ServersClient {
/**
- * Creates a new server, or will overwrite an existing server.
+ * Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -30,10 +30,10 @@ public interface ServersClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, ServerInner> beginCreate(
- String resourceGroupName, String serverName, ServerForCreate parameters);
+ String resourceGroupName, String serverName, ServerInner parameters);
/**
- * Creates a new server, or will overwrite an existing server.
+ * Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -46,10 +46,10 @@ SyncPoller, ServerInner> beginCreate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, ServerInner> beginCreate(
- String resourceGroupName, String serverName, ServerForCreate parameters, Context context);
+ String resourceGroupName, String serverName, ServerInner parameters, Context context);
/**
- * Creates a new server, or will overwrite an existing server.
+ * Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -60,10 +60,10 @@ SyncPoller, ServerInner> beginCreate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters);
+ ServerInner create(String resourceGroupName, String serverName, ServerInner parameters);
/**
- * Creates a new server, or will overwrite an existing server.
+ * Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -75,7 +75,7 @@ SyncPoller, ServerInner> beginCreate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters, Context context);
+ ServerInner create(String resourceGroupName, String serverName, ServerInner parameters, Context context);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -91,7 +91,7 @@ SyncPoller, ServerInner> beginCreate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, ServerInner> beginUpdate(
- String resourceGroupName, String serverName, ServerUpdateParameters parameters);
+ String resourceGroupName, String serverName, ServerForUpdate parameters);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -108,7 +108,7 @@ SyncPoller, ServerInner> beginUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller, ServerInner> beginUpdate(
- String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context);
+ String resourceGroupName, String serverName, ServerForUpdate parameters, Context context);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -123,7 +123,7 @@ SyncPoller, ServerInner> beginUpdate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters);
+ ServerInner update(String resourceGroupName, String serverName, ServerForUpdate parameters);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -139,7 +139,7 @@ SyncPoller, ServerInner> beginUpdate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context);
+ ServerInner update(String resourceGroupName, String serverName, ServerForUpdate parameters, Context context);
/**
* Deletes a server.
@@ -272,19 +272,22 @@ SyncPoller, ServerInner> beginUpdate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The parameters for restarting a server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginRestart(String resourceGroupName, String serverName);
+ SyncPoller, Void> beginRestart(
+ String resourceGroupName, String serverName, RestartParameter parameters);
/**
* Restarts a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The parameters for restarting a server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -292,7 +295,21 @@ SyncPoller, ServerInner> beginUpdate(
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginRestart(String resourceGroupName, String serverName, Context context);
+ SyncPoller, Void> beginRestart(
+ String resourceGroupName, String serverName, RestartParameter parameters, Context context);
+
+ /**
+ * Restarts a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The parameters for restarting a server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String serverName, RestartParameter parameters);
/**
* Restarts a server.
@@ -311,11 +328,116 @@ SyncPoller, ServerInner> beginUpdate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The parameters for restarting a server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void restart(String resourceGroupName, String serverName, RestartParameter parameters, Context context);
+
+ /**
+ * Starts a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStart(String resourceGroupName, String serverName);
+
+ /**
+ * Starts a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStart(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Starts a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String serverName);
+
+ /**
+ * Starts a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Stops a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStop(String resourceGroupName, String serverName);
+
+ /**
+ * Stops a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStop(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Stops a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stop(String resourceGroupName, String serverName);
+
+ /**
+ * Stops a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restart(String resourceGroupName, String serverName, Context context);
+ void stop(String resourceGroupName, String serverName, Context context);
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/VirtualNetworkRulesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/VirtualNetworkRulesClient.java
deleted file mode 100644
index 891d1044acf2..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/VirtualNetworkRulesClient.java
+++ /dev/null
@@ -1,206 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.postgresql.fluent.models.VirtualNetworkRuleInner;
-
-/** An instance of this class provides access to all the operations defined in VirtualNetworkRulesClient. */
-public interface VirtualNetworkRulesClient {
- /**
- * Gets a virtual network rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner get(String resourceGroupName, String serverName, String virtualNetworkRuleName);
-
- /**
- * Gets a virtual network rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
-
- /**
- * Creates or updates an existing virtual network rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param parameters The requested virtual Network Rule Resource state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters);
-
- /**
- * Creates or updates an existing virtual network rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param parameters The requested virtual Network Rule Resource state.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- String virtualNetworkRuleName,
- VirtualNetworkRuleInner parameters,
- Context context);
-
- /**
- * Creates or updates an existing virtual network rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param parameters The requested virtual Network Rule Resource state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner createOrUpdate(
- String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters);
-
- /**
- * Creates or updates an existing virtual network rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param parameters The requested virtual Network Rule Resource state.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- String virtualNetworkRuleName,
- VirtualNetworkRuleInner parameters,
- Context context);
-
- /**
- * Deletes the virtual network rule with the given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, String virtualNetworkRuleName);
-
- /**
- * Deletes the virtual network rule with the given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
-
- /**
- * Deletes the virtual network rule with the given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName);
-
- /**
- * Deletes the virtual network rule with the given name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param virtualNetworkRuleName The name of the virtual network rule.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
-
- /**
- * Gets a list of virtual network rules in a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of virtual network rules in a server.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * Gets a list of virtual network rules in a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of virtual network rules in a server.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/VirtualNetworkSubnetUsagesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/VirtualNetworkSubnetUsagesClient.java
new file mode 100644
index 000000000000..deb4fe652ff6
--- /dev/null
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/VirtualNetworkSubnetUsagesClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.postgresql.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.postgresql.fluent.models.VirtualNetworkSubnetUsageResultInner;
+import com.azure.resourcemanager.postgresql.models.VirtualNetworkSubnetUsageParameter;
+
+/** An instance of this class provides access to all the operations defined in VirtualNetworkSubnetUsagesClient. */
+public interface VirtualNetworkSubnetUsagesClient {
+ /**
+ * Get virtual network subnet usage for a given vNet resource id.
+ *
+ * @param locationName The name of the location.
+ * @param parameters The required parameters for creating or updating a server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return virtual network subnet usage for a given vNet resource id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkSubnetUsageResultInner execute(String locationName, VirtualNetworkSubnetUsageParameter parameters);
+
+ /**
+ * Get virtual network subnet usage for a given vNet resource id.
+ *
+ * @param locationName The name of the location.
+ * @param parameters The required parameters for creating or updating a server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return virtual network subnet usage for a given vNet resource id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response executeWithResponse(
+ String locationName, VirtualNetworkSubnetUsageParameter parameters, Context context);
+}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/CapabilityPropertiesInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/CapabilityPropertiesInner.java
new file mode 100644
index 000000000000..fcc2fad3c970
--- /dev/null
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/CapabilityPropertiesInner.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.postgresql.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.postgresql.models.ServerEditionCapability;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Location capabilities. */
+@Immutable
+public final class CapabilityPropertiesInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CapabilityPropertiesInner.class);
+
+ /*
+ * zone name
+ */
+ @JsonProperty(value = "zone", access = JsonProperty.Access.WRITE_ONLY)
+ private String zone;
+
+ /*
+ * The supportedFlexibleServerEditions property.
+ */
+ @JsonProperty(value = "supportedFlexibleServerEditions", access = JsonProperty.Access.WRITE_ONLY)
+ private List supportedFlexibleServerEditions;
+
+ /**
+ * Get the zone property: zone name.
+ *
+ * @return the zone value.
+ */
+ public String zone() {
+ return this.zone;
+ }
+
+ /**
+ * Get the supportedFlexibleServerEditions property: The supportedFlexibleServerEditions property.
+ *
+ * @return the supportedFlexibleServerEditions value.
+ */
+ public List supportedFlexibleServerEditions() {
+ return this.supportedFlexibleServerEditions;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (supportedFlexibleServerEditions() != null) {
+ supportedFlexibleServerEditions().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationInner.java
index 6144c5ee6766..30660e145df3 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationInner.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.postgresql.models.ConfigurationDataType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -17,6 +19,12 @@
public class ConfigurationInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ConfigurationInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Value of the configuration.
*/
@@ -39,7 +47,7 @@ public class ConfigurationInner extends ProxyResource {
* Data type of the configuration.
*/
@JsonProperty(value = "properties.dataType", access = JsonProperty.Access.WRITE_ONLY)
- private String dataType;
+ private ConfigurationDataType dataType;
/*
* Allowed values of the configuration.
@@ -53,6 +61,15 @@ public class ConfigurationInner extends ProxyResource {
@JsonProperty(value = "properties.source")
private String source;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the value property: Value of the configuration.
*
@@ -96,7 +113,7 @@ public String defaultValue() {
*
* @return the dataType value.
*/
- public String dataType() {
+ public ConfigurationDataType dataType() {
return this.dataType;
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationListResultInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationListResultInner.java
deleted file mode 100644
index 9d51951ef866..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ConfigurationListResultInner.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.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;
-import java.util.List;
-
-/** A list of server configurations. */
-@Fluent
-public final class ConfigurationListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ConfigurationListResultInner.class);
-
- /*
- * The list of server configurations.
- */
- @JsonProperty(value = "value")
- private List value;
-
- /**
- * Get the value property: The list of server configurations.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: The list of server configurations.
- *
- * @param value the value value to set.
- * @return the ConfigurationListResultInner object itself.
- */
- public ConfigurationListResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/DatabaseInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/DatabaseInner.java
index a9845a9961da..87e13a8327f6 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/DatabaseInner.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/DatabaseInner.java
@@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -17,6 +18,12 @@
public class DatabaseInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The charset of the database.
*/
@@ -29,6 +36,15 @@ public class DatabaseInner extends ProxyResource {
@JsonProperty(value = "properties.collation")
private String collation;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the charset property: The charset of the database.
*
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/FirewallRuleInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/FirewallRuleInner.java
index dbf01aea8ab6..61d847af6bcc 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/FirewallRuleInner.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/FirewallRuleInner.java
@@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -17,6 +18,12 @@
public class FirewallRuleInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The start IP address of the server firewall rule. Must be IPv4 format.
*/
@@ -29,6 +36,15 @@ public class FirewallRuleInner extends ProxyResource {
@JsonProperty(value = "properties.endIpAddress", required = true)
private String endIpAddress;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
*
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/LogFileInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/LogFileInner.java
deleted file mode 100644
index 8e4e22fa0e44..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/LogFileInner.java
+++ /dev/null
@@ -1,136 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Represents a log file. */
-@JsonFlatten
-@Fluent
-public class LogFileInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LogFileInner.class);
-
- /*
- * Size of the log file.
- */
- @JsonProperty(value = "properties.sizeInKB")
- private Long sizeInKB;
-
- /*
- * Creation timestamp of the log file.
- */
- @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime createdTime;
-
- /*
- * Last modified timestamp of the log file.
- */
- @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModifiedTime;
-
- /*
- * Type of the log file.
- */
- @JsonProperty(value = "properties.type")
- private String typePropertiesType;
-
- /*
- * The url to download the log file from.
- */
- @JsonProperty(value = "properties.url")
- private String url;
-
- /**
- * Get the sizeInKB property: Size of the log file.
- *
- * @return the sizeInKB value.
- */
- public Long sizeInKB() {
- return this.sizeInKB;
- }
-
- /**
- * Set the sizeInKB property: Size of the log file.
- *
- * @param sizeInKB the sizeInKB value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withSizeInKB(Long sizeInKB) {
- this.sizeInKB = sizeInKB;
- return this;
- }
-
- /**
- * Get the createdTime property: Creation timestamp of the log file.
- *
- * @return the createdTime value.
- */
- public OffsetDateTime createdTime() {
- return this.createdTime;
- }
-
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
- }
-
- /**
- * Get the typePropertiesType property: Type of the log file.
- *
- * @return the typePropertiesType value.
- */
- public String typePropertiesType() {
- return this.typePropertiesType;
- }
-
- /**
- * Set the typePropertiesType property: Type of the log file.
- *
- * @param typePropertiesType the typePropertiesType value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withTypePropertiesType(String typePropertiesType) {
- this.typePropertiesType = typePropertiesType;
- return this;
- }
-
- /**
- * Get the url property: The url to download the log file from.
- *
- * @return the url value.
- */
- public String url() {
- return this.url;
- }
-
- /**
- * Set the url property: The url to download the log file from.
- *
- * @param url the url value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withUrl(String url) {
- this.url = url;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/NameAvailabilityInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/NameAvailabilityInner.java
index d91dc0f36d78..62188db7fe7e 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/NameAvailabilityInner.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/NameAvailabilityInner.java
@@ -27,10 +27,16 @@ public final class NameAvailabilityInner {
private Boolean nameAvailable;
/*
- * Reason for name being unavailable.
+ * name of the PostgreSQL server.
*/
- @JsonProperty(value = "reason")
- private String reason;
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * type of the server
+ */
+ @JsonProperty(value = "type")
+ private String type;
/**
* Get the message property: Error Message.
@@ -73,22 +79,42 @@ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
}
/**
- * Get the reason property: Reason for name being unavailable.
+ * Get the name property: name of the PostgreSQL server.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: name of the PostgreSQL server.
+ *
+ * @param name the name value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type property: type of the server.
*
- * @return the reason value.
+ * @return the type value.
*/
- public String reason() {
- return this.reason;
+ public String type() {
+ return this.type;
}
/**
- * Set the reason property: Reason for name being unavailable.
+ * Set the type property: type of the server.
*
- * @param reason the reason value to set.
+ * @param type the type value to set.
* @return the NameAvailabilityInner object itself.
*/
- public NameAvailabilityInner withReason(String reason) {
- this.reason = reason;
+ public NameAvailabilityInner withType(String type) {
+ this.type = type;
return this;
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/OperationListResultInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/OperationListResultInner.java
index 5c71f0055ef7..9e8030491e7b 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/OperationListResultInner.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/OperationListResultInner.java
@@ -17,13 +17,20 @@ public final class OperationListResultInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResultInner.class);
/*
- * The list of resource provider operations.
+ * Collection of available operation details
*/
@JsonProperty(value = "value")
private List value;
+ /*
+ * URL client should use to fetch the next page (per server side paging).
+ * It's null for now, added for future use.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
/**
- * Get the value property: The list of resource provider operations.
+ * Get the value property: Collection of available operation details.
*
* @return the value value.
*/
@@ -32,7 +39,7 @@ public List value() {
}
/**
- * Set the value property: The list of resource provider operations.
+ * Set the value property: Collection of available operation details.
*
* @param value the value value to set.
* @return the OperationListResultInner object itself.
@@ -42,6 +49,28 @@ public OperationListResultInner withValue(List value) {
return this;
}
+ /**
+ * Get the nextLink property: URL client should use to fetch the next page (per server side paging). It's null for
+ * now, added for future use.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: URL client should use to fetch the next page (per server side paging). It's null for
+ * now, added for future use.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the OperationListResultInner object itself.
+ */
+ public OperationListResultInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PerformanceTierPropertiesInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PerformanceTierPropertiesInner.java
deleted file mode 100644
index 1725a09e0d8d..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PerformanceTierPropertiesInner.java
+++ /dev/null
@@ -1,238 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.PerformanceTierServiceLevelObjectives;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Performance tier properties. */
-@Fluent
-public final class PerformanceTierPropertiesInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PerformanceTierPropertiesInner.class);
-
- /*
- * ID of the performance tier.
- */
- @JsonProperty(value = "id")
- private String id;
-
- /*
- * Maximum Backup retention in days for the performance tier edition
- */
- @JsonProperty(value = "maxBackupRetentionDays")
- private Integer maxBackupRetentionDays;
-
- /*
- * Minimum Backup retention in days for the performance tier edition
- */
- @JsonProperty(value = "minBackupRetentionDays")
- private Integer minBackupRetentionDays;
-
- /*
- * Max storage allowed for a server.
- */
- @JsonProperty(value = "maxStorageMB")
- private Integer maxStorageMB;
-
- /*
- * Max storage allowed for a server.
- */
- @JsonProperty(value = "minLargeStorageMB")
- private Integer minLargeStorageMB;
-
- /*
- * Max storage allowed for a server.
- */
- @JsonProperty(value = "maxLargeStorageMB")
- private Integer maxLargeStorageMB;
-
- /*
- * Max storage allowed for a server.
- */
- @JsonProperty(value = "minStorageMB")
- private Integer minStorageMB;
-
- /*
- * Service level objectives associated with the performance tier
- */
- @JsonProperty(value = "serviceLevelObjectives")
- private List serviceLevelObjectives;
-
- /**
- * Get the id property: ID of the performance tier.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Set the id property: ID of the performance tier.
- *
- * @param id the id value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withId(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.
- *
- * @return the maxBackupRetentionDays value.
- */
- public Integer maxBackupRetentionDays() {
- return this.maxBackupRetentionDays;
- }
-
- /**
- * Set the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.
- *
- * @param maxBackupRetentionDays the maxBackupRetentionDays value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withMaxBackupRetentionDays(Integer maxBackupRetentionDays) {
- this.maxBackupRetentionDays = maxBackupRetentionDays;
- return this;
- }
-
- /**
- * Get the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.
- *
- * @return the minBackupRetentionDays value.
- */
- public Integer minBackupRetentionDays() {
- return this.minBackupRetentionDays;
- }
-
- /**
- * Set the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.
- *
- * @param minBackupRetentionDays the minBackupRetentionDays value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withMinBackupRetentionDays(Integer minBackupRetentionDays) {
- this.minBackupRetentionDays = minBackupRetentionDays;
- return this;
- }
-
- /**
- * Get the maxStorageMB property: Max storage allowed for a server.
- *
- * @return the maxStorageMB value.
- */
- public Integer maxStorageMB() {
- return this.maxStorageMB;
- }
-
- /**
- * Set the maxStorageMB property: Max storage allowed for a server.
- *
- * @param maxStorageMB the maxStorageMB value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withMaxStorageMB(Integer maxStorageMB) {
- this.maxStorageMB = maxStorageMB;
- return this;
- }
-
- /**
- * Get the minLargeStorageMB property: Max storage allowed for a server.
- *
- * @return the minLargeStorageMB value.
- */
- public Integer minLargeStorageMB() {
- return this.minLargeStorageMB;
- }
-
- /**
- * Set the minLargeStorageMB property: Max storage allowed for a server.
- *
- * @param minLargeStorageMB the minLargeStorageMB value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withMinLargeStorageMB(Integer minLargeStorageMB) {
- this.minLargeStorageMB = minLargeStorageMB;
- return this;
- }
-
- /**
- * Get the maxLargeStorageMB property: Max storage allowed for a server.
- *
- * @return the maxLargeStorageMB value.
- */
- public Integer maxLargeStorageMB() {
- return this.maxLargeStorageMB;
- }
-
- /**
- * Set the maxLargeStorageMB property: Max storage allowed for a server.
- *
- * @param maxLargeStorageMB the maxLargeStorageMB value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withMaxLargeStorageMB(Integer maxLargeStorageMB) {
- this.maxLargeStorageMB = maxLargeStorageMB;
- return this;
- }
-
- /**
- * Get the minStorageMB property: Max storage allowed for a server.
- *
- * @return the minStorageMB value.
- */
- public Integer minStorageMB() {
- return this.minStorageMB;
- }
-
- /**
- * Set the minStorageMB property: Max storage allowed for a server.
- *
- * @param minStorageMB the minStorageMB value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withMinStorageMB(Integer minStorageMB) {
- this.minStorageMB = minStorageMB;
- return this;
- }
-
- /**
- * Get the serviceLevelObjectives property: Service level objectives associated with the performance tier.
- *
- * @return the serviceLevelObjectives value.
- */
- public List serviceLevelObjectives() {
- return this.serviceLevelObjectives;
- }
-
- /**
- * Set the serviceLevelObjectives property: Service level objectives associated with the performance tier.
- *
- * @param serviceLevelObjectives the serviceLevelObjectives value to set.
- * @return the PerformanceTierPropertiesInner object itself.
- */
- public PerformanceTierPropertiesInner withServiceLevelObjectives(
- List serviceLevelObjectives) {
- this.serviceLevelObjectives = serviceLevelObjectives;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (serviceLevelObjectives() != null) {
- serviceLevelObjectives().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PrivateEndpointConnectionInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PrivateEndpointConnectionInner.java
deleted file mode 100644
index 0d6e626cc50a..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PrivateEndpointConnectionInner.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.PrivateEndpointProperty;
-import com.azure.resourcemanager.postgresql.models.PrivateLinkServiceConnectionStateProperty;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** A private endpoint connection. */
-@JsonFlatten
-@Fluent
-public class PrivateEndpointConnectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
-
- /*
- * Private endpoint which the connection belongs to.
- */
- @JsonProperty(value = "properties.privateEndpoint")
- private PrivateEndpointProperty privateEndpoint;
-
- /*
- * Connection state of the private endpoint connection.
- */
- @JsonProperty(value = "properties.privateLinkServiceConnectionState")
- private PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState;
-
- /*
- * State of the private endpoint connection.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /**
- * Get the privateEndpoint property: Private endpoint which the connection belongs to.
- *
- * @return the privateEndpoint value.
- */
- public PrivateEndpointProperty privateEndpoint() {
- return this.privateEndpoint;
- }
-
- /**
- * Set the privateEndpoint property: Private endpoint which the connection belongs to.
- *
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionInner object itself.
- */
- public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
- }
-
- /**
- * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
- *
- * @return the privateLinkServiceConnectionState value.
- */
- public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
- }
-
- /**
- * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
- *
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
- * @return the PrivateEndpointConnectionInner object itself.
- */
- public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
- return this;
- }
-
- /**
- * Get the provisioningState property: State of the private endpoint connection.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() != null) {
- privateLinkServiceConnectionState().validate();
- }
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PrivateLinkResourceInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PrivateLinkResourceInner.java
deleted file mode 100644
index 0d77c8c48ffc..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/PrivateLinkResourceInner.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.PrivateLinkResourceProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** A private link resource. */
-@Immutable
-public final class PrivateLinkResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
-
- /*
- * The private link resource group id.
- */
- @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
- private PrivateLinkResourceProperties properties;
-
- /**
- * Get the properties property: The private link resource group id.
- *
- * @return the properties value.
- */
- public PrivateLinkResourceProperties properties() {
- return this.properties;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/RecoverableServerResourceInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/RecoverableServerResourceInner.java
deleted file mode 100644
index 9051a6767f6b..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/RecoverableServerResourceInner.java
+++ /dev/null
@@ -1,117 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** A recoverable server resource. */
-@JsonFlatten
-@Immutable
-public class RecoverableServerResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RecoverableServerResourceInner.class);
-
- /*
- * The last available backup date time.
- */
- @JsonProperty(value = "properties.lastAvailableBackupDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private String lastAvailableBackupDateTime;
-
- /*
- * The service level objective
- */
- @JsonProperty(value = "properties.serviceLevelObjective", access = JsonProperty.Access.WRITE_ONLY)
- private String serviceLevelObjective;
-
- /*
- * Edition of the performance tier.
- */
- @JsonProperty(value = "properties.edition", access = JsonProperty.Access.WRITE_ONLY)
- private String edition;
-
- /*
- * vCore associated with the service level objective
- */
- @JsonProperty(value = "properties.vCore", access = JsonProperty.Access.WRITE_ONLY)
- private Integer vCore;
-
- /*
- * Hardware generation associated with the service level objective
- */
- @JsonProperty(value = "properties.hardwareGeneration", access = JsonProperty.Access.WRITE_ONLY)
- private String hardwareGeneration;
-
- /*
- * The PostgreSQL version
- */
- @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY)
- private String version;
-
- /**
- * Get the lastAvailableBackupDateTime property: The last available backup date time.
- *
- * @return the lastAvailableBackupDateTime value.
- */
- public String lastAvailableBackupDateTime() {
- return this.lastAvailableBackupDateTime;
- }
-
- /**
- * Get the serviceLevelObjective property: The service level objective.
- *
- * @return the serviceLevelObjective value.
- */
- public String serviceLevelObjective() {
- return this.serviceLevelObjective;
- }
-
- /**
- * Get the edition property: Edition of the performance tier.
- *
- * @return the edition value.
- */
- public String edition() {
- return this.edition;
- }
-
- /**
- * Get the vCore property: vCore associated with the service level objective.
- *
- * @return the vCore value.
- */
- public Integer vCore() {
- return this.vCore;
- }
-
- /**
- * Get the hardwareGeneration property: Hardware generation associated with the service level objective.
- *
- * @return the hardwareGeneration value.
- */
- public String hardwareGeneration() {
- return this.hardwareGeneration;
- }
-
- /**
- * Get the version property: The PostgreSQL version.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerAdministratorResourceInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerAdministratorResourceInner.java
deleted file mode 100644
index 634da3525aa6..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerAdministratorResourceInner.java
+++ /dev/null
@@ -1,133 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.AdministratorType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.UUID;
-
-/** Represents a and external administrator to be created. */
-@JsonFlatten
-@Fluent
-public class ServerAdministratorResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerAdministratorResourceInner.class);
-
- /*
- * The type of administrator.
- */
- @JsonProperty(value = "properties.administratorType")
- private AdministratorType administratorType;
-
- /*
- * The server administrator login account name.
- */
- @JsonProperty(value = "properties.login")
- private String login;
-
- /*
- * The server administrator Sid (Secure ID).
- */
- @JsonProperty(value = "properties.sid")
- private UUID sid;
-
- /*
- * The server Active Directory Administrator tenant id.
- */
- @JsonProperty(value = "properties.tenantId")
- private UUID tenantId;
-
- /**
- * Get the administratorType property: The type of administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.administratorType;
- }
-
- /**
- * Set the administratorType property: The type of administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the ServerAdministratorResourceInner object itself.
- */
- public ServerAdministratorResourceInner withAdministratorType(AdministratorType administratorType) {
- this.administratorType = administratorType;
- return this;
- }
-
- /**
- * Get the login property: The server administrator login account name.
- *
- * @return the login value.
- */
- public String login() {
- return this.login;
- }
-
- /**
- * Set the login property: The server administrator login account name.
- *
- * @param login the login value to set.
- * @return the ServerAdministratorResourceInner object itself.
- */
- public ServerAdministratorResourceInner withLogin(String login) {
- this.login = login;
- return this;
- }
-
- /**
- * Get the sid property: The server administrator Sid (Secure ID).
- *
- * @return the sid value.
- */
- public UUID sid() {
- return this.sid;
- }
-
- /**
- * Set the sid property: The server administrator Sid (Secure ID).
- *
- * @param sid the sid value to set.
- * @return the ServerAdministratorResourceInner object itself.
- */
- public ServerAdministratorResourceInner withSid(UUID sid) {
- this.sid = sid;
- return this;
- }
-
- /**
- * Get the tenantId property: The server Active Directory Administrator tenant id.
- *
- * @return the tenantId value.
- */
- public UUID tenantId() {
- return this.tenantId;
- }
-
- /**
- * Set the tenantId property: The server Active Directory Administrator tenant id.
- *
- * @param tenantId the tenantId value to set.
- * @return the ServerAdministratorResourceInner object itself.
- */
- public ServerAdministratorResourceInner withTenantId(UUID tenantId) {
- this.tenantId = tenantId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerInner.java
index 257652261d85..c87f6ccdf411 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerInner.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerInner.java
@@ -7,21 +7,21 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.InfrastructureEncryption;
-import com.azure.resourcemanager.postgresql.models.MinimalTlsVersionEnum;
-import com.azure.resourcemanager.postgresql.models.PublicNetworkAccessEnum;
-import com.azure.resourcemanager.postgresql.models.ResourceIdentity;
-import com.azure.resourcemanager.postgresql.models.ServerPrivateEndpointConnection;
+import com.azure.resourcemanager.postgresql.models.Backup;
+import com.azure.resourcemanager.postgresql.models.CreateMode;
+import com.azure.resourcemanager.postgresql.models.HighAvailability;
+import com.azure.resourcemanager.postgresql.models.Identity;
+import com.azure.resourcemanager.postgresql.models.MaintenanceWindow;
+import com.azure.resourcemanager.postgresql.models.Network;
import com.azure.resourcemanager.postgresql.models.ServerState;
import com.azure.resourcemanager.postgresql.models.ServerVersion;
import com.azure.resourcemanager.postgresql.models.Sku;
-import com.azure.resourcemanager.postgresql.models.SslEnforcementEnum;
-import com.azure.resourcemanager.postgresql.models.StorageProfile;
+import com.azure.resourcemanager.postgresql.models.Storage;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-import java.util.List;
import java.util.Map;
/** Represents a server. */
@@ -34,7 +34,7 @@ public class ServerInner extends Resource {
* The Azure Active Directory identity of the server.
*/
@JsonProperty(value = "identity")
- private ResourceIdentity identity;
+ private Identity identity;
/*
* The SKU (pricing tier) of the server.
@@ -42,6 +42,12 @@ public class ServerInner extends Resource {
@JsonProperty(value = "sku")
private Sku sku;
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The administrator's login name of a server. Can only be specified when
* the server is being created (and is required for creation).
@@ -50,97 +56,103 @@ public class ServerInner extends Resource {
private String administratorLogin;
/*
- * Server version.
+ * The administrator login password (required for server creation).
+ */
+ @JsonProperty(value = "properties.administratorLoginPassword")
+ private String administratorLoginPassword;
+
+ /*
+ * PostgreSQL Server version.
*/
@JsonProperty(value = "properties.version")
private ServerVersion version;
/*
- * Enable ssl enforcement or not when connect to server.
+ * The minor version of the server.
*/
- @JsonProperty(value = "properties.sslEnforcement")
- private SslEnforcementEnum sslEnforcement;
+ @JsonProperty(value = "properties.minorVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String minorVersion;
/*
- * Enforce a minimal Tls version for the server.
+ * A state of a server that is visible to user.
*/
- @JsonProperty(value = "properties.minimalTlsVersion")
- private MinimalTlsVersionEnum minimalTlsVersion;
+ @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerState state;
/*
- * Status showing whether the server data encryption is enabled with
- * customer-managed keys.
+ * The fully qualified domain name of a server.
*/
- @JsonProperty(value = "properties.byokEnforcement", access = JsonProperty.Access.WRITE_ONLY)
- private String byokEnforcement;
+ @JsonProperty(value = "properties.fullyQualifiedDomainName", access = JsonProperty.Access.WRITE_ONLY)
+ private String fullyQualifiedDomainName;
/*
- * Status showing whether the server enabled infrastructure encryption.
+ * Storage properties of a server.
*/
- @JsonProperty(value = "properties.infrastructureEncryption")
- private InfrastructureEncryption infrastructureEncryption;
+ @JsonProperty(value = "properties.storage")
+ private Storage storage;
/*
- * A state of a server that is visible to user.
+ * Backup properties of a server.
*/
- @JsonProperty(value = "properties.userVisibleState")
- private ServerState userVisibleState;
+ @JsonProperty(value = "properties.backup")
+ private Backup backup;
/*
- * The fully qualified domain name of a server.
+ * Network properties of a server.
*/
- @JsonProperty(value = "properties.fullyQualifiedDomainName")
- private String fullyQualifiedDomainName;
+ @JsonProperty(value = "properties.network")
+ private Network network;
/*
- * Earliest restore point creation time (ISO8601 format)
+ * High availability properties of a server.
*/
- @JsonProperty(value = "properties.earliestRestoreDate")
- private OffsetDateTime earliestRestoreDate;
+ @JsonProperty(value = "properties.highAvailability")
+ private HighAvailability highAvailability;
/*
- * Storage profile of a server.
+ * Maintenance window properties of a server.
*/
- @JsonProperty(value = "properties.storageProfile")
- private StorageProfile storageProfile;
+ @JsonProperty(value = "properties.maintenanceWindow")
+ private MaintenanceWindow maintenanceWindow;
/*
- * The replication role of the server.
+ * The source server resource ID to restore from. It's required when
+ * 'createMode' is 'PointInTimeRestore'.
*/
- @JsonProperty(value = "properties.replicationRole")
- private String replicationRole;
+ @JsonProperty(value = "properties.sourceServerResourceId")
+ private String sourceServerResourceId;
/*
- * The master server id of a replica server.
+ * Restore point creation time (ISO8601 format), specifying the time to
+ * restore from. It's required when 'createMode' is 'PointInTimeRestore'.
*/
- @JsonProperty(value = "properties.masterServerId")
- private String masterServerId;
+ @JsonProperty(value = "properties.pointInTimeUTC")
+ private OffsetDateTime pointInTimeUtc;
/*
- * The maximum number of replicas that a master server can have.
+ * availability zone information of the server.
*/
- @JsonProperty(value = "properties.replicaCapacity")
- private Integer replicaCapacity;
+ @JsonProperty(value = "properties.availabilityZone")
+ private String availabilityZone;
/*
- * Whether or not public network access is allowed for this server. Value
- * is optional but if passed in, must be 'Enabled' or 'Disabled'
+ * The mode to create a new PostgreSQL server.
*/
- @JsonProperty(value = "properties.publicNetworkAccess")
- private PublicNetworkAccessEnum publicNetworkAccess;
+ @JsonProperty(value = "properties.createMode")
+ private CreateMode createMode;
/*
- * List of private endpoint connections on a server
+ * Application-specific metadata in the form of key-value pairs.
*/
- @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
- private List privateEndpointConnections;
+ @JsonProperty(value = "properties.tags")
+ private Map tagsPropertiesTags;
/**
* Get the identity property: The Azure Active Directory identity of the server.
*
* @return the identity value.
*/
- public ResourceIdentity identity() {
+ public Identity identity() {
return this.identity;
}
@@ -150,7 +162,7 @@ public ResourceIdentity identity() {
* @param identity the identity value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withIdentity(ResourceIdentity identity) {
+ public ServerInner withIdentity(Identity identity) {
this.identity = identity;
return this;
}
@@ -175,6 +187,15 @@ public ServerInner withSku(Sku sku) {
return this;
}
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the
* server is being created (and is required for creation).
@@ -198,264 +219,274 @@ public ServerInner withAdministratorLogin(String administratorLogin) {
}
/**
- * Get the version property: Server version.
+ * Get the administratorLoginPassword property: The administrator login password (required for server creation).
*
- * @return the version value.
+ * @return the administratorLoginPassword value.
*/
- public ServerVersion version() {
- return this.version;
+ public String administratorLoginPassword() {
+ return this.administratorLoginPassword;
}
/**
- * Set the version property: Server version.
+ * Set the administratorLoginPassword property: The administrator login password (required for server creation).
*
- * @param version the version value to set.
+ * @param administratorLoginPassword the administratorLoginPassword value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withVersion(ServerVersion version) {
- this.version = version;
+ public ServerInner withAdministratorLoginPassword(String administratorLoginPassword) {
+ this.administratorLoginPassword = administratorLoginPassword;
return this;
}
/**
- * Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.
+ * Get the version property: PostgreSQL Server version.
*
- * @return the sslEnforcement value.
+ * @return the version value.
*/
- public SslEnforcementEnum sslEnforcement() {
- return this.sslEnforcement;
+ public ServerVersion version() {
+ return this.version;
}
/**
- * Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
+ * Set the version property: PostgreSQL Server version.
*
- * @param sslEnforcement the sslEnforcement value to set.
+ * @param version the version value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement) {
- this.sslEnforcement = sslEnforcement;
+ public ServerInner withVersion(ServerVersion version) {
+ this.version = version;
return this;
}
/**
- * Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.
+ * Get the minorVersion property: The minor version of the server.
*
- * @return the minimalTlsVersion value.
+ * @return the minorVersion value.
*/
- public MinimalTlsVersionEnum minimalTlsVersion() {
- return this.minimalTlsVersion;
+ public String minorVersion() {
+ return this.minorVersion;
}
/**
- * Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
+ * Get the state property: A state of a server that is visible to user.
*
- * @param minimalTlsVersion the minimalTlsVersion value to set.
- * @return the ServerInner object itself.
+ * @return the state value.
*/
- public ServerInner withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion) {
- this.minimalTlsVersion = minimalTlsVersion;
- return this;
+ public ServerState state() {
+ return this.state;
}
/**
- * Get the byokEnforcement property: Status showing whether the server data encryption is enabled with
- * customer-managed keys.
+ * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
*
- * @return the byokEnforcement value.
+ * @return the fullyQualifiedDomainName value.
*/
- public String byokEnforcement() {
- return this.byokEnforcement;
+ public String fullyQualifiedDomainName() {
+ return this.fullyQualifiedDomainName;
}
/**
- * Get the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
+ * Get the storage property: Storage properties of a server.
*
- * @return the infrastructureEncryption value.
+ * @return the storage value.
*/
- public InfrastructureEncryption infrastructureEncryption() {
- return this.infrastructureEncryption;
+ public Storage storage() {
+ return this.storage;
}
/**
- * Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
+ * Set the storage property: Storage properties of a server.
*
- * @param infrastructureEncryption the infrastructureEncryption value to set.
+ * @param storage the storage value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption) {
- this.infrastructureEncryption = infrastructureEncryption;
+ public ServerInner withStorage(Storage storage) {
+ this.storage = storage;
return this;
}
/**
- * Get the userVisibleState property: A state of a server that is visible to user.
+ * Get the backup property: Backup properties of a server.
*
- * @return the userVisibleState value.
+ * @return the backup value.
*/
- public ServerState userVisibleState() {
- return this.userVisibleState;
+ public Backup backup() {
+ return this.backup;
}
/**
- * Set the userVisibleState property: A state of a server that is visible to user.
+ * Set the backup property: Backup properties of a server.
*
- * @param userVisibleState the userVisibleState value to set.
+ * @param backup the backup value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withUserVisibleState(ServerState userVisibleState) {
- this.userVisibleState = userVisibleState;
+ public ServerInner withBackup(Backup backup) {
+ this.backup = backup;
return this;
}
/**
- * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
+ * Get the network property: Network properties of a server.
*
- * @return the fullyQualifiedDomainName value.
+ * @return the network value.
*/
- public String fullyQualifiedDomainName() {
- return this.fullyQualifiedDomainName;
+ public Network network() {
+ return this.network;
}
/**
- * Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.
+ * Set the network property: Network properties of a server.
*
- * @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set.
+ * @param network the network value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName) {
- this.fullyQualifiedDomainName = fullyQualifiedDomainName;
+ public ServerInner withNetwork(Network network) {
+ this.network = network;
return this;
}
/**
- * Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
+ * Get the highAvailability property: High availability properties of a server.
*
- * @return the earliestRestoreDate value.
+ * @return the highAvailability value.
*/
- public OffsetDateTime earliestRestoreDate() {
- return this.earliestRestoreDate;
+ public HighAvailability highAvailability() {
+ return this.highAvailability;
}
/**
- * Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
+ * Set the highAvailability property: High availability properties of a server.
*
- * @param earliestRestoreDate the earliestRestoreDate value to set.
+ * @param highAvailability the highAvailability value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withEarliestRestoreDate(OffsetDateTime earliestRestoreDate) {
- this.earliestRestoreDate = earliestRestoreDate;
+ public ServerInner withHighAvailability(HighAvailability highAvailability) {
+ this.highAvailability = highAvailability;
return this;
}
/**
- * Get the storageProfile property: Storage profile of a server.
+ * Get the maintenanceWindow property: Maintenance window properties of a server.
*
- * @return the storageProfile value.
+ * @return the maintenanceWindow value.
*/
- public StorageProfile storageProfile() {
- return this.storageProfile;
+ public MaintenanceWindow maintenanceWindow() {
+ return this.maintenanceWindow;
}
/**
- * Set the storageProfile property: Storage profile of a server.
+ * Set the maintenanceWindow property: Maintenance window properties of a server.
*
- * @param storageProfile the storageProfile value to set.
+ * @param maintenanceWindow the maintenanceWindow value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withStorageProfile(StorageProfile storageProfile) {
- this.storageProfile = storageProfile;
+ public ServerInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
+ this.maintenanceWindow = maintenanceWindow;
return this;
}
/**
- * Get the replicationRole property: The replication role of the server.
+ * Get the sourceServerResourceId property: The source server resource ID to restore from. It's required when
+ * 'createMode' is 'PointInTimeRestore'.
*
- * @return the replicationRole value.
+ * @return the sourceServerResourceId value.
*/
- public String replicationRole() {
- return this.replicationRole;
+ public String sourceServerResourceId() {
+ return this.sourceServerResourceId;
}
/**
- * Set the replicationRole property: The replication role of the server.
+ * Set the sourceServerResourceId property: The source server resource ID to restore from. It's required when
+ * 'createMode' is 'PointInTimeRestore'.
*
- * @param replicationRole the replicationRole value to set.
+ * @param sourceServerResourceId the sourceServerResourceId value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withReplicationRole(String replicationRole) {
- this.replicationRole = replicationRole;
+ public ServerInner withSourceServerResourceId(String sourceServerResourceId) {
+ this.sourceServerResourceId = sourceServerResourceId;
return this;
}
/**
- * Get the masterServerId property: The master server id of a replica server.
+ * Get the pointInTimeUtc property: Restore point creation time (ISO8601 format), specifying the time to restore
+ * from. It's required when 'createMode' is 'PointInTimeRestore'.
*
- * @return the masterServerId value.
+ * @return the pointInTimeUtc value.
*/
- public String masterServerId() {
- return this.masterServerId;
+ public OffsetDateTime pointInTimeUtc() {
+ return this.pointInTimeUtc;
}
/**
- * Set the masterServerId property: The master server id of a replica server.
+ * Set the pointInTimeUtc property: Restore point creation time (ISO8601 format), specifying the time to restore
+ * from. It's required when 'createMode' is 'PointInTimeRestore'.
*
- * @param masterServerId the masterServerId value to set.
+ * @param pointInTimeUtc the pointInTimeUtc value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withMasterServerId(String masterServerId) {
- this.masterServerId = masterServerId;
+ public ServerInner withPointInTimeUtc(OffsetDateTime pointInTimeUtc) {
+ this.pointInTimeUtc = pointInTimeUtc;
return this;
}
/**
- * Get the replicaCapacity property: The maximum number of replicas that a master server can have.
+ * Get the availabilityZone property: availability zone information of the server.
*
- * @return the replicaCapacity value.
+ * @return the availabilityZone value.
*/
- public Integer replicaCapacity() {
- return this.replicaCapacity;
+ public String availabilityZone() {
+ return this.availabilityZone;
}
/**
- * Set the replicaCapacity property: The maximum number of replicas that a master server can have.
+ * Set the availabilityZone property: availability zone information of the server.
*
- * @param replicaCapacity the replicaCapacity value to set.
+ * @param availabilityZone the availabilityZone value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withReplicaCapacity(Integer replicaCapacity) {
- this.replicaCapacity = replicaCapacity;
+ public ServerInner withAvailabilityZone(String availabilityZone) {
+ this.availabilityZone = availabilityZone;
return this;
}
/**
- * Get the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is
- * optional but if passed in, must be 'Enabled' or 'Disabled'.
+ * Get the createMode property: The mode to create a new PostgreSQL server.
*
- * @return the publicNetworkAccess value.
+ * @return the createMode value.
*/
- public PublicNetworkAccessEnum publicNetworkAccess() {
- return this.publicNetworkAccess;
+ public CreateMode createMode() {
+ return this.createMode;
}
/**
- * Set the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is
- * optional but if passed in, must be 'Enabled' or 'Disabled'.
+ * Set the createMode property: The mode to create a new PostgreSQL server.
*
- * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @param createMode the createMode value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
- this.publicNetworkAccess = publicNetworkAccess;
+ public ServerInner withCreateMode(CreateMode createMode) {
+ this.createMode = createMode;
return this;
}
/**
- * Get the privateEndpointConnections property: List of private endpoint connections on a server.
+ * Get the tagsPropertiesTags property: Application-specific metadata in the form of key-value pairs.
+ *
+ * @return the tagsPropertiesTags value.
+ */
+ public Map tagsPropertiesTags() {
+ return this.tagsPropertiesTags;
+ }
+
+ /**
+ * Set the tagsPropertiesTags property: Application-specific metadata in the form of key-value pairs.
*
- * @return the privateEndpointConnections value.
+ * @param tagsPropertiesTags the tagsPropertiesTags value to set.
+ * @return the ServerInner object itself.
*/
- public List privateEndpointConnections() {
- return this.privateEndpointConnections;
+ public ServerInner withTagsPropertiesTags(Map tagsPropertiesTags) {
+ this.tagsPropertiesTags = tagsPropertiesTags;
+ return this;
}
/** {@inheritDoc} */
@@ -484,11 +515,20 @@ public void validate() {
if (sku() != null) {
sku().validate();
}
- if (storageProfile() != null) {
- storageProfile().validate();
+ if (storage() != null) {
+ storage().validate();
+ }
+ if (backup() != null) {
+ backup().validate();
+ }
+ if (network() != null) {
+ network().validate();
+ }
+ if (highAvailability() != null) {
+ highAvailability().validate();
}
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
+ if (maintenanceWindow() != null) {
+ maintenanceWindow().validate();
}
}
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerKeyInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerKeyInner.java
deleted file mode 100644
index d6dfab65ab03..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerKeyInner.java
+++ /dev/null
@@ -1,111 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.ServerKeyType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** A PostgreSQL Server key. */
-@JsonFlatten
-@Fluent
-public class ServerKeyInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerKeyInner.class);
-
- /*
- * Kind of encryption protector used to protect the key.
- */
- @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
- private String kind;
-
- /*
- * The key type like 'AzureKeyVault'.
- */
- @JsonProperty(value = "properties.serverKeyType")
- private ServerKeyType serverKeyType;
-
- /*
- * The URI of the key.
- */
- @JsonProperty(value = "properties.uri")
- private String uri;
-
- /*
- * The key creation date.
- */
- @JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationDate;
-
- /**
- * Get the kind property: Kind of encryption protector used to protect the key.
- *
- * @return the kind value.
- */
- public String kind() {
- return this.kind;
- }
-
- /**
- * Get the serverKeyType property: The key type like 'AzureKeyVault'.
- *
- * @return the serverKeyType value.
- */
- public ServerKeyType serverKeyType() {
- return this.serverKeyType;
- }
-
- /**
- * Set the serverKeyType property: The key type like 'AzureKeyVault'.
- *
- * @param serverKeyType the serverKeyType value to set.
- * @return the ServerKeyInner object itself.
- */
- public ServerKeyInner withServerKeyType(ServerKeyType serverKeyType) {
- this.serverKeyType = serverKeyType;
- return this;
- }
-
- /**
- * Get the uri property: The URI of the key.
- *
- * @return the uri value.
- */
- public String uri() {
- return this.uri;
- }
-
- /**
- * Set the uri property: The URI of the key.
- *
- * @param uri the uri value to set.
- * @return the ServerKeyInner object itself.
- */
- public ServerKeyInner withUri(String uri) {
- this.uri = uri;
- return this;
- }
-
- /**
- * Get the creationDate property: The key creation date.
- *
- * @return the creationDate value.
- */
- public OffsetDateTime creationDate() {
- return this.creationDate;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerSecurityAlertPolicyInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerSecurityAlertPolicyInner.java
deleted file mode 100644
index 8d0c48b2bb87..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/ServerSecurityAlertPolicyInner.java
+++ /dev/null
@@ -1,221 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.ServerSecurityAlertPolicyState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** A server security alert policy. */
-@JsonFlatten
-@Fluent
-public class ServerSecurityAlertPolicyInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerSecurityAlertPolicyInner.class);
-
- /*
- * Specifies the state of the policy, whether it is enabled or disabled.
- */
- @JsonProperty(value = "properties.state")
- private ServerSecurityAlertPolicyState state;
-
- /*
- * Specifies an array of alerts that are disabled. Allowed values are:
- * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
- */
- @JsonProperty(value = "properties.disabledAlerts")
- private List disabledAlerts;
-
- /*
- * Specifies an array of e-mail addresses to which the alert is sent.
- */
- @JsonProperty(value = "properties.emailAddresses")
- private List emailAddresses;
-
- /*
- * Specifies that the alert is sent to the account administrators.
- */
- @JsonProperty(value = "properties.emailAccountAdmins")
- private Boolean emailAccountAdmins;
-
- /*
- * Specifies the blob storage endpoint (e.g.
- * https://MyAccount.blob.core.windows.net). This blob storage will hold
- * all Threat Detection audit logs.
- */
- @JsonProperty(value = "properties.storageEndpoint")
- private String storageEndpoint;
-
- /*
- * Specifies the identifier key of the Threat Detection audit storage
- * account.
- */
- @JsonProperty(value = "properties.storageAccountAccessKey")
- private String storageAccountAccessKey;
-
- /*
- * Specifies the number of days to keep in the Threat Detection audit logs.
- */
- @JsonProperty(value = "properties.retentionDays")
- private Integer retentionDays;
-
- /**
- * Get the state property: Specifies the state of the policy, whether it is enabled or disabled.
- *
- * @return the state value.
- */
- public ServerSecurityAlertPolicyState state() {
- return this.state;
- }
-
- /**
- * Set the state property: Specifies the state of the policy, whether it is enabled or disabled.
- *
- * @param state the state value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state) {
- this.state = state;
- return this;
- }
-
- /**
- * Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are:
- * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.
- *
- * @return the disabledAlerts value.
- */
- public List disabledAlerts() {
- return this.disabledAlerts;
- }
-
- /**
- * Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are:
- * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.
- *
- * @param disabledAlerts the disabledAlerts value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAlerts) {
- this.disabledAlerts = disabledAlerts;
- return this;
- }
-
- /**
- * Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
- *
- * @return the emailAddresses value.
- */
- public List emailAddresses() {
- return this.emailAddresses;
- }
-
- /**
- * Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
- *
- * @param emailAddresses the emailAddresses value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withEmailAddresses(List emailAddresses) {
- this.emailAddresses = emailAddresses;
- return this;
- }
-
- /**
- * Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
- *
- * @return the emailAccountAdmins value.
- */
- public Boolean emailAccountAdmins() {
- return this.emailAccountAdmins;
- }
-
- /**
- * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
- *
- * @param emailAccountAdmins the emailAccountAdmins value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins) {
- this.emailAccountAdmins = emailAccountAdmins;
- return this;
- }
-
- /**
- * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g.
- * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- *
- * @return the storageEndpoint value.
- */
- public String storageEndpoint() {
- return this.storageEndpoint;
- }
-
- /**
- * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g.
- * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- *
- * @param storageEndpoint the storageEndpoint value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint) {
- this.storageEndpoint = storageEndpoint;
- return this;
- }
-
- /**
- * Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage
- * account.
- *
- * @return the storageAccountAccessKey value.
- */
- public String storageAccountAccessKey() {
- return this.storageAccountAccessKey;
- }
-
- /**
- * Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage
- * account.
- *
- * @param storageAccountAccessKey the storageAccountAccessKey value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey) {
- this.storageAccountAccessKey = storageAccountAccessKey;
- return this;
- }
-
- /**
- * Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
- *
- * @return the retentionDays value.
- */
- public Integer retentionDays() {
- return this.retentionDays;
- }
-
- /**
- * Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
- *
- * @param retentionDays the retentionDays value to set.
- * @return the ServerSecurityAlertPolicyInner object itself.
- */
- public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays) {
- this.retentionDays = retentionDays;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/VirtualNetworkRuleInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/VirtualNetworkRuleInner.java
deleted file mode 100644
index bb35751de614..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/VirtualNetworkRuleInner.java
+++ /dev/null
@@ -1,98 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.postgresql.models.VirtualNetworkRuleState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** A virtual network rule. */
-@JsonFlatten
-@Fluent
-public class VirtualNetworkRuleInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkRuleInner.class);
-
- /*
- * The ARM resource id of the virtual network subnet.
- */
- @JsonProperty(value = "properties.virtualNetworkSubnetId")
- private String virtualNetworkSubnetId;
-
- /*
- * Create firewall rule before the virtual network has vnet service
- * endpoint enabled.
- */
- @JsonProperty(value = "properties.ignoreMissingVnetServiceEndpoint")
- private Boolean ignoreMissingVnetServiceEndpoint;
-
- /*
- * Virtual Network Rule State
- */
- @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
- private VirtualNetworkRuleState state;
-
- /**
- * Get the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
- *
- * @return the virtualNetworkSubnetId value.
- */
- public String virtualNetworkSubnetId() {
- return this.virtualNetworkSubnetId;
- }
-
- /**
- * Set the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
- *
- * @param virtualNetworkSubnetId the virtualNetworkSubnetId value to set.
- * @return the VirtualNetworkRuleInner object itself.
- */
- public VirtualNetworkRuleInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId) {
- this.virtualNetworkSubnetId = virtualNetworkSubnetId;
- return this;
- }
-
- /**
- * Get the ignoreMissingVnetServiceEndpoint property: Create firewall rule before the virtual network has vnet
- * service endpoint enabled.
- *
- * @return the ignoreMissingVnetServiceEndpoint value.
- */
- public Boolean ignoreMissingVnetServiceEndpoint() {
- return this.ignoreMissingVnetServiceEndpoint;
- }
-
- /**
- * Set the ignoreMissingVnetServiceEndpoint property: Create firewall rule before the virtual network has vnet
- * service endpoint enabled.
- *
- * @param ignoreMissingVnetServiceEndpoint the ignoreMissingVnetServiceEndpoint value to set.
- * @return the VirtualNetworkRuleInner object itself.
- */
- public VirtualNetworkRuleInner withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) {
- this.ignoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint;
- return this;
- }
-
- /**
- * Get the state property: Virtual Network Rule State.
- *
- * @return the state value.
- */
- public VirtualNetworkRuleState state() {
- return this.state;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/VirtualNetworkSubnetUsageResultInner.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/VirtualNetworkSubnetUsageResultInner.java
new file mode 100644
index 000000000000..e1d0793f9092
--- /dev/null
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/models/VirtualNetworkSubnetUsageResultInner.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.postgresql.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.postgresql.models.DelegatedSubnetUsage;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Virtual network subnet usage data. */
+@Immutable
+public final class VirtualNetworkSubnetUsageResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkSubnetUsageResultInner.class);
+
+ /*
+ * The delegatedSubnetsUsage property.
+ */
+ @JsonProperty(value = "delegatedSubnetsUsage", access = JsonProperty.Access.WRITE_ONLY)
+ private List delegatedSubnetsUsage;
+
+ /**
+ * Get the delegatedSubnetsUsage property: The delegatedSubnetsUsage property.
+ *
+ * @return the delegatedSubnetsUsage value.
+ */
+ public List delegatedSubnetsUsage() {
+ return this.delegatedSubnetsUsage;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (delegatedSubnetsUsage() != null) {
+ delegatedSubnetsUsage().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CapabilityPropertiesImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CapabilityPropertiesImpl.java
new file mode 100644
index 000000000000..80dc3c89156c
--- /dev/null
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CapabilityPropertiesImpl.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.postgresql.implementation;
+
+import com.azure.resourcemanager.postgresql.fluent.models.CapabilityPropertiesInner;
+import com.azure.resourcemanager.postgresql.models.CapabilityProperties;
+import com.azure.resourcemanager.postgresql.models.ServerEditionCapability;
+import java.util.Collections;
+import java.util.List;
+
+public final class CapabilityPropertiesImpl implements CapabilityProperties {
+ private CapabilityPropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager;
+
+ CapabilityPropertiesImpl(
+ CapabilityPropertiesInner innerObject, com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String zone() {
+ return this.innerModel().zone();
+ }
+
+ public List supportedFlexibleServerEditions() {
+ List inner = this.innerModel().supportedFlexibleServerEditions();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CapabilityPropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.postgresql.PostgreSqlManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CheckNameAvailabilitiesClientImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CheckNameAvailabilitiesClientImpl.java
index 4efbaad126eb..6f403c3eb7d5 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CheckNameAvailabilitiesClientImpl.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/CheckNameAvailabilitiesClientImpl.java
@@ -58,7 +58,7 @@ public final class CheckNameAvailabilitiesClientImpl implements CheckNameAvailab
@ServiceInterface(name = "PostgreSqlManagement")
private interface CheckNameAvailabilitiesService {
@Headers({"Content-Type: application/json"})
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/checkNameAvailability")
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> execute(
@@ -101,7 +101,6 @@ private Mono> executeWithResponseAsync(
} else {
nameAvailabilityRequest.validate();
}
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -109,7 +108,7 @@ private Mono> executeWithResponseAsync(
service
.execute(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
nameAvailabilityRequest,
accept,
@@ -149,13 +148,12 @@ private Mono> executeWithResponseAsync(
} else {
nameAvailabilityRequest.validate();
}
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.execute(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
nameAvailabilityRequest,
accept,
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationImpl.java
index beeee8868b35..b17ed60fe2a1 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationImpl.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationImpl.java
@@ -4,9 +4,11 @@
package com.azure.resourcemanager.postgresql.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationInner;
import com.azure.resourcemanager.postgresql.models.Configuration;
+import com.azure.resourcemanager.postgresql.models.ConfigurationDataType;
public final class ConfigurationImpl implements Configuration, Configuration.Definition, Configuration.Update {
private ConfigurationInner innerObject;
@@ -25,6 +27,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String value() {
return this.innerModel().value();
}
@@ -37,7 +43,7 @@ public String defaultValue() {
return this.innerModel().defaultValue();
}
- public String dataType() {
+ public ConfigurationDataType dataType() {
return this.innerModel().dataType();
}
@@ -63,7 +69,7 @@ private com.azure.resourcemanager.postgresql.PostgreSqlManager manager() {
private String configurationName;
- public ConfigurationImpl withExistingServer(String resourceGroupName, String serverName) {
+ public ConfigurationImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
this.resourceGroupName = resourceGroupName;
this.serverName = serverName;
return this;
@@ -74,7 +80,7 @@ public Configuration create() {
serviceManager
.serviceClient()
.getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
+ .put(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
return this;
}
@@ -83,7 +89,7 @@ public Configuration create(Context context) {
serviceManager
.serviceClient()
.getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), context);
+ .put(resourceGroupName, serverName, configurationName, this.innerModel(), context);
return this;
}
@@ -102,7 +108,7 @@ public Configuration apply() {
serviceManager
.serviceClient()
.getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
+ .update(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
return this;
}
@@ -111,7 +117,7 @@ public Configuration apply(Context context) {
serviceManager
.serviceClient()
.getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), context);
+ .update(resourceGroupName, serverName, configurationName, this.innerModel(), context);
return this;
}
@@ -120,7 +126,7 @@ public Configuration apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = Utils.getValueFromIdByName(innerObject.id(), "servers");
+ this.serverName = Utils.getValueFromIdByName(innerObject.id(), "flexibleServers");
this.configurationName = Utils.getValueFromIdByName(innerObject.id(), "configurations");
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationListResultImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationListResultImpl.java
deleted file mode 100644
index 611e72323e0c..000000000000
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationListResultImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.postgresql.implementation;
-
-import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationInner;
-import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationListResultInner;
-import com.azure.resourcemanager.postgresql.models.Configuration;
-import com.azure.resourcemanager.postgresql.models.ConfigurationListResult;
-import java.util.Collections;
-import java.util.List;
-import java.util.stream.Collectors;
-
-public final class ConfigurationListResultImpl implements ConfigurationListResult {
- private ConfigurationListResultInner innerObject;
-
- private final com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager;
-
- ConfigurationListResultImpl(
- ConfigurationListResultInner innerObject,
- com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public List value() {
- List inner = this.innerModel().value();
- if (inner != null) {
- return Collections
- .unmodifiableList(
- inner
- .stream()
- .map(inner1 -> new ConfigurationImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return Collections.emptyList();
- }
- }
-
- public ConfigurationListResultInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.postgresql.PostgreSqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsClientImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsClientImpl.java
index ed144ca55b0e..664cd8f6a7dd 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsClientImpl.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsClientImpl.java
@@ -11,6 +11,7 @@
import com.azure.core.annotation.Headers;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
@@ -33,7 +34,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.ConfigurationsClient;
import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationInner;
-import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationListResultInner;
+import com.azure.resourcemanager.postgresql.models.ConfigurationListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,26 +68,24 @@ public final class ConfigurationsClientImpl implements ConfigurationsClient {
@ServiceInterface(name = "PostgreSqlManagement")
private interface ConfigurationsService {
@Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/configurations/{configurationName}")
- @ExpectedResponses({200, 202})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/configurations")
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
+ Mono> listByServer(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("serverName") String serverName,
- @PathParam("configurationName") String configurationName,
- @BodyParam("application/json") ConfigurationInner parameters,
@HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/configurations/{configurationName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/configurations/{configurationName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -100,36 +99,63 @@ Mono> get(
Context context);
@Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/configurations")
- @ExpectedResponses({200})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/configurations/{configurationName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serverName") String serverName,
+ @PathParam("configurationName") String configurationName,
+ @BodyParam("application/json") ConfigurationInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/configurations/{configurationName}")
+ @ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServer(
+ Mono>> put(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("serverName") String serverName,
+ @PathParam("configurationName") String configurationName,
+ @BodyParam("application/json") ConfigurationInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByServerNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept,
Context context);
}
/**
- * Updates a configuration of a server.
+ * List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
+ * @return a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ private Mono> listByServerSinglePageAsync(
+ String resourceGroupName, String serverName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -149,54 +175,45 @@ private Mono>> createOrUpdateWithResponseAsync(
if (serverName == null) {
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
- .createOrUpdate(
+ .listByServer(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
- configurationName,
- parameters,
accept,
context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Updates a configuration of a server.
+ * List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
+ * @return a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
+ private Mono> listByServerSinglePageAsync(
+ String resourceGroupName, String serverName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -216,209 +233,94 @@ private Mono>> createOrUpdateWithResponseAsync(
if (serverName == null) {
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .createOrUpdate(
+ .listByServer(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
- configurationName,
- parameters,
accept,
- context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, Context.NONE);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters, context);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public SyncPoller, ConfigurationInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters).getSyncPoller();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public SyncPoller, ConfigurationInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context)
- .getSyncPoller();
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
}
/**
- * Updates a configuration of a server.
+ * List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
+ * @return a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
+ return new PagedFlux<>(
+ () -> listByServerSinglePageAsync(resourceGroupName, serverName),
+ nextLink -> listByServerNextSinglePageAsync(nextLink));
}
/**
- * Updates a configuration of a server.
+ * List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
+ * @return a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByServerAsync(
+ String resourceGroupName, String serverName, Context context) {
+ return new PagedFlux<>(
+ () -> listByServerSinglePageAsync(resourceGroupName, serverName, context),
+ nextLink -> listByServerNextSinglePageAsync(nextLink, context));
}
/**
- * Updates a configuration of a server.
+ * List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
+ * @return a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ConfigurationInner createOrUpdate(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- return createOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters).block();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByServer(String resourceGroupName, String serverName) {
+ return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName));
}
/**
- * Updates a configuration of a server.
+ * List all the configurations in a given server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Configuration.
+ * @return a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ConfigurationInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- String configurationName,
- ConfigurationInner parameters,
- Context context) {
- return createOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context).block();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByServer(
+ String resourceGroupName, String serverName, Context context) {
+ return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName, context));
}
/**
@@ -458,7 +360,6 @@ private Mono> getWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -466,7 +367,7 @@ private Mono> getWithResponseAsync(
service
.get(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
@@ -514,13 +415,12 @@ private Mono> getWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.get(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
@@ -588,18 +488,20 @@ public Response getWithResponse(
}
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(
- String resourceGroupName, String serverName) {
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -619,41 +521,53 @@ private Mono> listByServerSinglePageAsync(
if (serverName == null) {
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
- final String apiVersion = "2017-12-01";
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
- .listByServer(
+ .update(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
+ configurationName,
+ parameters,
accept,
context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(
- String resourceGroupName, String serverName, Context context) {
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -673,85 +587,580 @@ private Mono> listByServerSinglePageAsync(
if (serverName == null) {
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
- final String apiVersion = "2017-12-01";
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByServer(
+ .update(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
+ configurationName,
+ parameters,
accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
+ context);
}
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
- return new PagedFlux<>(() -> listByServerSinglePageAsync(resourceGroupName, serverName));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, ConfigurationInner> beginUpdateAsync(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, Context.NONE);
}
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(
- String resourceGroupName, String serverName, Context context) {
- return new PagedFlux<>(() -> listByServerSinglePageAsync(resourceGroupName, serverName, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, ConfigurationInner> beginUpdateAsync(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, context);
}
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, ConfigurationInner> beginUpdate(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ return beginUpdateAsync(resourceGroupName, serverName, configurationName, parameters).getSyncPoller();
}
/**
- * List all the configurations in a given server.
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, ConfigurationInner> beginUpdate(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ return beginUpdateAsync(resourceGroupName, serverName, configurationName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConfigurationInner update(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ return updateAsync(resourceGroupName, serverName, configurationName, parameters).block();
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConfigurationInner update(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ return updateAsync(resourceGroupName, serverName, configurationName, parameters, context).block();
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> putWithResponseAsync(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .put(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serverName,
+ configurationName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> putWithResponseAsync(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .put(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serverName,
+ configurationName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, ConfigurationInner> beginPutAsync(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ Mono>> mono =
+ putWithResponseAsync(resourceGroupName, serverName, configurationName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, Context.NONE);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, ConfigurationInner> beginPutAsync(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ putWithResponseAsync(resourceGroupName, serverName, configurationName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, context);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, ConfigurationInner> beginPut(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ return beginPutAsync(resourceGroupName, serverName, configurationName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, ConfigurationInner> beginPut(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ return beginPutAsync(resourceGroupName, serverName, configurationName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Updates a configuration of a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono putAsync(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ return beginPutAsync(resourceGroupName, serverName, configurationName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono putAsync(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ return beginPutAsync(resourceGroupName, serverName, configurationName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConfigurationInner put(
+ String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
+ return putAsync(resourceGroupName, serverName, configurationName, parameters).block();
+ }
+
+ /**
+ * Updates a configuration of a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param configurationName The name of the server configuration.
+ * @param parameters The required parameters for updating a server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ConfigurationInner put(
+ String resourceGroupName,
+ String serverName,
+ String configurationName,
+ ConfigurationInner parameters,
+ Context context) {
+ return putAsync(resourceGroupName, serverName, configurationName, parameters, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(
- String resourceGroupName, String serverName, Context context) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByServerNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByServerNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByServerNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByServerNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
}
}
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsImpl.java
index d82df707d45c..3b6149a154b9 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsImpl.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/ConfigurationsImpl.java
@@ -28,6 +28,17 @@ public ConfigurationsImpl(
this.serviceManager = serviceManager;
}
+ public PagedIterable listByServer(String resourceGroupName, String serverName) {
+ PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName);
+ return Utils.mapPage(inner, inner1 -> new ConfigurationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByServer(resourceGroupName, serverName, context);
+ return Utils.mapPage(inner, inner1 -> new ConfigurationImpl(inner1, this.manager()));
+ }
+
public Configuration get(String resourceGroupName, String serverName, String configurationName) {
ConfigurationInner inner = this.serviceClient().get(resourceGroupName, serverName, configurationName);
if (inner != null) {
@@ -52,17 +63,6 @@ public Response getWithResponse(
}
}
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName);
- return Utils.mapPage(inner, inner1 -> new ConfigurationImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByServer(resourceGroupName, serverName, context);
- return Utils.mapPage(inner, inner1 -> new ConfigurationImpl(inner1, this.manager()));
- }
-
public Configuration getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
@@ -72,12 +72,13 @@ public Configuration getById(String id) {
String
.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String serverName = Utils.getValueFromIdByName(id, "servers");
+ String serverName = Utils.getValueFromIdByName(id, "flexibleServers");
if (serverName == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'servers'.", id)));
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
}
String configurationName = Utils.getValueFromIdByName(id, "configurations");
if (configurationName == null) {
@@ -99,12 +100,13 @@ public Response getByIdWithResponse(String id, Context context) {
String
.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String serverName = Utils.getValueFromIdByName(id, "servers");
+ String serverName = Utils.getValueFromIdByName(id, "flexibleServers");
if (serverName == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'servers'.", id)));
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
}
String configurationName = Utils.getValueFromIdByName(id, "configurations");
if (configurationName == null) {
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabaseImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabaseImpl.java
index eb018f74a97e..34a869deea11 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabaseImpl.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabaseImpl.java
@@ -4,15 +4,21 @@
package com.azure.resourcemanager.postgresql.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresql.fluent.models.DatabaseInner;
import com.azure.resourcemanager.postgresql.models.Database;
-public final class DatabaseImpl implements Database, Database.Definition, Database.Update {
+public final class DatabaseImpl implements Database, Database.Definition {
private DatabaseInner innerObject;
private final com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager;
+ DatabaseImpl(DatabaseInner innerObject, com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
public String id() {
return this.innerModel().id();
}
@@ -25,6 +31,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String charset() {
return this.innerModel().charset();
}
@@ -47,7 +57,7 @@ private com.azure.resourcemanager.postgresql.PostgreSqlManager manager() {
private String databaseName;
- public DatabaseImpl withExistingServer(String resourceGroupName, String serverName) {
+ public DatabaseImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
this.resourceGroupName = resourceGroupName;
this.serverName = serverName;
return this;
@@ -58,7 +68,7 @@ public Database create() {
serviceManager
.serviceClient()
.getDatabases()
- .createOrUpdate(resourceGroupName, serverName, databaseName, this.innerModel(), Context.NONE);
+ .create(resourceGroupName, serverName, databaseName, this.innerModel(), Context.NONE);
return this;
}
@@ -67,7 +77,7 @@ public Database create(Context context) {
serviceManager
.serviceClient()
.getDatabases()
- .createOrUpdate(resourceGroupName, serverName, databaseName, this.innerModel(), context);
+ .create(resourceGroupName, serverName, databaseName, this.innerModel(), context);
return this;
}
@@ -77,36 +87,6 @@ public Database create(Context context) {
this.databaseName = name;
}
- public DatabaseImpl update() {
- return this;
- }
-
- public Database apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getDatabases()
- .createOrUpdate(resourceGroupName, serverName, databaseName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Database apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getDatabases()
- .createOrUpdate(resourceGroupName, serverName, databaseName, this.innerModel(), context);
- return this;
- }
-
- DatabaseImpl(DatabaseInner innerObject, com.azure.resourcemanager.postgresql.PostgreSqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = Utils.getValueFromIdByName(innerObject.id(), "servers");
- this.databaseName = Utils.getValueFromIdByName(innerObject.id(), "databases");
- }
-
public Database refresh() {
this.innerObject =
serviceManager
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabasesClientImpl.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabasesClientImpl.java
index f6df68301f09..3ea851a00f92 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabasesClientImpl.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/implementation/DatabasesClientImpl.java
@@ -69,11 +69,11 @@ public final class DatabasesClientImpl implements DatabasesClient {
private interface DatabasesService {
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/databases/{databaseName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/databases/{databaseName}")
@ExpectedResponses({200, 201, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
+ Mono>> create(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@@ -86,8 +86,8 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/databases/{databaseName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/databases/{databaseName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -102,8 +102,8 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/databases/{databaseName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/databases/{databaseName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -118,8 +118,8 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
- + "/servers/{serverName}/databases")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql"
+ + "/flexibleServers/{serverName}/databases")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByServer(
@@ -130,6 +130,16 @@ Mono> listByServer(
@PathParam("serverName") String serverName,
@HeaderParam("Accept") String accept,
Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByServerNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
}
/**
@@ -145,7 +155,7 @@ Mono> listByServer(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
+ private Mono>> createWithResponseAsync(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -174,15 +184,14 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
- .createOrUpdate(
+ .create(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
@@ -207,7 +216,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(
+ private Mono>> createWithResponseAsync(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -236,13 +245,12 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
- final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .createOrUpdate(
+ .create(
this.client.getEndpoint(),
- apiVersion,
+ this.client.getApiVersion(),
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
@@ -265,10 +273,10 @@ private Mono>> createOrUpdateWithResponseAsync(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(
+ private PollerFlux, DatabaseInner> beginCreateAsync(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) {
Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, databaseName, parameters);
+ createWithResponseAsync(resourceGroupName, serverName, databaseName, parameters);
return this
.client
.getLroResult(
@@ -289,11 +297,11 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(
+ private PollerFlux, DatabaseInner> beginCreateAsync(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- createOrUpdateWithResponseAsync(resourceGroupName, serverName, databaseName, parameters, context);
+ createWithResponseAsync(resourceGroupName, serverName, databaseName, parameters, context);
return this
.client
.getLroResult(
@@ -313,9 +321,9 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public SyncPoller, DatabaseInner> beginCreateOrUpdate(
+ public SyncPoller, DatabaseInner> beginCreate(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).getSyncPoller();
+ return beginCreateAsync(resourceGroupName, serverName, databaseName, parameters).getSyncPoller();
}
/**
@@ -332,10 +340,9 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public SyncPoller, DatabaseInner> beginCreateOrUpdate(
+ public SyncPoller, DatabaseInner> beginCreate(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters, context)
- .getSyncPoller();
+ return beginCreateAsync(resourceGroupName, serverName, databaseName, parameters, context).getSyncPoller();
}
/**
@@ -351,9 +358,9 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
+ private Mono createAsync(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters)
+ return beginCreateAsync(resourceGroupName, serverName, databaseName, parameters)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -372,9 +379,9 @@ private Mono createOrUpdateAsync(
* @return represents a Database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
+ private Mono