Skip to content

Commit 9666c1b

Browse files
engm, prepare 0.32.0 (#3177)
1 parent 0bd1419 commit 9666c1b

48 files changed

Lines changed: 4350 additions & 221 deletions

Some content is hidden

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

core

Submodule core updated 239 files

typespec-extension/changelog.md

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

3+
## 0.32.0 (2025-08-08)
4+
5+
Compatible with compiler 1.3.0.
6+
7+
- Minor version update with latest dependencies and improvements.
8+
39
## 0.31.12 (2025-08-06)
410

511
Compatible with compiler 1.2.1.

typespec-extension/package-lock.json

Lines changed: 142 additions & 174 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: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.31.12",
3+
"version": "0.32.0",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -47,46 +47,46 @@
4747
"generator/http-client-generator/target/classes/PerfAutomation.jfc"
4848
],
4949
"peerDependencies": {
50-
"@azure-tools/typespec-autorest": ">=0.58.1 <1.0.0",
51-
"@azure-tools/typespec-azure-core": ">=0.58.0 <1.0.0",
52-
"@azure-tools/typespec-azure-resource-manager": ">=0.58.1 <1.0.0",
53-
"@azure-tools/typespec-azure-rulesets": ">=0.58.0 <1.0.0",
54-
"@azure-tools/typespec-client-generator-core": ">=0.58.2 <1.0.0",
50+
"@azure-tools/typespec-autorest": ">=0.59.0 <1.0.0",
51+
"@azure-tools/typespec-azure-core": ">=0.59.0 <1.0.0",
52+
"@azure-tools/typespec-azure-resource-manager": ">=0.59.0 <1.0.0",
53+
"@azure-tools/typespec-azure-rulesets": ">=0.59.0 <1.0.0",
54+
"@azure-tools/typespec-client-generator-core": ">=0.59.0 <1.0.0",
5555
"@azure-tools/typespec-liftr-base": ">=0.8.0 <1.0.0",
56-
"@typespec/compiler": "^1.2.1",
57-
"@typespec/http": "^1.2.1",
58-
"@typespec/openapi": "^1.2.1",
59-
"@typespec/rest": ">=0.72.1 <1.0.0",
60-
"@typespec/versioning": ">=0.72.1 <1.0.0",
61-
"@typespec/xml": ">=0.72.1 <1.0.0"
56+
"@typespec/compiler": "^1.3.0",
57+
"@typespec/http": "^1.3.0",
58+
"@typespec/openapi": "^1.3.0",
59+
"@typespec/rest": ">=0.73.0 <1.0.0",
60+
"@typespec/versioning": ">=0.73.0 <1.0.0",
61+
"@typespec/xml": ">=0.73.0 <1.0.0"
6262
},
6363
"dependencies": {
6464
"@autorest/codemodel": "~4.20.1",
6565
"js-yaml": "~4.1.0",
6666
"lodash": "~4.17.21"
6767
},
6868
"devDependencies": {
69-
"@azure-tools/typespec-autorest": "0.58.1",
70-
"@azure-tools/typespec-azure-core": "0.58.0",
71-
"@azure-tools/typespec-azure-resource-manager": "0.58.1",
72-
"@azure-tools/typespec-azure-rulesets": "0.58.0",
73-
"@azure-tools/typespec-client-generator-core": "0.58.2",
69+
"@azure-tools/typespec-autorest": "0.59.0",
70+
"@azure-tools/typespec-azure-core": "0.59.0",
71+
"@azure-tools/typespec-azure-resource-manager": "0.59.0",
72+
"@azure-tools/typespec-azure-rulesets": "0.59.0",
73+
"@azure-tools/typespec-client-generator-core": "0.59.0",
7474
"@azure-tools/typespec-liftr-base": "0.8.0",
7575
"@types/js-yaml": "~4.0.9",
7676
"@types/lodash": "~4.17.20",
7777
"@types/node": "~24.2.0",
7878
"@typescript-eslint/eslint-plugin": "~8.39.0",
7979
"@typescript-eslint/parser": "~8.39.0",
80-
"@typespec/compiler": "1.2.1",
81-
"@typespec/http": "1.2.1",
82-
"@typespec/openapi": "1.2.1",
83-
"@typespec/rest": "0.72.1",
84-
"@typespec/versioning": "0.72.1",
85-
"@typespec/xml": "0.72.1",
86-
"@typespec/events": "0.72.1",
87-
"@typespec/sse": "0.72.1",
88-
"@typespec/streams": "0.72.1",
89-
"@typespec/tspd": "0.72.1",
80+
"@typespec/compiler": "1.3.0",
81+
"@typespec/http": "1.3.0",
82+
"@typespec/openapi": "1.3.0",
83+
"@typespec/rest": "0.73.0",
84+
"@typespec/versioning": "0.73.0",
85+
"@typespec/xml": "0.73.0",
86+
"@typespec/events": "0.73.0",
87+
"@typespec/sse": "0.73.0",
88+
"@typespec/streams": "0.73.0",
89+
"@typespec/tspd": "0.72.2",
9090
"@microsoft/api-extractor": "^7.52.10",
9191
"@vitest/coverage-v8": "^3.2.4",
9292
"@vitest/ui": "^3.2.4",

typespec-tests/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@
99
"spector-serve": "tsp-spector serve ./node_modules/@typespec/http-specs/specs ./node_modules/@azure-tools/azure-http-specs/specs --coverageFile ./tsp-spector-coverage-java.json"
1010
},
1111
"dependencies": {
12-
"@typespec/spec-api": "0.1.0-alpha.7",
13-
"@typespec/spector": "0.1.0-alpha.16",
14-
"@typespec/http-specs": "0.1.0-alpha.24",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.23",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.12.tgz"
12+
"@typespec/spec-api": "0.1.0-alpha.8",
13+
"@typespec/spector": "0.1.0-alpha.17",
14+
"@typespec/http-specs": "0.1.0-alpha.25",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.25",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.32.0.tgz"
1717
},
1818
"devDependencies": {
19-
"@typespec/prettier-plugin-typespec": "^1.2.1",
19+
"@typespec/prettier-plugin-typespec": "^1.3.0",
2020
"prettier-plugin-organize-imports": "^4.2.0",
2121
"prettier": "^3.6.2"
2222
},
2323
"overrides": {
24-
"@typespec/compiler": "1.2.1",
25-
"@typespec/http": "1.2.1",
26-
"@typespec/rest": "0.72.1",
27-
"@typespec/versioning": "0.72.1",
28-
"@typespec/openapi": "1.2.1",
29-
"@typespec/xml": "0.72.1",
30-
"@typespec/events": "0.72.1",
31-
"@typespec/sse": "0.72.1",
32-
"@typespec/streams": "0.72.1",
33-
"@azure-tools/typespec-azure-core": "0.58.0",
34-
"@azure-tools/typespec-client-generator-core": "0.58.2",
35-
"@azure-tools/typespec-azure-resource-manager": "0.58.1",
36-
"@azure-tools/typespec-autorest": "0.58.1"
24+
"@typespec/compiler": "1.3.0",
25+
"@typespec/http": "1.3.0",
26+
"@typespec/rest": "0.73.0",
27+
"@typespec/versioning": "0.73.0",
28+
"@typespec/openapi": "1.3.0",
29+
"@typespec/xml": "0.73.0",
30+
"@typespec/events": "0.73.0",
31+
"@typespec/sse": "0.73.0",
32+
"@typespec/streams": "0.73.0",
33+
"@azure-tools/typespec-azure-core": "0.59.0",
34+
"@azure-tools/typespec-client-generator-core": "0.59.0",
35+
"@azure-tools/typespec-azure-resource-manager": "0.59.0",
36+
"@azure-tools/typespec-autorest": "0.59.0"
3737
},
3838
"private": true
3939
}
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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.hierarchybuilding;
6+
7+
import azure.clientgenerator.core.hierarchybuilding.implementation.HierarchyBuildingClientImpl;
8+
import azure.clientgenerator.core.hierarchybuilding.models.Animal;
9+
import com.azure.core.annotation.Generated;
10+
import com.azure.core.annotation.ReturnType;
11+
import com.azure.core.annotation.ServiceClient;
12+
import com.azure.core.annotation.ServiceMethod;
13+
import com.azure.core.exception.ClientAuthenticationException;
14+
import com.azure.core.exception.HttpResponseException;
15+
import com.azure.core.exception.ResourceModifiedException;
16+
import com.azure.core.exception.ResourceNotFoundException;
17+
import com.azure.core.http.rest.RequestOptions;
18+
import com.azure.core.http.rest.Response;
19+
import com.azure.core.util.BinaryData;
20+
import com.azure.core.util.FluxUtil;
21+
import reactor.core.publisher.Mono;
22+
23+
/**
24+
* Initializes a new instance of the asynchronous HierarchyBuildingClient type.
25+
*/
26+
@ServiceClient(builder = HierarchyBuildingClientBuilder.class, isAsync = true)
27+
public final class HierarchyBuildingAsyncClient {
28+
@Generated
29+
private final HierarchyBuildingClientImpl serviceClient;
30+
31+
/**
32+
* Initializes an instance of HierarchyBuildingAsyncClient class.
33+
*
34+
* @param serviceClient the service client implementation.
35+
*/
36+
@Generated
37+
HierarchyBuildingAsyncClient(HierarchyBuildingClientImpl serviceClient) {
38+
this.serviceClient = serviceClient;
39+
}
40+
41+
/**
42+
* Update a pet.
43+
* <p><strong>Request Body Schema</strong></p>
44+
*
45+
* <pre>
46+
* {@code
47+
* {
48+
* kind: String (Required)
49+
* name: String (Required)
50+
* }
51+
* }
52+
* </pre>
53+
*
54+
* <p><strong>Response Body Schema</strong></p>
55+
*
56+
* <pre>
57+
* {@code
58+
* {
59+
* kind: String (Required)
60+
* name: String (Required)
61+
* }
62+
* }
63+
* </pre>
64+
*
65+
* @param animal The animal parameter.
66+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
67+
* @throws HttpResponseException thrown if the request is rejected by server.
68+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
69+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
70+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
71+
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
72+
*/
73+
@Generated
74+
@ServiceMethod(returns = ReturnType.SINGLE)
75+
public Mono<Response<BinaryData>> updatePetWithResponse(BinaryData animal, RequestOptions requestOptions) {
76+
return this.serviceClient.updatePetWithResponseAsync(animal, requestOptions);
77+
}
78+
79+
/**
80+
* Update a dog.
81+
* <p><strong>Request Body Schema</strong></p>
82+
*
83+
* <pre>
84+
* {@code
85+
* {
86+
* kind: String (Required)
87+
* name: String (Required)
88+
* }
89+
* }
90+
* </pre>
91+
*
92+
* <p><strong>Response Body Schema</strong></p>
93+
*
94+
* <pre>
95+
* {@code
96+
* {
97+
* kind: String (Required)
98+
* name: String (Required)
99+
* }
100+
* }
101+
* </pre>
102+
*
103+
* @param animal The animal parameter.
104+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
105+
* @throws HttpResponseException thrown if the request is rejected by server.
106+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
107+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
108+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
109+
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
110+
*/
111+
@Generated
112+
@ServiceMethod(returns = ReturnType.SINGLE)
113+
public Mono<Response<BinaryData>> updateDogWithResponse(BinaryData animal, RequestOptions requestOptions) {
114+
return this.serviceClient.updateDogWithResponseAsync(animal, requestOptions);
115+
}
116+
117+
/**
118+
* Update a pet.
119+
*
120+
* @param animal The animal parameter.
121+
* @throws IllegalArgumentException thrown if parameters fail the validation.
122+
* @throws HttpResponseException thrown if the request is rejected by server.
123+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
124+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
125+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
126+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
127+
* @return the response body on successful completion of {@link Mono}.
128+
*/
129+
@Generated
130+
@ServiceMethod(returns = ReturnType.SINGLE)
131+
public Mono<Animal> updatePet(Animal animal) {
132+
// Generated convenience method for updatePetWithResponse
133+
RequestOptions requestOptions = new RequestOptions();
134+
return updatePetWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
135+
.map(protocolMethodData -> protocolMethodData.toObject(Animal.class));
136+
}
137+
138+
/**
139+
* Update a dog.
140+
*
141+
* @param animal The animal parameter.
142+
* @throws IllegalArgumentException thrown if parameters fail the validation.
143+
* @throws HttpResponseException thrown if the request is rejected by server.
144+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
145+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
146+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
147+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
148+
* @return the response body on successful completion of {@link Mono}.
149+
*/
150+
@Generated
151+
@ServiceMethod(returns = ReturnType.SINGLE)
152+
public Mono<Animal> updateDog(Animal animal) {
153+
// Generated convenience method for updateDogWithResponse
154+
RequestOptions requestOptions = new RequestOptions();
155+
return updateDogWithResponse(BinaryData.fromObject(animal), requestOptions).flatMap(FluxUtil::toMono)
156+
.map(protocolMethodData -> protocolMethodData.toObject(Animal.class));
157+
}
158+
}

0 commit comments

Comments
 (0)