Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from postgresql#package-flexibleser…
Browse files Browse the repository at this point in the history
…ver-2022-12-01 (Azure#34531)
  • Loading branch information
azure-sdk authored Apr 18, 2023
1 parent bf7ae0d commit 61a14e0
Show file tree
Hide file tree
Showing 38 changed files with 1,218 additions and 170 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0-beta.6 (2023-04-18)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-flexibleserver-2022-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.5 (2023-01-11)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-postgresqlflexibleserver</artifactId>
<version>1.0.0-beta.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ public final class ServersCreateSamples {
.withActiveDirectoryAuth(ActiveDirectoryAuthEnum.ENABLED)
.withPasswordAuth(PasswordAuthEnum.ENABLED)
.withTenantId("tttttt-tttt-tttt-tttt-tttttttttttt"))
.withDataEncryption(new DataEncryption().withType(ArmServerKeyType.fromString("SystemManaged")))
.withDataEncryption(new DataEncryption().withType(ArmServerKeyType.SYSTEM_MANAGED))
.withBackup(new Backup().withBackupRetentionDays(7).withGeoRedundantBackup(GeoRedundantBackupEnum.DISABLED))
.withNetwork(
new Network()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down Expand Up @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.postgresqlflexibleserver")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.6");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +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.postgresqlflexibleserver.fluent.models.ActiveDirectoryAdministratorInner;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ActiveDirectoryAdministratorAdd;
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 AdministratorsClient. */
public interface AdministratorsClient {
/**
* Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param objectId Guid of the objectId for the administrator.
* @param parameters The required parameters for adding an active directory administrator for 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 an Active Directory administrator along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(
String resourceGroupName, String serverName, String objectId, ActiveDirectoryAdministratorAdd parameters);

/**
* Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param objectId Guid of the objectId for the administrator.
* @param parameters The required parameters for adding an active directory administrator for 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 an Active Directory administrator.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<ActiveDirectoryAdministratorInner>, ActiveDirectoryAdministratorInner> beginCreateAsync(
String resourceGroupName, String serverName, String objectId, ActiveDirectoryAdministratorAdd parameters);

/**
* Creates a new server.
*
Expand Down Expand Up @@ -53,6 +91,22 @@ SyncPoller<PollResult<ActiveDirectoryAdministratorInner>, ActiveDirectoryAdminis
ActiveDirectoryAdministratorAdd parameters,
Context context);

/**
* Creates a new server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param objectId Guid of the objectId for the administrator.
* @param parameters The required parameters for adding an active directory administrator for 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 an Active Directory administrator on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<ActiveDirectoryAdministratorInner> createAsync(
String resourceGroupName, String serverName, String objectId, ActiveDirectoryAdministratorAdd parameters);

/**
* Creates a new server.
*
Expand Down Expand Up @@ -90,6 +144,35 @@ ActiveDirectoryAdministratorInner create(
ActiveDirectoryAdministratorAdd parameters,
Context context);

/**
* Deletes an Active Directory Administrator associated with the server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param objectId Guid of the objectId for the 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
String resourceGroupName, String serverName, String objectId);

/**
* Deletes an Active Directory Administrator associated with the server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param objectId Guid of the objectId for the 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 long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String serverName, String objectId);

/**
* Deletes an Active Directory Administrator associated with the server.
*
Expand Down Expand Up @@ -120,6 +203,20 @@ ActiveDirectoryAdministratorInner create(
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String serverName, String objectId, Context context);

/**
* Deletes an Active Directory Administrator associated with the server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param objectId Guid of the objectId for the 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> deleteAsync(String resourceGroupName, String serverName, String objectId);

/**
* Deletes an Active Directory Administrator associated with the server.
*
Expand Down Expand Up @@ -147,6 +244,35 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String serverName, String objectId, 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.
* @param objectId Guid of the objectId for the 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 information about a server along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<ActiveDirectoryAdministratorInner>> getWithResponseAsync(
String resourceGroupName, String serverName, String objectId);

/**
* 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 objectId Guid of the objectId for the 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 information about a server on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<ActiveDirectoryAdministratorInner> getAsync(String resourceGroupName, String serverName, String objectId);

/**
* Gets information about a server.
*
Expand Down Expand Up @@ -177,6 +303,19 @@ Response<ActiveDirectoryAdministratorInner> getWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
ActiveDirectoryAdministratorInner get(String resourceGroupName, String serverName, String objectId);

/**
* List all the AAD administrators 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 active directory administrators as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<ActiveDirectoryAdministratorInner> listByServerAsync(String resourceGroupName, String serverName);

/**
* List all the AAD administrators for a given server.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,44 @@

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.postgresqlflexibleserver.fluent.models.ServerBackupInner;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in BackupsClient. */
public interface BackupsClient {
/**
* Get specific backup 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 backupName The name of the backup.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 specific backup for a given server along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<ServerBackupInner>> getWithResponseAsync(
String resourceGroupName, String serverName, String backupName);

/**
* Get specific backup 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 backupName The name of the backup.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 specific backup for a given server on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<ServerBackupInner> getAsync(String resourceGroupName, String serverName, String backupName);

/**
* Get specific backup for a given server.
*
Expand Down Expand Up @@ -43,6 +74,19 @@ Response<ServerBackupInner> getWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
ServerBackupInner get(String resourceGroupName, String serverName, String backupName);

/**
* List all the backups 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 server backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<ServerBackupInner> listByServerAsync(String resourceGroupName, String serverName);

/**
* List all the backups for a given server.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,36 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.NameAvailabilityInner;
import com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvailabilityRequest;
import reactor.core.publisher.Mono;

/** 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 along with {@link Response} on successful completion of {@link
* Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<NameAvailabilityInner>> executeWithResponseAsync(
CheckNameAvailabilityRequest 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<NameAvailabilityInner> executeAsync(CheckNameAvailabilityRequest nameAvailabilityRequest);

/**
* Check the availability of name for resource.
*
Expand Down
Loading

0 comments on commit 61a14e0

Please sign in to comment.