Skip to content

Commit 3469233

Browse files
Update Package for Latest Dependencies and Prepare for Patch Release v0.31.5 (#3151)
* Initial plan * Update core submodule to latest from upstream/main * Update package dependencies using ncu * Sync tests from updated core submodule * Prepare for patch release 0.31.5 * Update changelog entry for 0.31.5 to follow standard format Co-authored-by: weidongxu-microsoft <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: weidongxu-microsoft <[email protected]>
1 parent dbc7a27 commit 3469233

34 files changed

+2335
-20
lines changed

core

Submodule core updated 56 files

typespec-extension/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 0.31.5 (2025-06-25)
4+
5+
Compatible with compiler 1.1.0.
6+
37
## 0.31.4 (2025-06-17)
48

59
Compatible with compiler 1.1.0.

typespec-extension/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typespec-extension/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.31.4",
3+
"version": "0.31.5",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -94,7 +94,7 @@
9494
"eslint-plugin-deprecation": "~3.0.0",
9595
"eslint-plugin-import": "^2.32.0",
9696
"eslint-plugin-unicorn": "^59.0.1",
97-
"prettier": "~3.6.0",
97+
"prettier": "~3.6.1",
9898
"rimraf": "~6.0.1",
9999
"typescript": "~5.8.3",
100100
"typescript-eslint": "^8.35.0",

typespec-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"@typespec/spec-api": "0.1.0-alpha.6",
1313
"@typespec/spector": "0.1.0-alpha.15",
1414
"@typespec/http-specs": "0.1.0-alpha.23",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.19",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.4.tgz"
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.20",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.5.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.1.0",
2020
"prettier-plugin-organize-imports": "^4.1.0",
21-
"prettier": "^3.6.0"
21+
"prettier": "^3.6.1"
2222
},
2323
"overrides": {
2424
"@typespec/compiler": "1.1.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package azure.clientgenerator.core.clientlocation;
6+
7+
import azure.clientgenerator.core.clientlocation.implementation.ArchiveOperationsImpl;
8+
import com.azure.core.annotation.Generated;
9+
import com.azure.core.annotation.ReturnType;
10+
import com.azure.core.annotation.ServiceClient;
11+
import com.azure.core.annotation.ServiceMethod;
12+
import com.azure.core.exception.ClientAuthenticationException;
13+
import com.azure.core.exception.HttpResponseException;
14+
import com.azure.core.exception.ResourceModifiedException;
15+
import com.azure.core.exception.ResourceNotFoundException;
16+
import com.azure.core.http.rest.RequestOptions;
17+
import com.azure.core.http.rest.Response;
18+
import com.azure.core.util.FluxUtil;
19+
import reactor.core.publisher.Mono;
20+
21+
/**
22+
* Initializes a new instance of the asynchronous ClientLocationClient type.
23+
*/
24+
@ServiceClient(builder = ClientLocationClientBuilder.class, isAsync = true)
25+
public final class ArchiveOperationsAsyncClient {
26+
@Generated
27+
private final ArchiveOperationsImpl serviceClient;
28+
29+
/**
30+
* Initializes an instance of ArchiveOperationsAsyncClient class.
31+
*
32+
* @param serviceClient the service client implementation.
33+
*/
34+
@Generated
35+
ArchiveOperationsAsyncClient(ArchiveOperationsImpl serviceClient) {
36+
this.serviceClient = serviceClient;
37+
}
38+
39+
/**
40+
* The archiveProduct operation.
41+
*
42+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
43+
* @throws HttpResponseException thrown if the request is rejected by server.
44+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
45+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
46+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
47+
* @return the {@link Response} on successful completion of {@link Mono}.
48+
*/
49+
@Generated
50+
@ServiceMethod(returns = ReturnType.SINGLE)
51+
public Mono<Response<Void>> archiveProductWithResponse(RequestOptions requestOptions) {
52+
return this.serviceClient.archiveProductWithResponseAsync(requestOptions);
53+
}
54+
55+
/**
56+
* The archiveProduct operation.
57+
*
58+
* @throws HttpResponseException thrown if the request is rejected by server.
59+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
60+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
61+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
62+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
63+
* @return A {@link Mono} that completes when a successful response is received.
64+
*/
65+
@Generated
66+
@ServiceMethod(returns = ReturnType.SINGLE)
67+
public Mono<Void> archiveProduct() {
68+
// Generated convenience method for archiveProductWithResponse
69+
RequestOptions requestOptions = new RequestOptions();
70+
return archiveProductWithResponse(requestOptions).flatMap(FluxUtil::toMono);
71+
}
72+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package azure.clientgenerator.core.clientlocation;
6+
7+
import azure.clientgenerator.core.clientlocation.implementation.ArchiveOperationsImpl;
8+
import com.azure.core.annotation.Generated;
9+
import com.azure.core.annotation.ReturnType;
10+
import com.azure.core.annotation.ServiceClient;
11+
import com.azure.core.annotation.ServiceMethod;
12+
import com.azure.core.exception.ClientAuthenticationException;
13+
import com.azure.core.exception.HttpResponseException;
14+
import com.azure.core.exception.ResourceModifiedException;
15+
import com.azure.core.exception.ResourceNotFoundException;
16+
import com.azure.core.http.rest.RequestOptions;
17+
import com.azure.core.http.rest.Response;
18+
19+
/**
20+
* Initializes a new instance of the synchronous ClientLocationClient type.
21+
*/
22+
@ServiceClient(builder = ClientLocationClientBuilder.class)
23+
public final class ArchiveOperationsClient {
24+
@Generated
25+
private final ArchiveOperationsImpl serviceClient;
26+
27+
/**
28+
* Initializes an instance of ArchiveOperationsClient class.
29+
*
30+
* @param serviceClient the service client implementation.
31+
*/
32+
@Generated
33+
ArchiveOperationsClient(ArchiveOperationsImpl serviceClient) {
34+
this.serviceClient = serviceClient;
35+
}
36+
37+
/**
38+
* The archiveProduct operation.
39+
*
40+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
41+
* @throws HttpResponseException thrown if the request is rejected by server.
42+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
43+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
44+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
45+
* @return the {@link Response}.
46+
*/
47+
@Generated
48+
@ServiceMethod(returns = ReturnType.SINGLE)
49+
public Response<Void> archiveProductWithResponse(RequestOptions requestOptions) {
50+
return this.serviceClient.archiveProductWithResponse(requestOptions);
51+
}
52+
53+
/**
54+
* The archiveProduct operation.
55+
*
56+
* @throws HttpResponseException thrown if the request is rejected by server.
57+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
58+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
59+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
60+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
61+
*/
62+
@Generated
63+
@ServiceMethod(returns = ReturnType.SINGLE)
64+
public void archiveProduct() {
65+
// Generated convenience method for archiveProductWithResponse
66+
RequestOptions requestOptions = new RequestOptions();
67+
archiveProductWithResponse(requestOptions).getValue();
68+
}
69+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package azure.clientgenerator.core.clientlocation;
6+
7+
import azure.clientgenerator.core.clientlocation.implementation.ClientLocationClientImpl;
8+
import com.azure.core.annotation.Generated;
9+
import com.azure.core.annotation.ReturnType;
10+
import com.azure.core.annotation.ServiceClient;
11+
import com.azure.core.annotation.ServiceMethod;
12+
import com.azure.core.exception.ClientAuthenticationException;
13+
import com.azure.core.exception.HttpResponseException;
14+
import com.azure.core.exception.ResourceModifiedException;
15+
import com.azure.core.exception.ResourceNotFoundException;
16+
import com.azure.core.http.rest.RequestOptions;
17+
import com.azure.core.http.rest.Response;
18+
import com.azure.core.util.FluxUtil;
19+
import reactor.core.publisher.Mono;
20+
21+
/**
22+
* Initializes a new instance of the asynchronous ClientLocationClient type.
23+
*/
24+
@ServiceClient(builder = ClientLocationClientBuilder.class, isAsync = true)
25+
public final class ClientLocationAsyncClient {
26+
@Generated
27+
private final ClientLocationClientImpl serviceClient;
28+
29+
/**
30+
* Initializes an instance of ClientLocationAsyncClient class.
31+
*
32+
* @param serviceClient the service client implementation.
33+
*/
34+
@Generated
35+
ClientLocationAsyncClient(ClientLocationClientImpl serviceClient) {
36+
this.serviceClient = serviceClient;
37+
}
38+
39+
/**
40+
* The getHealthStatus operation.
41+
*
42+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
43+
* @throws HttpResponseException thrown if the request is rejected by server.
44+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
45+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
46+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
47+
* @return the {@link Response} on successful completion of {@link Mono}.
48+
*/
49+
@Generated
50+
@ServiceMethod(returns = ReturnType.SINGLE)
51+
public Mono<Response<Void>> getHealthStatusWithResponse(RequestOptions requestOptions) {
52+
return this.serviceClient.getHealthStatusWithResponseAsync(requestOptions);
53+
}
54+
55+
/**
56+
* The getHealthStatus operation.
57+
*
58+
* @throws HttpResponseException thrown if the request is rejected by server.
59+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
60+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
61+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
62+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
63+
* @return A {@link Mono} that completes when a successful response is received.
64+
*/
65+
@Generated
66+
@ServiceMethod(returns = ReturnType.SINGLE)
67+
public Mono<Void> getHealthStatus() {
68+
// Generated convenience method for getHealthStatusWithResponse
69+
RequestOptions requestOptions = new RequestOptions();
70+
return getHealthStatusWithResponse(requestOptions).flatMap(FluxUtil::toMono);
71+
}
72+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package azure.clientgenerator.core.clientlocation;
6+
7+
import azure.clientgenerator.core.clientlocation.implementation.ClientLocationClientImpl;
8+
import com.azure.core.annotation.Generated;
9+
import com.azure.core.annotation.ReturnType;
10+
import com.azure.core.annotation.ServiceClient;
11+
import com.azure.core.annotation.ServiceMethod;
12+
import com.azure.core.exception.ClientAuthenticationException;
13+
import com.azure.core.exception.HttpResponseException;
14+
import com.azure.core.exception.ResourceModifiedException;
15+
import com.azure.core.exception.ResourceNotFoundException;
16+
import com.azure.core.http.rest.RequestOptions;
17+
import com.azure.core.http.rest.Response;
18+
19+
/**
20+
* Initializes a new instance of the synchronous ClientLocationClient type.
21+
*/
22+
@ServiceClient(builder = ClientLocationClientBuilder.class)
23+
public final class ClientLocationClient {
24+
@Generated
25+
private final ClientLocationClientImpl serviceClient;
26+
27+
/**
28+
* Initializes an instance of ClientLocationClient class.
29+
*
30+
* @param serviceClient the service client implementation.
31+
*/
32+
@Generated
33+
ClientLocationClient(ClientLocationClientImpl serviceClient) {
34+
this.serviceClient = serviceClient;
35+
}
36+
37+
/**
38+
* The getHealthStatus operation.
39+
*
40+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
41+
* @throws HttpResponseException thrown if the request is rejected by server.
42+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
43+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
44+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
45+
* @return the {@link Response}.
46+
*/
47+
@Generated
48+
@ServiceMethod(returns = ReturnType.SINGLE)
49+
public Response<Void> getHealthStatusWithResponse(RequestOptions requestOptions) {
50+
return this.serviceClient.getHealthStatusWithResponse(requestOptions);
51+
}
52+
53+
/**
54+
* The getHealthStatus operation.
55+
*
56+
* @throws HttpResponseException thrown if the request is rejected by server.
57+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
58+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
59+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
60+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
61+
*/
62+
@Generated
63+
@ServiceMethod(returns = ReturnType.SINGLE)
64+
public void getHealthStatus() {
65+
// Generated convenience method for getHealthStatusWithResponse
66+
RequestOptions requestOptions = new RequestOptions();
67+
getHealthStatusWithResponse(requestOptions).getValue();
68+
}
69+
}

0 commit comments

Comments
 (0)