Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-resourcemanager-postgresql] Add FSPG GA location capability API with geo backup and restore support #18488

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sdk/postgresql/azure-resourcemanager-postgresql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.2 (2021-01-07)

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

## 1.0.0-beta.1 (2020-12-16)

- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2020-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
- Azure Resource Manager PostgreSql client library for Java. This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model. Package tag package-2020-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
2 changes: 1 addition & 1 deletion sdk/postgresql/azure-resourcemanager-postgresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This package contains Microsoft Azure SDK for PostgreSql Management SDK. The Mic
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-postgresql</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public PostgreSqlManager authenticate(TokenCredential credential, AzureProfile p
new UserAgentPolicy(
null,
"com.azure.resourcemanager.postgresql",
"1.0.0-beta.1",
"1.0.0-beta.2",
Configuration.getGlobalConfiguration()));
policies.add(new RequestIdPolicy());
HttpPolicyProviders.addBeforeRetryPolicies(policies);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}/databases/{databaseName}")
Expand All @@ -97,6 +97,7 @@ Mono<Response<Flux<ByteBuffer>>> delete(
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("serverName") String serverName,
@PathParam("databaseName") String databaseName,
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Content-Type: application/json"})
Expand Down Expand Up @@ -452,6 +453,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
}
final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
Expand All @@ -463,6 +465,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
resourceGroupName,
serverName,
databaseName,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
}
Expand Down Expand Up @@ -505,6 +508,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
}
final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.delete(
Expand All @@ -514,6 +518,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
resourceGroupName,
serverName,
databaseName,
accept,
context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}/firewallRules/{firewallRuleName}")
Expand All @@ -97,6 +97,7 @@ Mono<Response<Flux<ByteBuffer>>> delete(
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("serverName") String serverName,
@PathParam("firewallRuleName") String firewallRuleName,
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Content-Type: application/json"})
Expand Down Expand Up @@ -475,6 +476,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
.error(new IllegalArgumentException("Parameter firewallRuleName is required and cannot be null."));
}
final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
Expand All @@ -486,6 +488,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
resourceGroupName,
serverName,
firewallRuleName,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
}
Expand Down Expand Up @@ -529,6 +532,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
.error(new IllegalArgumentException("Parameter firewallRuleName is required and cannot be null."));
}
final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.delete(
Expand All @@ -538,6 +542,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
resourceGroupName,
serverName,
firewallRuleName,
accept,
context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private interface ReplicasService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}/Replicas")
+ "/servers/{serverName}/replicas")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<ServerListResult>> listByServer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private interface ServerAdministratorsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}/Administrators/activeDirectory")
+ "/servers/{serverName}/administrators/activeDirectory")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<ServerAdministratorResourceInner>> get(
Expand All @@ -86,7 +86,7 @@ Mono<Response<ServerAdministratorResourceInner>> get(
@Headers({"Content-Type: application/json"})
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}/Administrators/activeDirectory")
+ "/servers/{serverName}/administrators/activeDirectory")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
Expand All @@ -102,7 +102,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}/Administrators/activeDirectory")
+ "/servers/{serverName}/administrators/activeDirectory")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> delete(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Mono<Response<Flux<ByteBuffer>>> update(
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL"
+ "/servers/{serverName}")
Expand All @@ -114,6 +114,7 @@ Mono<Response<Flux<ByteBuffer>>> delete(
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("serverName") String serverName,
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Content-Type: application/json"})
Expand Down Expand Up @@ -739,6 +740,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
Expand All @@ -749,6 +751,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resource
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
accept,
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
}
Expand Down Expand Up @@ -787,6 +790,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.delete(
Expand All @@ -795,6 +799,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
serverName,
accept,
context);
}

Expand Down