Skip to content

Commit 247592f

Browse files
eng, sync namespace PR, prepare release 0.29.2 (#3079)
1 parent 8cc319e commit 247592f

File tree

58 files changed

+6593
-111
lines changed

Some content is hidden

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

58 files changed

+6593
-111
lines changed

core

Submodule core updated 327 files

eng/sdk/sync_sdk.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"azure-developer-devcenter", # 2 breaks introduced into stable api-version
2222
"azure-compute-batch", # Large change in same api-verion
2323
"azure-ai-vision-face", # SDK in development
24-
"azure-health-deidentification", # SDK in development
2524
"azure-health-insights-radiologyinsights", # SDK in development
2625
]
2726

typespec-extension/changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release History
22

3+
## 0.29.2 (2025-04-22)
4+
5+
Compatible with compiler 1.0.0-rc.0.
6+
7+
- Supported `@clientNamespace` decorator overrides `namespace` emitter option.
8+
- Supported `@clientInitialization` to add a public Builder for the subclient (require `enable-subclient` option).
9+
310
## 0.29.1 (2025-04-17)
411

512
Compatible with compiler 1.0.0-rc.0.

typespec-extension/package-lock.json

+90-90
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typespec-extension/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.29.1",
3+
"version": "0.29.2",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -68,13 +68,13 @@
6868
"@azure-tools/typespec-azure-core": "0.54.0",
6969
"@azure-tools/typespec-azure-resource-manager": "0.54.0",
7070
"@azure-tools/typespec-azure-rulesets": "0.54.0",
71-
"@azure-tools/typespec-client-generator-core": "0.54.0",
71+
"@azure-tools/typespec-client-generator-core": "0.54.2",
7272
"@azure-tools/typespec-liftr-base": "0.8.0",
7373
"@types/js-yaml": "~4.0.9",
7474
"@types/lodash": "~4.17.16",
75-
"@types/node": "~22.14.0",
76-
"@typescript-eslint/eslint-plugin": "~8.29.0",
77-
"@typescript-eslint/parser": "~8.29.0",
75+
"@types/node": "~22.14.1",
76+
"@typescript-eslint/eslint-plugin": "~8.30.1",
77+
"@typescript-eslint/parser": "~8.30.1",
7878
"@typespec/compiler": "1.0.0-rc.0",
7979
"@typespec/http": "1.0.0-rc.0",
8080
"@typespec/openapi": "1.0.0-rc.0",
@@ -87,17 +87,17 @@
8787
"@vitest/coverage-v8": "^3.1.1",
8888
"@vitest/ui": "^3.1.1",
8989
"c8": "~10.1.3",
90-
"eslint": "~9.23.0",
90+
"eslint": "~9.25.0",
9191
"eslint-plugin-deprecation": "~3.0.0",
9292
"eslint-plugin-import": "^2.31.0",
9393
"eslint-plugin-unicorn": "^58.0.0",
9494
"prettier": "~3.5.3",
9595
"rimraf": "~6.0.1",
96-
"typescript": "~5.8.2",
97-
"typescript-eslint": "^8.29.0",
96+
"typescript": "~5.8.3",
97+
"typescript-eslint": "^8.30.1",
9898
"vitest": "^3.1.1"
9999
},
100100
"overrides": {
101-
"eslint": "~9.23.0"
101+
"eslint": "~9.25.0"
102102
}
103103
}

typespec-tests/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
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.3",
13-
"@typespec/spector": "0.1.0-alpha.11",
14-
"@typespec/http-specs": "0.1.0-alpha.17",
15-
"@azure-tools/azure-http-specs": "0.1.0-alpha.13",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.29.1.tgz"
12+
"@typespec/spec-api": "0.1.0-alpha.4",
13+
"@typespec/spector": "0.1.0-alpha.12",
14+
"@typespec/http-specs": "0.1.0-alpha.19",
15+
"@azure-tools/azure-http-specs": "0.1.0-alpha.14",
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.29.2.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "~0.68.0",
@@ -31,7 +31,7 @@
3131
"@typespec/sse": "~0.68.0",
3232
"@typespec/streams": "~0.68.0",
3333
"@azure-tools/typespec-azure-core": "~0.54.0",
34-
"@azure-tools/typespec-client-generator-core": "~0.54.0",
34+
"@azure-tools/typespec-client-generator-core": "~0.54.2",
3535
"@azure-tools/typespec-azure-resource-manager": "~0.54.0",
3636
"@azure-tools/typespec-autorest": "~0.54.0"
3737
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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.clientinitialization;
6+
7+
import azure.clientgenerator.core.clientinitialization.implementation.HeaderParamClientImpl;
8+
import azure.clientgenerator.core.clientinitialization.models.Input;
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 HeaderParamClient type.
25+
*/
26+
@ServiceClient(builder = HeaderParamClientBuilder.class, isAsync = true)
27+
public final class HeaderParamAsyncClient {
28+
@Generated
29+
private final HeaderParamClientImpl serviceClient;
30+
31+
/**
32+
* Initializes an instance of HeaderParamAsyncClient class.
33+
*
34+
* @param serviceClient the service client implementation.
35+
*/
36+
@Generated
37+
HeaderParamAsyncClient(HeaderParamClientImpl serviceClient) {
38+
this.serviceClient = serviceClient;
39+
}
40+
41+
/**
42+
* The withQuery operation.
43+
*
44+
* @param id The id parameter.
45+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
46+
* @throws HttpResponseException thrown if the request is rejected by server.
47+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
48+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
49+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
50+
* @return the {@link Response} on successful completion of {@link Mono}.
51+
*/
52+
@Generated
53+
@ServiceMethod(returns = ReturnType.SINGLE)
54+
public Mono<Response<Void>> withQueryWithResponse(String id, RequestOptions requestOptions) {
55+
return this.serviceClient.withQueryWithResponseAsync(id, requestOptions);
56+
}
57+
58+
/**
59+
* The withBody operation.
60+
* <p><strong>Request Body Schema</strong></p>
61+
*
62+
* <pre>
63+
* {@code
64+
* {
65+
* name: String (Required)
66+
* }
67+
* }
68+
* </pre>
69+
*
70+
* @param body The body parameter.
71+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
72+
* @throws HttpResponseException thrown if the request is rejected by server.
73+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
74+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
75+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
76+
* @return the {@link Response} on successful completion of {@link Mono}.
77+
*/
78+
@Generated
79+
@ServiceMethod(returns = ReturnType.SINGLE)
80+
public Mono<Response<Void>> withBodyWithResponse(BinaryData body, RequestOptions requestOptions) {
81+
return this.serviceClient.withBodyWithResponseAsync(body, requestOptions);
82+
}
83+
84+
/**
85+
* The withQuery operation.
86+
*
87+
* @param id The id parameter.
88+
* @throws IllegalArgumentException thrown if parameters fail the validation.
89+
* @throws HttpResponseException thrown if the request is rejected by server.
90+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
91+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
92+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
93+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
94+
* @return A {@link Mono} that completes when a successful response is received.
95+
*/
96+
@Generated
97+
@ServiceMethod(returns = ReturnType.SINGLE)
98+
public Mono<Void> withQuery(String id) {
99+
// Generated convenience method for withQueryWithResponse
100+
RequestOptions requestOptions = new RequestOptions();
101+
return withQueryWithResponse(id, requestOptions).flatMap(FluxUtil::toMono);
102+
}
103+
104+
/**
105+
* The withBody operation.
106+
*
107+
* @param body The body parameter.
108+
* @throws IllegalArgumentException thrown if parameters fail the validation.
109+
* @throws HttpResponseException thrown if the request is rejected by server.
110+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
111+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
112+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
113+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
114+
* @return A {@link Mono} that completes when a successful response is received.
115+
*/
116+
@Generated
117+
@ServiceMethod(returns = ReturnType.SINGLE)
118+
public Mono<Void> withBody(Input body) {
119+
// Generated convenience method for withBodyWithResponse
120+
RequestOptions requestOptions = new RequestOptions();
121+
return withBodyWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono);
122+
}
123+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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.clientinitialization;
6+
7+
import azure.clientgenerator.core.clientinitialization.implementation.HeaderParamClientImpl;
8+
import azure.clientgenerator.core.clientinitialization.models.Input;
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+
21+
/**
22+
* Initializes a new instance of the synchronous HeaderParamClient type.
23+
*/
24+
@ServiceClient(builder = HeaderParamClientBuilder.class)
25+
public final class HeaderParamClient {
26+
@Generated
27+
private final HeaderParamClientImpl serviceClient;
28+
29+
/**
30+
* Initializes an instance of HeaderParamClient class.
31+
*
32+
* @param serviceClient the service client implementation.
33+
*/
34+
@Generated
35+
HeaderParamClient(HeaderParamClientImpl serviceClient) {
36+
this.serviceClient = serviceClient;
37+
}
38+
39+
/**
40+
* The withQuery operation.
41+
*
42+
* @param id The id parameter.
43+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
44+
* @throws HttpResponseException thrown if the request is rejected by server.
45+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
46+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
47+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
48+
* @return the {@link Response}.
49+
*/
50+
@Generated
51+
@ServiceMethod(returns = ReturnType.SINGLE)
52+
public Response<Void> withQueryWithResponse(String id, RequestOptions requestOptions) {
53+
return this.serviceClient.withQueryWithResponse(id, requestOptions);
54+
}
55+
56+
/**
57+
* The withBody operation.
58+
* <p><strong>Request Body Schema</strong></p>
59+
*
60+
* <pre>
61+
* {@code
62+
* {
63+
* name: String (Required)
64+
* }
65+
* }
66+
* </pre>
67+
*
68+
* @param body The body parameter.
69+
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
70+
* @throws HttpResponseException thrown if the request is rejected by server.
71+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
72+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
73+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
74+
* @return the {@link Response}.
75+
*/
76+
@Generated
77+
@ServiceMethod(returns = ReturnType.SINGLE)
78+
public Response<Void> withBodyWithResponse(BinaryData body, RequestOptions requestOptions) {
79+
return this.serviceClient.withBodyWithResponse(body, requestOptions);
80+
}
81+
82+
/**
83+
* The withQuery operation.
84+
*
85+
* @param id The id parameter.
86+
* @throws IllegalArgumentException thrown if parameters fail the validation.
87+
* @throws HttpResponseException thrown if the request is rejected by server.
88+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
89+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
90+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
91+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
92+
*/
93+
@Generated
94+
@ServiceMethod(returns = ReturnType.SINGLE)
95+
public void withQuery(String id) {
96+
// Generated convenience method for withQueryWithResponse
97+
RequestOptions requestOptions = new RequestOptions();
98+
withQueryWithResponse(id, requestOptions).getValue();
99+
}
100+
101+
/**
102+
* The withBody operation.
103+
*
104+
* @param body The body parameter.
105+
* @throws IllegalArgumentException thrown if parameters fail the validation.
106+
* @throws HttpResponseException thrown if the request is rejected by server.
107+
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
108+
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
109+
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
110+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
111+
*/
112+
@Generated
113+
@ServiceMethod(returns = ReturnType.SINGLE)
114+
public void withBody(Input body) {
115+
// Generated convenience method for withBodyWithResponse
116+
RequestOptions requestOptions = new RequestOptions();
117+
withBodyWithResponse(BinaryData.fromObject(body), requestOptions).getValue();
118+
}
119+
}

0 commit comments

Comments
 (0)