scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -211,6 +230,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -218,9 +250,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -241,7 +275,7 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.postgresql")
.append("/")
- .append("1.0.2");
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -258,10 +292,15 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
@@ -269,7 +308,7 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -282,7 +321,11 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
}
}
- /** @return Resource collection API of Servers. */
+ /**
+ * Gets the resource collection API of Servers. It manages Server.
+ *
+ * @return Resource collection API of Servers.
+ */
public Servers servers() {
if (this.servers == null) {
this.servers = new ServersImpl(clientObject.getServers(), this);
@@ -290,7 +333,11 @@ public Servers servers() {
return servers;
}
- /** @return Resource collection API of Replicas. */
+ /**
+ * Gets the resource collection API of Replicas.
+ *
+ * @return Resource collection API of Replicas.
+ */
public Replicas replicas() {
if (this.replicas == null) {
this.replicas = new ReplicasImpl(clientObject.getReplicas(), this);
@@ -298,7 +345,11 @@ public Replicas replicas() {
return replicas;
}
- /** @return Resource collection API of FirewallRules. */
+ /**
+ * Gets the resource collection API of FirewallRules. It manages FirewallRule.
+ *
+ * @return Resource collection API of FirewallRules.
+ */
public FirewallRules firewallRules() {
if (this.firewallRules == null) {
this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
@@ -306,7 +357,11 @@ public FirewallRules firewallRules() {
return firewallRules;
}
- /** @return Resource collection API of VirtualNetworkRules. */
+ /**
+ * Gets the resource collection API of VirtualNetworkRules. It manages VirtualNetworkRule.
+ *
+ * @return Resource collection API of VirtualNetworkRules.
+ */
public VirtualNetworkRules virtualNetworkRules() {
if (this.virtualNetworkRules == null) {
this.virtualNetworkRules = new VirtualNetworkRulesImpl(clientObject.getVirtualNetworkRules(), this);
@@ -314,7 +369,11 @@ public VirtualNetworkRules virtualNetworkRules() {
return virtualNetworkRules;
}
- /** @return Resource collection API of Databases. */
+ /**
+ * Gets the resource collection API of Databases. It manages Database.
+ *
+ * @return Resource collection API of Databases.
+ */
public Databases databases() {
if (this.databases == null) {
this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
@@ -322,7 +381,11 @@ public Databases databases() {
return databases;
}
- /** @return Resource collection API of Configurations. */
+ /**
+ * Gets the resource collection API of Configurations. It manages Configuration.
+ *
+ * @return Resource collection API of Configurations.
+ */
public Configurations configurations() {
if (this.configurations == null) {
this.configurations = new ConfigurationsImpl(clientObject.getConfigurations(), this);
@@ -330,7 +393,11 @@ public Configurations configurations() {
return configurations;
}
- /** @return Resource collection API of ServerParameters. */
+ /**
+ * Gets the resource collection API of ServerParameters.
+ *
+ * @return Resource collection API of ServerParameters.
+ */
public ServerParameters serverParameters() {
if (this.serverParameters == null) {
this.serverParameters = new ServerParametersImpl(clientObject.getServerParameters(), this);
@@ -338,7 +405,11 @@ public ServerParameters serverParameters() {
return serverParameters;
}
- /** @return Resource collection API of LogFiles. */
+ /**
+ * Gets the resource collection API of LogFiles.
+ *
+ * @return Resource collection API of LogFiles.
+ */
public LogFiles logFiles() {
if (this.logFiles == null) {
this.logFiles = new LogFilesImpl(clientObject.getLogFiles(), this);
@@ -346,7 +417,11 @@ public LogFiles logFiles() {
return logFiles;
}
- /** @return Resource collection API of ServerAdministrators. */
+ /**
+ * Gets the resource collection API of ServerAdministrators.
+ *
+ * @return Resource collection API of ServerAdministrators.
+ */
public ServerAdministrators serverAdministrators() {
if (this.serverAdministrators == null) {
this.serverAdministrators = new ServerAdministratorsImpl(clientObject.getServerAdministrators(), this);
@@ -354,7 +429,11 @@ public ServerAdministrators serverAdministrators() {
return serverAdministrators;
}
- /** @return Resource collection API of RecoverableServers. */
+ /**
+ * Gets the resource collection API of RecoverableServers.
+ *
+ * @return Resource collection API of RecoverableServers.
+ */
public RecoverableServers recoverableServers() {
if (this.recoverableServers == null) {
this.recoverableServers = new RecoverableServersImpl(clientObject.getRecoverableServers(), this);
@@ -362,7 +441,11 @@ public RecoverableServers recoverableServers() {
return recoverableServers;
}
- /** @return Resource collection API of ServerBasedPerformanceTiers. */
+ /**
+ * Gets the resource collection API of ServerBasedPerformanceTiers.
+ *
+ * @return Resource collection API of ServerBasedPerformanceTiers.
+ */
public ServerBasedPerformanceTiers serverBasedPerformanceTiers() {
if (this.serverBasedPerformanceTiers == null) {
this.serverBasedPerformanceTiers
@@ -371,7 +454,11 @@ public ServerBasedPerformanceTiers serverBasedPerformanceTiers() {
return serverBasedPerformanceTiers;
}
- /** @return Resource collection API of LocationBasedPerformanceTiers. */
+ /**
+ * Gets the resource collection API of LocationBasedPerformanceTiers.
+ *
+ * @return Resource collection API of LocationBasedPerformanceTiers.
+ */
public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
if (this.locationBasedPerformanceTiers == null) {
this.locationBasedPerformanceTiers
@@ -380,7 +467,11 @@ public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
return locationBasedPerformanceTiers;
}
- /** @return Resource collection API of CheckNameAvailabilities. */
+ /**
+ * Gets the resource collection API of CheckNameAvailabilities.
+ *
+ * @return Resource collection API of CheckNameAvailabilities.
+ */
public CheckNameAvailabilities checkNameAvailabilities() {
if (this.checkNameAvailabilities == null) {
this.checkNameAvailabilities
@@ -389,7 +480,11 @@ public CheckNameAvailabilities checkNameAvailabilities() {
return checkNameAvailabilities;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -397,7 +492,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of ServerSecurityAlertPolicies. */
+ /**
+ * Gets the resource collection API of ServerSecurityAlertPolicies. It manages ServerSecurityAlertPolicy.
+ *
+ * @return Resource collection API of ServerSecurityAlertPolicies.
+ */
public ServerSecurityAlertPolicies serverSecurityAlertPolicies() {
if (this.serverSecurityAlertPolicies == null) {
this.serverSecurityAlertPolicies
@@ -406,7 +505,11 @@ public ServerSecurityAlertPolicies serverSecurityAlertPolicies() {
return serverSecurityAlertPolicies;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections
@@ -415,7 +518,11 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -423,7 +530,11 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /** @return Resource collection API of ServerKeys. */
+ /**
+ * Gets the resource collection API of ServerKeys. It manages ServerKey.
+ *
+ * @return Resource collection API of ServerKeys.
+ */
public ServerKeys serverKeys() {
if (this.serverKeys == null) {
this.serverKeys = new ServerKeysImpl(clientObject.getServerKeys(), this);
@@ -432,8 +543,10 @@ public ServerKeys serverKeys() {
}
/**
- * @return Wrapped service client PostgreSqlManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets wrapped service client PostgreSqlManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client PostgreSqlManagementClient.
*/
public PostgreSqlManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/CheckNameAvailabilitiesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/CheckNameAvailabilitiesClient.java
index a1e7e983e99bb..11f2bfb45ad3f 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/CheckNameAvailabilitiesClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/CheckNameAvailabilitiesClient.java
@@ -10,24 +10,40 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresql.fluent.models.NameAvailabilityInner;
import com.azure.resourcemanager.postgresql.models.NameAvailabilityRequest;
+import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient.
+ */
public interface CheckNameAvailabilitiesClient {
/**
* Check the availability of name for resource.
- *
+ *
* @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @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 resource name availability.
+ * @return represents a resource name availability along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NameAvailabilityInner execute(NameAvailabilityRequest nameAvailabilityRequest);
+ Mono> executeWithResponseAsync(NameAvailabilityRequest nameAvailabilityRequest);
+
+ /**
+ * Check the availability of name for resource.
+ *
+ * @param nameAvailabilityRequest The required parameters for checking if resource name is available.
+ * @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 resource name availability on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono executeAsync(NameAvailabilityRequest nameAvailabilityRequest);
/**
* Check the availability of name for resource.
- *
+ *
* @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -38,4 +54,16 @@ public interface CheckNameAvailabilitiesClient {
@ServiceMethod(returns = ReturnType.SINGLE)
Response executeWithResponse(NameAvailabilityRequest nameAvailabilityRequest,
Context context);
+
+ /**
+ * Check the availability of name for resource.
+ *
+ * @param nameAvailabilityRequest The required parameters for checking if resource name is available.
+ * @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 resource name availability.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NameAvailabilityInner execute(NameAvailabilityRequest nameAvailabilityRequest);
}
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 f9b690b877b11..cf30d9d6db049 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
@@ -6,19 +6,25 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ConfigurationsClient.
+ */
public interface ConfigurationsClient {
/**
* 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.
@@ -28,13 +34,45 @@ public interface ConfigurationsClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents a Configuration along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
+ String configurationName, ConfigurationInner parameters);
+
+ /**
+ * 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 the {@link PollerFlux} for polling of represents a Configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String serverName, String configurationName, ConfigurationInner parameters);
+
+ /**
+ * 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 the {@link SyncPoller} for polling of represents a Configuration.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationInner> beginCreateOrUpdate(String resourceGroupName,
String serverName, String configurationName, ConfigurationInner parameters);
/**
* 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.
@@ -43,7 +81,7 @@ SyncPoller, ConfigurationInner> beginCreateOrUpda
* @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 Configuration along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of represents a Configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationInner> beginCreateOrUpdate(String resourceGroupName,
@@ -51,7 +89,23 @@ SyncPoller, ConfigurationInner> beginCreateOrUpda
/**
* 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 represents a Configuration on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String serverName, String configurationName,
+ ConfigurationInner parameters);
+
+ /**
+ * 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.
@@ -67,7 +121,7 @@ ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, S
/**
* 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.
@@ -84,21 +138,37 @@ ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, S
/**
* 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.
+ * @return information about a configuration of server along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner get(String resourceGroupName, String serverName, String configurationName);
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -112,29 +182,56 @@ ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, S
Response getWithResponse(String resourceGroupName, String serverName, String configurationName,
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);
+
+ /**
+ * 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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(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.
* @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 a list of server configurations as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a list of server configurations as paginated response with {@link PagedIterable}.
*/
@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/DatabasesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/DatabasesClient.java
index 7237e39815a62..3439114bdcda9 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
@@ -6,19 +6,25 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.DatabaseInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in DatabasesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in DatabasesClient.
+ */
public interface DatabasesClient {
/**
* Creates a new database or updates an existing database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -28,13 +34,45 @@ public interface DatabasesClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents a Database along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
+ String databaseName, DatabaseInner parameters);
+
+ /**
+ * Creates a new database or updates an existing database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @param parameters The required parameters for creating or updating a database.
+ * @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 {@link PollerFlux} for polling of represents a Database.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String serverName, String databaseName, DatabaseInner parameters);
+
+ /**
+ * Creates a new database or updates an existing database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @param parameters The required parameters for creating or updating a database.
+ * @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 {@link SyncPoller} for polling of represents a Database.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName,
String serverName, String databaseName, DatabaseInner parameters);
/**
* Creates a new database or updates an existing database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -43,7 +81,7 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate(String
* @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 Database along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of represents a Database.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName,
@@ -51,7 +89,23 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate(String
/**
* Creates a new database or updates an existing database.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @param parameters The required parameters for creating or updating a database.
+ * @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 Database on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName,
+ DatabaseInner parameters);
+
+ /**
+ * Creates a new database or updates an existing database.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -67,7 +121,7 @@ DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String
/**
* Creates a new database or updates an existing database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -84,7 +138,7 @@ DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String
/**
* Deletes a database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -93,12 +147,42 @@ DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
+ String databaseName);
+
+ /**
+ * Deletes a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName,
+ String databaseName);
+
+ /**
+ * Deletes a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, String databaseName);
/**
* Deletes a database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -106,7 +190,7 @@ DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String
* @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 {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, String databaseName,
@@ -114,7 +198,21 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes a database.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serverName, String databaseName);
+
+ /**
+ * Deletes a database.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -127,7 +225,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes a database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -141,21 +239,36 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Gets information about a database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @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 database.
+ * @return information about a database along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatabaseInner get(String resourceGroupName, String serverName, String databaseName);
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String databaseName);
+
+ /**
+ * Gets information about a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @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 database on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String databaseName);
/**
* Gets information about a database.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
@@ -169,29 +282,56 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
Response getWithResponse(String resourceGroupName, String serverName, String databaseName,
Context context);
+ /**
+ * Gets information about a database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param databaseName The name of the database.
+ * @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 database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner get(String resourceGroupName, String serverName, String databaseName);
+
+ /**
+ * List all the databases 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 databases as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(String resourceGroupName, String serverName);
+
/**
* List all the databases 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 databases.
+ * @return a List of databases as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
/**
* List all the databases 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 databases.
+ * @return a List of databases as paginated response with {@link PagedIterable}.
*/
@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/FirewallRulesClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/FirewallRulesClient.java
index f04761601d245..48e7e02dcf821 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
@@ -6,19 +6,25 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.FirewallRuleInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in FirewallRulesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in FirewallRulesClient.
+ */
public interface FirewallRulesClient {
/**
* Creates a new firewall rule or updates an existing firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -28,13 +34,45 @@ public interface FirewallRulesClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents a server firewall rule along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName,
+ String firewallRuleName, FirewallRuleInner parameters);
+
+ /**
+ * Creates a new firewall rule or updates an existing firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall rule.
+ * @param parameters The required parameters for creating or updating a firewall 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 {@link PollerFlux} for polling of represents a server firewall rule.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, FirewallRuleInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String serverName, String firewallRuleName, FirewallRuleInner parameters);
+
+ /**
+ * Creates a new firewall rule or updates an existing firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall rule.
+ * @param parameters The required parameters for creating or updating a firewall 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 {@link SyncPoller} for polling of represents a server firewall rule.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName,
String serverName, String firewallRuleName, FirewallRuleInner parameters);
/**
* Creates a new firewall rule or updates an existing firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -43,7 +81,7 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
* @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 server firewall rule along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of represents a server firewall rule.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, FirewallRuleInner> beginCreateOrUpdate(String resourceGroupName,
@@ -51,7 +89,23 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
/**
* Creates a new firewall rule or updates an existing firewall rule.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall rule.
+ * @param parameters The required parameters for creating or updating a firewall 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 represents a server firewall rule on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName,
+ FirewallRuleInner parameters);
+
+ /**
+ * Creates a new firewall rule or updates an existing firewall rule.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -67,7 +121,7 @@ FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, St
/**
* Creates a new firewall rule or updates an existing firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -84,7 +138,7 @@ FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, St
/**
* Deletes a server firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -93,13 +147,43 @@ FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, St
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
+ String firewallRuleName);
+
+ /**
+ * Deletes a server firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall 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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName,
+ String firewallRuleName);
+
+ /**
+ * Deletes a server firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall 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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
String firewallRuleName);
/**
* Deletes a server firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -107,7 +191,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, String firewallRuleName,
@@ -115,7 +199,21 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes a server firewall rule.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall 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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serverName, String firewallRuleName);
+
+ /**
+ * Deletes a server firewall rule.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -128,7 +226,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes a server firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -142,21 +240,37 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Gets information about a server firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall 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 information about a server firewall rule.
+ * @return information about a server firewall rule along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner get(String resourceGroupName, String serverName, String firewallRuleName);
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName,
+ String firewallRuleName);
+
+ /**
+ * Gets information about a server firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall 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 information about a server firewall rule on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName, String firewallRuleName);
/**
* Gets information about a server firewall rule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
@@ -170,29 +284,56 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
Response getWithResponse(String resourceGroupName, String serverName, String firewallRuleName,
Context context);
+ /**
+ * Gets information about a server firewall rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param firewallRuleName The name of the server firewall 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 information about a server firewall rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FirewallRuleInner get(String resourceGroupName, String serverName, String firewallRuleName);
+
+ /**
+ * 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.
+ * @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 firewall rules as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(String resourceGroupName, String serverName);
+
/**
* 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.
* @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 firewall rules.
+ * @return a list of firewall rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
/**
* 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.
* @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 firewall rules.
+ * @return a list of firewall rules as paginated response with {@link PagedIterable}.
*/
@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/LocationBasedPerformanceTiersClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/LocationBasedPerformanceTiersClient.java
index 6fd31abd4e3c2..054f70789f070 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/LocationBasedPerformanceTiersClient.java
@@ -6,33 +6,48 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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 LocationBasedPerformanceTiersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in LocationBasedPerformanceTiersClient.
+ */
public interface LocationBasedPerformanceTiersClient {
/**
* List all the performance tiers 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 a list of performance tiers as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String locationName);
+
+ /**
+ * List all the performance tiers 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 as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName);
/**
* List all the performance tiers 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 a list of performance tiers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(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
index 3e44299a7a46c..876d994380f26 100644
--- 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
@@ -6,35 +6,51 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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. */
+/**
+ * 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.
+ * @return a list of log files as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(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.
+ * @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 as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a list of log files as paginated response with {@link PagedIterable}.
*/
@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/OperationsClient.java b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/OperationsClient.java
index 0a3ef6d70390d..d805dda73f989 100644
--- a/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/OperationsClient.java
+++ b/sdk/postgresql/azure-resourcemanager-postgresql/src/main/java/com/azure/resourcemanager/postgresql/fluent/OperationsClient.java
@@ -9,22 +9,36 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresql.fluent.models.OperationListResultInner;
+import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Lists all of the available REST API operations.
- *
+ *
* @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 resource provider operations.
+ * @return a list of resource provider operations along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationListResultInner list();
+ Mono> listWithResponseAsync();
+
+ /**
+ * Lists all of the available REST API operations.
+ *
+ * @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 resource provider operations on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono listAsync();
/**
* Lists all of the available REST API operations.
- *
+ *
* @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.
@@ -33,4 +47,14 @@ public interface OperationsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(Context context);
+
+ /**
+ * Lists all of the available REST API operations.
+ *
+ * @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 resource provider operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationListResultInner list();
}
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 3d7521329e2d5..4f89283f8f006 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
@@ -7,158 +7,160 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for PostgreSqlManagementClient class. */
+/**
+ * The interface for PostgreSqlManagementClient class.
+ */
public interface PostgreSqlManagementClient {
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the ServersClient object to access its operations.
- *
+ *
* @return the ServersClient object.
*/
ServersClient getServers();
/**
* Gets the ReplicasClient object to access its operations.
- *
+ *
* @return the ReplicasClient object.
*/
ReplicasClient getReplicas();
/**
* Gets the FirewallRulesClient object to access its operations.
- *
+ *
* @return the FirewallRulesClient object.
*/
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.
- *
+ *
* @return the ConfigurationsClient object.
*/
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.
- *
+ *
* @return the CheckNameAvailabilitiesClient object.
*/
CheckNameAvailabilitiesClient getCheckNameAvailabilities();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the ServerSecurityAlertPoliciesClient object to access its operations.
- *
+ *
* @return the ServerSecurityAlertPoliciesClient object.
*/
ServerSecurityAlertPoliciesClient getServerSecurityAlertPolicies();
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
+ *
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
- *
+ *
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();
/**
* Gets the ServerKeysClient object to access its operations.
- *
+ *
* @return the ServerKeysClient object.
*/
ServerKeysClient getServerKeys();
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
index 0d02c65c20a26..08b2cfbfffb30 100644
--- 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
@@ -6,35 +6,56 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.postgresql.models.TagsObject;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+/**
+ * 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.
+ * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(String resourceGroupName, String serverName,
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -48,18 +69,66 @@ PrivateEndpointConnectionInner get(String resourceGroupName, String serverName,
Response getWithResponse(String resourceGroupName, String serverName,
String privateEndpointConnectionName, Context context);
+ /**
+ * 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);
+
/**
* 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 parameters The parameters 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 a private endpoint connection along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(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 The parameters 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 {@link PollerFlux} for polling of a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, PrivateEndpointConnectionInner> beginCreateOrUpdateAsync(
+ 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 The parameters 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 {@link SyncPoller} for polling of a private endpoint connection.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String privateEndpointConnectionName,
@@ -67,16 +136,16 @@ SyncPoller, PrivateEndpointConnection
/**
* 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 parameters The parameters 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 a private endpoint connection along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
@@ -85,11 +154,27 @@ SyncPoller, PrivateEndpointConnection
/**
* 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 The parameters 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 a private endpoint connection on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(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 parameters The parameters 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.
@@ -101,11 +186,11 @@ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String s
/**
* 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 parameters The parameters 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.
@@ -118,7 +203,7 @@ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String s
/**
* 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.
@@ -127,13 +212,43 @@ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String s
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(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.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
@@ -141,7 +256,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
@@ -149,7 +264,21 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(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.
@@ -162,7 +291,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* 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.
@@ -175,8 +304,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
/**
+ * Updates tags on private endpoint connection.
+ *
* 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.
@@ -186,13 +317,51 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateTagsWithResponseAsync(String resourceGroupName, String serverName,
+ String privateEndpointConnectionName, TagsObject parameters);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
+ * 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 the {@link PollerFlux} for polling of a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, PrivateEndpointConnectionInner> beginUpdateTagsAsync(
+ String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
+ * 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 the {@link SyncPoller} for polling of a private endpoint connection.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
/**
+ * Updates tags on private endpoint connection.
+ *
* 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.
@@ -201,7 +370,7 @@ SyncPoller, PrivateEndpointConnection
* @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 along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
@@ -209,8 +378,28 @@ SyncPoller, PrivateEndpointConnection
Context context);
/**
+ * Updates tags on private endpoint connection.
+ *
+ * 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateTagsAsync(String resourceGroupName, String serverName,
+ String privateEndpointConnectionName, TagsObject parameters);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
* 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.
@@ -225,8 +414,10 @@ PrivateEndpointConnectionInner updateTags(String resourceGroupName, String serve
String privateEndpointConnectionName, TagsObject parameters);
/**
+ * Updates tags on private endpoint connection.
+ *
* 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.
@@ -243,27 +434,40 @@ PrivateEndpointConnectionInner updateTags(String resourceGroupName, String serve
/**
* 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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(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.
* @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.
+ * @return all private endpoint connections on a server as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return all private endpoint connections on a server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName,
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
index b4bcb1bce01f5..49c7d1cab10f3 100644
--- 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
@@ -6,57 +6,90 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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;
+import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+/**
+ * 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.
+ * @return the private link resources for PostgreSQL server as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(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.
+ * @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 as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return the private link resources for PostgreSQL server as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a private link resource for PostgreSQL server along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String serverName, String groupName);
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -69,4 +102,18 @@ public interface PrivateLinkResourcesClient {
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String serverName, String groupName,
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);
}
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/RecoverableServersClient.java
index 391d9fd2f8583..785891fb4b6dd 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/RecoverableServersClient.java
@@ -9,25 +9,41 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresql.fluent.models.RecoverableServerResourceInner;
+import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in RecoverableServersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in RecoverableServersClient.
+ */
public interface RecoverableServersClient {
/**
* Gets a recoverable 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 recoverable PostgreSQL Server.
+ * @return a recoverable PostgreSQL Server along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RecoverableServerResourceInner get(String resourceGroupName, String serverName);
+ Mono> getWithResponseAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Gets a recoverable 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 recoverable PostgreSQL Server on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String serverName);
/**
* Gets a recoverable 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.
@@ -39,4 +55,17 @@ public interface RecoverableServersClient {
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String serverName,
Context context);
+
+ /**
+ * Gets a recoverable 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 recoverable PostgreSQL Server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoverableServerResourceInner get(String resourceGroupName, String serverName);
}
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
index 0899459cb2a33..4326956587357 100644
--- 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
@@ -6,35 +6,51 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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. */
+/**
+ * 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.
+ * @return a list of servers as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(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.
+ * @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 as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@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
index 52b71b3e3d4bd..c37978879dc8e 100644
--- 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
@@ -6,32 +6,52 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.ServerAdministratorResourceInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ServerAdministratorsClient. */
+/**
+ * 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.
+ * @return information about a AAD server administrator along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerAdministratorResourceInner get(String resourceGroupName, String serverName);
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -44,10 +64,23 @@ public interface ServerAdministratorsClient {
Response getWithResponse(String resourceGroupName, String serverName,
Context context);
+ /**
+ * 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);
+
/**
* 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.
@@ -55,7 +88,39 @@ Response getWithResponse(String resourceGroupN
* @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 along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of represents a and external administrator to be created.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServerAdministratorResourceInner> beginCreateOrUpdateAsync(
+ 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.
+ * @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 {@link SyncPoller} for polling of represents a and external administrator to be created.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerAdministratorResourceInner>
@@ -64,7 +129,7 @@ Response getWithResponse(String resourceGroupN
/**
* 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.
@@ -72,8 +137,7 @@ Response getWithResponse(String resourceGroupN
* @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 along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of represents a and external administrator to be created.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerAdministratorResourceInner> beginCreateOrUpdate(
@@ -82,7 +146,23 @@ SyncPoller, ServerAdministratorReso
/**
* 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(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.
@@ -98,7 +178,7 @@ ServerAdministratorResourceInner createOrUpdate(String resourceGroupName, String
/**
* 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.
@@ -114,7 +194,7 @@ ServerAdministratorResourceInner createOrUpdate(String resourceGroupName, String
/**
* 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.
@@ -122,26 +202,65 @@ ServerAdministratorResourceInner createOrUpdate(String resourceGroupName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(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.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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 {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -153,7 +272,7 @@ ServerAdministratorResourceInner createOrUpdate(String resourceGroupName, String
/**
* 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.
@@ -166,27 +285,43 @@ ServerAdministratorResourceInner createOrUpdate(String resourceGroupName, String
/**
* 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 as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(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.
* @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.
+ * @return the response to a list Active Directory Administrators request as paginated response with
+ * {@link PagedIterable}.
*/
@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.
+ * @return the response to a list Active Directory Administrators request as paginated response with
+ * {@link PagedIterable}.
*/
@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
index f6fc274c05d83..31cb7e2670b4b 100644
--- 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
@@ -6,35 +6,51 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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. */
+/**
+ * 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.
+ * @return a list of performance tiers as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(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.
+ * @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 as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a list of performance tiers as paginated response with {@link PagedIterable}.
*/
@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
index f2153ed96e9e1..71e002807d5ad 100644
--- 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
@@ -6,60 +6,93 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.ServerKeyInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ServerKeysClient. */
+/**
+ * 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.
+ * @return a list of Server keys as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(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.
+ * @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 as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a list of Server keys as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return a PostgreSQL Server key along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerKeyInner get(String resourceGroupName, String serverName, String keyName);
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -73,9 +106,23 @@ public interface ServerKeysClient {
Response getWithResponse(String resourceGroupName, String serverName, String keyName,
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);
+
/**
* 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.
@@ -85,13 +132,45 @@ Response getWithResponse(String resourceGroupName, String server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a PostgreSQL Server key along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of a PostgreSQL Server key.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServerKeyInner> beginCreateOrUpdateAsync(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.
+ * @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 {@link SyncPoller} for polling of a PostgreSQL Server key.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
@@ -100,7 +179,7 @@ SyncPoller, ServerKeyInner> beginCreateOrUpdate(Strin
* @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 along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of a PostgreSQL Server key.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerKeyInner> beginCreateOrUpdate(String serverName, String keyName,
@@ -108,7 +187,23 @@ SyncPoller, ServerKeyInner> beginCreateOrUpdate(Strin
/**
* 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(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.
@@ -124,7 +219,7 @@ ServerKeyInner createOrUpdate(String serverName, String keyName, String resource
/**
* 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.
@@ -141,7 +236,7 @@ ServerKeyInner createOrUpdate(String serverName, String keyName, String resource
/**
* 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.
@@ -150,12 +245,41 @@ ServerKeyInner createOrUpdate(String serverName, String keyName, String resource
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(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.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
@@ -163,7 +287,7 @@ ServerKeyInner createOrUpdate(String serverName, String keyName, String 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 the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String serverName, String keyName, String resourceGroupName,
@@ -171,7 +295,21 @@ SyncPoller, Void> beginDelete(String serverName, String keyName
/**
* 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(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.
@@ -184,7 +322,7 @@ SyncPoller, Void> beginDelete(String serverName, String keyName
/**
* 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.
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
index cac6f0c599b06..98a34d2d36855 100644
--- 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
@@ -9,15 +9,20 @@
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.ConfigurationListResultInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ServerParametersClient. */
+/**
+ * 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.
@@ -26,13 +31,44 @@ public interface ServerParametersClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of server configurations along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> listUpdateConfigurationsWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ConfigurationListResultInner>
+ beginListUpdateConfigurationsAsync(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.
+ * @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 {@link SyncPoller} for polling of a list of server configurations.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
@@ -40,7 +76,7 @@ public interface ServerParametersClient {
* @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 along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of a list of server configurations.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
@@ -48,7 +84,22 @@ SyncPoller, ConfigurationListResultInne
/**
* 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono listUpdateConfigurationsAsync(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.
@@ -63,7 +114,7 @@ ConfigurationListResultInner listUpdateConfigurations(String resourceGroupName,
/**
* 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.
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
index 74264da411185..1106c8363aaa1 100644
--- 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
@@ -6,35 +6,56 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.ServerSecurityAlertPolicyInner;
import com.azure.resourcemanager.postgresql.models.SecurityAlertPolicyName;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ServerSecurityAlertPoliciesClient. */
+/**
+ * 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.
+ * @return a server's security alert policy along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerSecurityAlertPolicyInner get(String resourceGroupName, String serverName,
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -48,9 +69,24 @@ ServerSecurityAlertPolicyInner get(String resourceGroupName, String serverName,
Response getWithResponse(String resourceGroupName, String serverName,
SecurityAlertPolicyName securityAlertPolicyName, Context context);
+ /**
+ * 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);
+
/**
* 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.
@@ -60,6 +96,39 @@ Response getWithResponse(String resourceGroupNam
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a server security alert policy along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of a server security alert policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServerSecurityAlertPolicyInner> beginCreateOrUpdateAsync(
+ 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.
+ * @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 {@link SyncPoller} for polling of a server security alert policy.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName,
@@ -67,7 +136,7 @@ SyncPoller, ServerSecurityAlertPolicy
/**
* 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.
@@ -76,7 +145,7 @@ SyncPoller, ServerSecurityAlertPolicy
* @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 along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of a server security alert policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
@@ -85,7 +154,23 @@ SyncPoller, ServerSecurityAlertPolicy
/**
* 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(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.
@@ -101,7 +186,7 @@ ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String s
/**
* 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.
@@ -118,27 +203,40 @@ ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String s
/**
* 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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByServerAsync(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.
* @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.
+ * @return the server's threat detection policies as paginated response with {@link PagedIterable}.
*/
@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.
+ * @return the server's threat detection policies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName,
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 d9f74a5f0e86b..b0ebd1fdae758 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
@@ -6,21 +6,27 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
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 java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ServersClient. */
+/**
+ * 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.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for creating or updating a server.
@@ -29,13 +35,43 @@ public interface ServersClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents a server along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
+ ServerForCreate parameters);
+
+ /**
+ * Creates a new server, or will overwrite an existing server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 the {@link PollerFlux} for polling of represents a server.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServerInner> beginCreateAsync(String resourceGroupName, String serverName,
+ ServerForCreate parameters);
+
+ /**
+ * Creates a new server, or will overwrite an existing server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 the {@link SyncPoller} for polling of represents a server.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreate(String resourceGroupName, String serverName,
ServerForCreate parameters);
/**
* Creates a new server, or will overwrite an existing server.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for creating or updating a server.
@@ -43,7 +79,7 @@ SyncPoller, ServerInner> beginCreate(String resourceGrou
* @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 server along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of represents a server.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreate(String resourceGroupName, String serverName,
@@ -51,7 +87,21 @@ SyncPoller, ServerInner> beginCreate(String resourceGrou
/**
* Creates a new server, or will overwrite an existing server.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 represents a server on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createAsync(String resourceGroupName, String serverName, ServerForCreate parameters);
+
+ /**
+ * Creates a new server, or will overwrite an existing server.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for creating or updating a server.
@@ -65,7 +115,7 @@ SyncPoller, ServerInner> beginCreate(String resourceGrou
/**
* Creates a new server, or will overwrite an existing server.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for creating or updating a server.
@@ -81,7 +131,7 @@ SyncPoller, ServerInner> beginCreate(String resourceGrou
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
* server definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for updating a server.
@@ -90,6 +140,38 @@ SyncPoller, ServerInner> beginCreate(String resourceGrou
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents a server along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
+ ServerUpdateParameters parameters);
+
+ /**
+ * Updates an existing server. The request body can contain one to many of the properties present in the normal
+ * server definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for 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 the {@link PollerFlux} for polling of represents a server.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, ServerInner> beginUpdateAsync(String resourceGroupName, String serverName,
+ ServerUpdateParameters parameters);
+
+ /**
+ * Updates an existing server. The request body can contain one to many of the properties present in the normal
+ * server definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for 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 the {@link SyncPoller} for polling of represents a server.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(String resourceGroupName, String serverName,
ServerUpdateParameters parameters);
@@ -97,7 +179,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
* server definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for updating a server.
@@ -105,7 +187,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @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 server along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of represents a server.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(String resourceGroupName, String serverName,
@@ -114,7 +196,22 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
* server definition.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for 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 represents a server on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(String resourceGroupName, String serverName, ServerUpdateParameters parameters);
+
+ /**
+ * Updates an existing server. The request body can contain one to many of the properties present in the normal
+ * server definition.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for updating a server.
@@ -129,7 +226,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
* server definition.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param parameters The required parameters for updating a server.
@@ -144,7 +241,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Deletes 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.
@@ -152,26 +249,65 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Deletes 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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Deletes 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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName);
/**
* Deletes 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 {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, Context context);
/**
* Deletes 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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Deletes 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.
@@ -183,7 +319,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Deletes 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.
@@ -196,20 +332,33 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Gets information about 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 information about a server.
+ * @return information about a server along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner getByResourceGroup(String resourceGroupName, String serverName);
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Gets information about 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 information about a server on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getByResourceGroupAsync(String resourceGroupName, String serverName);
/**
* Gets information about 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.
@@ -221,56 +370,91 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context);
+ /**
+ * Gets information about 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 information about a server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerInner getByResourceGroup(String resourceGroupName, String serverName);
+
+ /**
+ * List all the servers in a given resource group.
+ *
+ * @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 a list of servers as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
+
/**
* List all the servers in a given resource group.
- *
+ *
* @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 a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List all the servers in a given resource group.
- *
+ *
* @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 a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* List all the servers in a given subscription.
- *
+ *
+ * @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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
+
+ /**
+ * List all the servers in a given subscription.
+ *
* @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.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List all the servers in a given subscription.
- *
+ *
* @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.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -278,26 +462,65 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> restartWithResponseAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Restarts 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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginRestartAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Restarts 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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(String resourceGroupName, String serverName);
/**
* Restarts 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 {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(String resourceGroupName, String serverName, 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.
+ * @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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono restartAsync(String resourceGroupName, String serverName);
+
+ /**
+ * Restarts 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.
@@ -309,7 +532,7 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
/**
* Restarts 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.
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
index cfd34569b3f8c..7785dccb195c6 100644
--- 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
@@ -6,33 +6,54 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
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.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.postgresql.fluent.models.VirtualNetworkRuleInner;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in VirtualNetworkRulesClient. */
+/**
+ * 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.
+ * @return a virtual network rule along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner get(String resourceGroupName, String serverName, String virtualNetworkRuleName);
+ Mono> getWithResponseAsync(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.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(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.
@@ -46,9 +67,23 @@ public interface VirtualNetworkRulesClient {
Response getWithResponse(String resourceGroupName, String serverName,
String virtualNetworkRuleName, Context context);
+ /**
+ * 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);
+
/**
* 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.
@@ -58,13 +93,45 @@ Response getWithResponse(String resourceGroupName, Stri
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a virtual network rule along with {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of a virtual network rule.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, VirtualNetworkRuleInner> beginCreateOrUpdateAsync(
+ 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.
+ * @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 {@link SyncPoller} for polling of a virtual network rule.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
@@ -73,7 +140,7 @@ SyncPoller, VirtualNetworkRuleInner> beginCr
* @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 along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of a virtual network rule.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
@@ -82,7 +149,23 @@ SyncPoller, VirtualNetworkRuleInner> beginCr
/**
* 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(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.
@@ -98,7 +181,7 @@ VirtualNetworkRuleInner createOrUpdate(String resourceGroupName, String serverNa
/**
* 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.
@@ -115,7 +198,7 @@ VirtualNetworkRuleInner createOrUpdate(String resourceGroupName, String serverNa
/**
* 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.
@@ -124,13 +207,43 @@ VirtualNetworkRuleInner createOrUpdate(String resourceGroupName, String serverNa
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(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.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(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.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
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.
@@ -138,7 +251,7 @@ SyncPoller