Skip to content

Commit db6c7db

Browse files
author
SDKAuto
committed
CodeGen from PR 34283 in Azure/azure-rest-api-specs
Merge 73c7b1dd8330513b268b388e429ce1de9aa8a1cc into 58f51140298292cc6fd0d926e1eaa50e2198a20e
1 parent 970f239 commit db6c7db

File tree

50 files changed

+433
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+433
-324
lines changed

sdk/neonpostgres/azure-resourcemanager-neonpostgres/CHANGELOG.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2025-04-28)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
5+
- Azure Resource Manager Neon Postgres client library for Java. This package contains Microsoft Azure SDK for Neon Postgres Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
126

137
## 1.0.0 (2025-04-21)
148

sdk/neonpostgres/azure-resourcemanager-neonpostgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-neonpostgres</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/neonpostgres/azure-resourcemanager-neonpostgres/SAMPLE.md

Lines changed: 200 additions & 143 deletions
Large diffs are not rendered by default.

sdk/neonpostgres/azure-resourcemanager-neonpostgres/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
4849
</properties>
4950
<dependencies>
5051
<dependency>

sdk/neonpostgres/azure-resourcemanager-neonpostgres/src/main/java/com/azure/resourcemanager/neonpostgres/implementation/NeonDatabaseImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public NeonDatabase apply(Context context) {
116116
this.organizationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "organizations");
117117
this.projectName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "projects");
118118
this.branchName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "branches");
119-
this.neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "neonDatabases");
119+
this.neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "neondatabases");
120120
}
121121

122122
public NeonDatabase refresh() {

sdk/neonpostgres/azure-resourcemanager-neonpostgres/src/main/java/com/azure/resourcemanager/neonpostgres/implementation/NeonDatabasesClientImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final class NeonDatabasesClientImpl implements NeonDatabasesClient {
7272
@ServiceInterface(name = "NeonPostgresManageme")
7373
public interface NeonDatabasesService {
7474
@Headers({ "Content-Type: application/json" })
75-
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonDatabases/{neonDatabaseName}")
75+
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neondatabases/{neonDatabaseName}")
7676
@ExpectedResponses({ 200 })
7777
@UnexpectedResponseExceptionType(ManagementException.class)
7878
Mono<Response<NeonDatabaseInner>> get(@HostParam("endpoint") String endpoint,
@@ -82,7 +82,7 @@ Mono<Response<NeonDatabaseInner>> get(@HostParam("endpoint") String endpoint,
8282
@PathParam("branchName") String branchName, @PathParam("neonDatabaseName") String neonDatabaseName,
8383
@HeaderParam("Accept") String accept, Context context);
8484

85-
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonDatabases/{neonDatabaseName}")
85+
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neondatabases/{neonDatabaseName}")
8686
@ExpectedResponses({ 200, 201 })
8787
@UnexpectedResponseExceptionType(ManagementException.class)
8888
Mono<Response<Flux<ByteBuffer>>> createOrUpdate(@HostParam("endpoint") String endpoint,
@@ -93,7 +93,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(@HostParam("endpoint") String en
9393
@HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
9494
@BodyParam("application/json") NeonDatabaseInner resource, Context context);
9595

96-
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonDatabases/{neonDatabaseName}")
96+
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neondatabases/{neonDatabaseName}")
9797
@ExpectedResponses({ 200, 202 })
9898
@UnexpectedResponseExceptionType(ManagementException.class)
9999
Mono<Response<Flux<ByteBuffer>>> update(@HostParam("endpoint") String endpoint,
@@ -105,7 +105,7 @@ Mono<Response<Flux<ByteBuffer>>> update(@HostParam("endpoint") String endpoint,
105105
@BodyParam("application/json") NeonDatabaseInner properties, Context context);
106106

107107
@Headers({ "Content-Type: application/json" })
108-
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonDatabases/{neonDatabaseName}")
108+
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neondatabases/{neonDatabaseName}")
109109
@ExpectedResponses({ 200, 204 })
110110
@UnexpectedResponseExceptionType(ManagementException.class)
111111
Mono<Response<Void>> delete(@HostParam("endpoint") String endpoint,
@@ -116,7 +116,7 @@ Mono<Response<Void>> delete(@HostParam("endpoint") String endpoint,
116116
@HeaderParam("Accept") String accept, Context context);
117117

118118
@Headers({ "Content-Type: application/json" })
119-
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonDatabases")
119+
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neondatabases")
120120
@ExpectedResponses({ 200 })
121121
@UnexpectedResponseExceptionType(ManagementException.class)
122122
Mono<Response<NeonDatabaseListResult>> list(@HostParam("endpoint") String endpoint,

sdk/neonpostgres/azure-resourcemanager-neonpostgres/src/main/java/com/azure/resourcemanager/neonpostgres/implementation/NeonDatabasesImpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ public NeonDatabase getById(String id) {
9797
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
9898
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
9999
}
100-
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neonDatabases");
100+
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neondatabases");
101101
if (neonDatabaseName == null) {
102102
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
103-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonDatabases'.", id)));
103+
String.format("The resource ID '%s' is not valid. Missing path segment 'neondatabases'.", id)));
104104
}
105105
return this
106106
.getWithResponse(resourceGroupName, organizationName, projectName, branchName, neonDatabaseName,
@@ -129,10 +129,10 @@ public Response<NeonDatabase> getByIdWithResponse(String id, Context context) {
129129
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
130130
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
131131
}
132-
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neonDatabases");
132+
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neondatabases");
133133
if (neonDatabaseName == null) {
134134
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
135-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonDatabases'.", id)));
135+
String.format("The resource ID '%s' is not valid. Missing path segment 'neondatabases'.", id)));
136136
}
137137
return this.getWithResponse(resourceGroupName, organizationName, projectName, branchName, neonDatabaseName,
138138
context);
@@ -159,10 +159,10 @@ public void deleteById(String id) {
159159
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
160160
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
161161
}
162-
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neonDatabases");
162+
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neondatabases");
163163
if (neonDatabaseName == null) {
164164
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
165-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonDatabases'.", id)));
165+
String.format("The resource ID '%s' is not valid. Missing path segment 'neondatabases'.", id)));
166166
}
167167
this.deleteWithResponse(resourceGroupName, organizationName, projectName, branchName, neonDatabaseName,
168168
Context.NONE);
@@ -189,10 +189,10 @@ public Response<Void> deleteByIdWithResponse(String id, Context context) {
189189
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
190190
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
191191
}
192-
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neonDatabases");
192+
String neonDatabaseName = ResourceManagerUtils.getValueFromIdByName(id, "neondatabases");
193193
if (neonDatabaseName == null) {
194194
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
195-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonDatabases'.", id)));
195+
String.format("The resource ID '%s' is not valid. Missing path segment 'neondatabases'.", id)));
196196
}
197197
return this.deleteWithResponse(resourceGroupName, organizationName, projectName, branchName, neonDatabaseName,
198198
context);

sdk/neonpostgres/azure-resourcemanager-neonpostgres/src/main/java/com/azure/resourcemanager/neonpostgres/implementation/NeonRoleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public NeonRole apply(Context context) {
115115
this.organizationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "organizations");
116116
this.projectName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "projects");
117117
this.branchName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "branches");
118-
this.neonRoleName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "neonRoles");
118+
this.neonRoleName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "neonroles");
119119
}
120120

121121
public NeonRole refresh() {

sdk/neonpostgres/azure-resourcemanager-neonpostgres/src/main/java/com/azure/resourcemanager/neonpostgres/implementation/NeonRolesClientImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final class NeonRolesClientImpl implements NeonRolesClient {
7272
@ServiceInterface(name = "NeonPostgresManageme")
7373
public interface NeonRolesService {
7474
@Headers({ "Content-Type: application/json" })
75-
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonRoles/{neonRoleName}")
75+
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonroles/{neonRoleName}")
7676
@ExpectedResponses({ 200 })
7777
@UnexpectedResponseExceptionType(ManagementException.class)
7878
Mono<Response<NeonRoleInner>> get(@HostParam("endpoint") String endpoint,
@@ -82,7 +82,7 @@ Mono<Response<NeonRoleInner>> get(@HostParam("endpoint") String endpoint,
8282
@PathParam("branchName") String branchName, @PathParam("neonRoleName") String neonRoleName,
8383
@HeaderParam("Accept") String accept, Context context);
8484

85-
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonRoles/{neonRoleName}")
85+
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonroles/{neonRoleName}")
8686
@ExpectedResponses({ 200, 201 })
8787
@UnexpectedResponseExceptionType(ManagementException.class)
8888
Mono<Response<Flux<ByteBuffer>>> createOrUpdate(@HostParam("endpoint") String endpoint,
@@ -93,7 +93,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(@HostParam("endpoint") String en
9393
@HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
9494
@BodyParam("application/json") NeonRoleInner resource, Context context);
9595

96-
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonRoles/{neonRoleName}")
96+
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonroles/{neonRoleName}")
9797
@ExpectedResponses({ 200, 202 })
9898
@UnexpectedResponseExceptionType(ManagementException.class)
9999
Mono<Response<Flux<ByteBuffer>>> update(@HostParam("endpoint") String endpoint,
@@ -105,7 +105,7 @@ Mono<Response<Flux<ByteBuffer>>> update(@HostParam("endpoint") String endpoint,
105105
@BodyParam("application/json") NeonRoleInner properties, Context context);
106106

107107
@Headers({ "Content-Type: application/json" })
108-
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonRoles/{neonRoleName}")
108+
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonroles/{neonRoleName}")
109109
@ExpectedResponses({ 200, 204 })
110110
@UnexpectedResponseExceptionType(ManagementException.class)
111111
Mono<Response<Void>> delete(@HostParam("endpoint") String endpoint,
@@ -116,7 +116,7 @@ Mono<Response<Void>> delete(@HostParam("endpoint") String endpoint,
116116
@HeaderParam("Accept") String accept, Context context);
117117

118118
@Headers({ "Content-Type: application/json" })
119-
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonRoles")
119+
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/organizations/{organizationName}/projects/{projectName}/branches/{branchName}/neonroles")
120120
@ExpectedResponses({ 200 })
121121
@UnexpectedResponseExceptionType(ManagementException.class)
122122
Mono<Response<NeonRoleListResult>> list(@HostParam("endpoint") String endpoint,

sdk/neonpostgres/azure-resourcemanager-neonpostgres/src/main/java/com/azure/resourcemanager/neonpostgres/implementation/NeonRolesImpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public NeonRole getById(String id) {
9696
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
9797
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
9898
}
99-
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonRoles");
99+
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonroles");
100100
if (neonRoleName == null) {
101101
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
102-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonRoles'.", id)));
102+
String.format("The resource ID '%s' is not valid. Missing path segment 'neonroles'.", id)));
103103
}
104104
return this
105105
.getWithResponse(resourceGroupName, organizationName, projectName, branchName, neonRoleName, Context.NONE)
@@ -127,10 +127,10 @@ public Response<NeonRole> getByIdWithResponse(String id, Context context) {
127127
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
128128
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
129129
}
130-
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonRoles");
130+
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonroles");
131131
if (neonRoleName == null) {
132132
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
133-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonRoles'.", id)));
133+
String.format("The resource ID '%s' is not valid. Missing path segment 'neonroles'.", id)));
134134
}
135135
return this.getWithResponse(resourceGroupName, organizationName, projectName, branchName, neonRoleName,
136136
context);
@@ -157,10 +157,10 @@ public void deleteById(String id) {
157157
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
158158
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
159159
}
160-
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonRoles");
160+
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonroles");
161161
if (neonRoleName == null) {
162162
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
163-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonRoles'.", id)));
163+
String.format("The resource ID '%s' is not valid. Missing path segment 'neonroles'.", id)));
164164
}
165165
this.deleteWithResponse(resourceGroupName, organizationName, projectName, branchName, neonRoleName,
166166
Context.NONE);
@@ -187,10 +187,10 @@ public Response<Void> deleteByIdWithResponse(String id, Context context) {
187187
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
188188
String.format("The resource ID '%s' is not valid. Missing path segment 'branches'.", id)));
189189
}
190-
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonRoles");
190+
String neonRoleName = ResourceManagerUtils.getValueFromIdByName(id, "neonroles");
191191
if (neonRoleName == null) {
192192
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
193-
String.format("The resource ID '%s' is not valid. Missing path segment 'neonRoles'.", id)));
193+
String.format("The resource ID '%s' is not valid. Missing path segment 'neonroles'.", id)));
194194
}
195195
return this.deleteWithResponse(resourceGroupName, organizationName, projectName, branchName, neonRoleName,
196196
context);

0 commit comments

Comments
 (0)