Skip to content

Commit 27cf213

Browse files
chore: update Node.js dependencies, core submodule to typespec PR#10006 HEAD (#3303)
* Initial plan * chore: update core submodule to PR#10006 HEAD and bump Node.js dependencies Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * chore: sync tests after dependency update Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> * chore: update core submodule to main HEAD and sync tests Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
1 parent 11309a2 commit 27cf213

13 files changed

Lines changed: 421 additions & 108 deletions

File tree

core

Submodule core updated 546 files

typespec-extension/package-lock.json

Lines changed: 11 additions & 11 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"@azure-tools/typespec-autorest": ">=0.66.0 <1.0.0",
5252
"@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0",
5353
"@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0",
54-
"@azure-tools/typespec-azure-rulesets": ">=0.65.1 <1.0.0",
55-
"@azure-tools/typespec-client-generator-core": ">=0.66.1 <1.0.0",
54+
"@azure-tools/typespec-azure-rulesets": ">=0.66.0 <1.0.0",
55+
"@azure-tools/typespec-client-generator-core": ">=0.66.2 <1.0.0",
5656
"@azure-tools/typespec-liftr-base": ">=0.12.0 <1.0.0",
5757
"@typespec/compiler": "^1.10.0",
5858
"@typespec/http": "^1.10.0",
@@ -72,8 +72,8 @@
7272
"@azure-tools/typespec-autorest": "0.66.0",
7373
"@azure-tools/typespec-azure-core": "0.66.0",
7474
"@azure-tools/typespec-azure-resource-manager": "0.66.0",
75-
"@azure-tools/typespec-azure-rulesets": "0.65.1",
76-
"@azure-tools/typespec-client-generator-core": "0.66.1",
75+
"@azure-tools/typespec-azure-rulesets": "0.66.0",
76+
"@azure-tools/typespec-client-generator-core": "0.66.2",
7777
"@azure-tools/typespec-liftr-base": "0.12.0",
7878
"@microsoft/api-extractor": "^7.57.7",
7979
"@types/js-yaml": "~4.0.9",

typespec-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@typespec/spec-api": "0.1.0-alpha.13",
1313
"@typespec/spector": "0.1.0-alpha.24",
14-
"@typespec/http-specs": "0.1.0-alpha.33",
14+
"@typespec/http-specs": "0.1.0-alpha.34",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.38",
1616
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.43.0.tgz"
1717
},
@@ -31,7 +31,7 @@
3131
"@typespec/sse": "0.80.0",
3232
"@typespec/streams": "0.80.0",
3333
"@azure-tools/typespec-azure-core": "0.66.0",
34-
"@azure-tools/typespec-client-generator-core": "0.66.1",
34+
"@azure-tools/typespec-client-generator-core": "0.66.2",
3535
"@azure-tools/typespec-azure-resource-manager": "0.66.0",
3636
"@azure-tools/typespec-autorest": "0.66.0",
3737
"@azure-tools/typespec-liftr-base": "0.12.0"

typespec-tests/src/main/java/specialwords/ExtensibleStringsAsyncClient.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.azure.core.util.BinaryData;
1818
import com.azure.core.util.FluxUtil;
1919
import reactor.core.publisher.Mono;
20+
import specialwords.extensiblestrings.models.ExtensibleString;
2021
import specialwords.implementation.ExtensibleStringsImpl;
2122

2223
/**
@@ -43,54 +44,54 @@ public final class ExtensibleStringsAsyncClient {
4344
*
4445
* <pre>
4546
* {@code
46-
* String
47+
* String(and/as/assert/async/await/break/class/constructor/continue/def/del/elif/else/except/exec/finally/for/from/global/if/import/in/is/lambda/not/or/pass/raise/return/try/while/with/yield)
4748
* }
4849
* </pre>
4950
*
5051
* <p><strong>Response Body Schema</strong></p>
5152
*
5253
* <pre>
5354
* {@code
54-
* String
55+
* String(and/as/assert/async/await/break/class/constructor/continue/def/del/elif/else/except/exec/finally/for/from/global/if/import/in/is/lambda/not/or/pass/raise/return/try/while/with/yield)
5556
* }
5657
* </pre>
5758
*
58-
* @param accept The accept parameter.
5959
* @param body The body parameter.
6060
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
6161
* @throws HttpResponseException thrown if the request is rejected by server.
6262
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
6363
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
6464
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
65-
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
65+
* @return verify enum member names that are special words using extensible enum (union) along with {@link Response}
66+
* on successful completion of {@link Mono}.
6667
*/
6768
@Generated
6869
@ServiceMethod(returns = ReturnType.SINGLE)
69-
public Mono<Response<BinaryData>> putExtensibleStringValueWithResponse(String accept, BinaryData body,
70+
public Mono<Response<BinaryData>> putExtensibleStringValueWithResponse(BinaryData body,
7071
RequestOptions requestOptions) {
71-
return this.serviceClient.putExtensibleStringValueWithResponseAsync(accept, body, requestOptions);
72+
return this.serviceClient.putExtensibleStringValueWithResponseAsync(body, requestOptions);
7273
}
7374

7475
/**
7576
* The putExtensibleStringValue operation.
7677
*
77-
* @param accept The accept parameter.
7878
* @param body The body parameter.
7979
* @throws IllegalArgumentException thrown if parameters fail the validation.
8080
* @throws HttpResponseException thrown if the request is rejected by server.
8181
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
8282
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
8383
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
8484
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
85-
* @return the response body on successful completion of {@link Mono}.
85+
* @return verify enum member names that are special words using extensible enum (union) on successful completion of
86+
* {@link Mono}.
8687
*/
8788
@Generated
8889
@ServiceMethod(returns = ReturnType.SINGLE)
89-
public Mono<String> putExtensibleStringValue(String accept, String body) {
90+
public Mono<ExtensibleString> putExtensibleStringValue(ExtensibleString body) {
9091
// Generated convenience method for putExtensibleStringValueWithResponse
9192
RequestOptions requestOptions = new RequestOptions();
92-
return putExtensibleStringValueWithResponse(accept, BinaryData.fromString(body), requestOptions)
93-
.flatMap(FluxUtil::toMono)
94-
.map(protocolMethodData -> protocolMethodData.toString());
93+
return putExtensibleStringValueWithResponse(BinaryData.fromObject(body == null ? null : body.toString()),
94+
requestOptions).flatMap(FluxUtil::toMono)
95+
.map(protocolMethodData -> ExtensibleString.fromString(protocolMethodData.toObject(String.class)));
9596
}
9697
}

typespec-tests/src/main/java/specialwords/ExtensibleStringsClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.azure.core.http.rest.RequestOptions;
1616
import com.azure.core.http.rest.Response;
1717
import com.azure.core.util.BinaryData;
18+
import specialwords.extensiblestrings.models.ExtensibleString;
1819
import specialwords.implementation.ExtensibleStringsImpl;
1920

2021
/**
@@ -41,53 +42,52 @@ public final class ExtensibleStringsClient {
4142
*
4243
* <pre>
4344
* {@code
44-
* String
45+
* String(and/as/assert/async/await/break/class/constructor/continue/def/del/elif/else/except/exec/finally/for/from/global/if/import/in/is/lambda/not/or/pass/raise/return/try/while/with/yield)
4546
* }
4647
* </pre>
4748
*
4849
* <p><strong>Response Body Schema</strong></p>
4950
*
5051
* <pre>
5152
* {@code
52-
* String
53+
* String(and/as/assert/async/await/break/class/constructor/continue/def/del/elif/else/except/exec/finally/for/from/global/if/import/in/is/lambda/not/or/pass/raise/return/try/while/with/yield)
5354
* }
5455
* </pre>
5556
*
56-
* @param accept The accept parameter.
5757
* @param body The body parameter.
5858
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
5959
* @throws HttpResponseException thrown if the request is rejected by server.
6060
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
6161
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
6262
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
63-
* @return the response body along with {@link Response}.
63+
* @return verify enum member names that are special words using extensible enum (union) along with
64+
* {@link Response}.
6465
*/
6566
@Generated
6667
@ServiceMethod(returns = ReturnType.SINGLE)
67-
public Response<BinaryData> putExtensibleStringValueWithResponse(String accept, BinaryData body,
68-
RequestOptions requestOptions) {
69-
return this.serviceClient.putExtensibleStringValueWithResponse(accept, body, requestOptions);
68+
public Response<BinaryData> putExtensibleStringValueWithResponse(BinaryData body, RequestOptions requestOptions) {
69+
return this.serviceClient.putExtensibleStringValueWithResponse(body, requestOptions);
7070
}
7171

7272
/**
7373
* The putExtensibleStringValue operation.
7474
*
75-
* @param accept The accept parameter.
7675
* @param body The body parameter.
7776
* @throws IllegalArgumentException thrown if parameters fail the validation.
7877
* @throws HttpResponseException thrown if the request is rejected by server.
7978
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
8079
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
8180
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
8281
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
83-
* @return the response.
82+
* @return verify enum member names that are special words using extensible enum (union).
8483
*/
8584
@Generated
8685
@ServiceMethod(returns = ReturnType.SINGLE)
87-
public String putExtensibleStringValue(String accept, String body) {
86+
public ExtensibleString putExtensibleStringValue(ExtensibleString body) {
8887
// Generated convenience method for putExtensibleStringValueWithResponse
8988
RequestOptions requestOptions = new RequestOptions();
90-
return putExtensibleStringValueWithResponse(accept, BinaryData.fromString(body), requestOptions).getValue()
91-
.toString();
89+
return ExtensibleString.fromString(
90+
putExtensibleStringValueWithResponse(BinaryData.fromObject(body == null ? null : body.toString()),
91+
requestOptions).getValue().toObject(String.class));
9292
}
9393
}

typespec-tests/src/main/java/specialwords/SpecialWordsClientBuilder.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
serviceClients = {
4545
ModelsClient.class,
4646
ModelPropertiesClient.class,
47+
ExtensibleStringsClient.class,
4748
OperationsClient.class,
4849
ParametersClient.class,
49-
ExtensibleStringsClient.class,
5050
ModelsAsyncClient.class,
5151
ModelPropertiesAsyncClient.class,
52+
ExtensibleStringsAsyncClient.class,
5253
OperationsAsyncClient.class,
53-
ParametersAsyncClient.class,
54-
ExtensibleStringsAsyncClient.class })
54+
ParametersAsyncClient.class })
5555
public final class SpecialWordsClientBuilder implements HttpTrait<SpecialWordsClientBuilder>,
5656
ConfigurationTrait<SpecialWordsClientBuilder>, EndpointTrait<SpecialWordsClientBuilder> {
5757
@Generated
@@ -294,6 +294,16 @@ public ModelPropertiesAsyncClient buildModelPropertiesAsyncClient() {
294294
return new ModelPropertiesAsyncClient(buildInnerClient().getModelProperties());
295295
}
296296

297+
/**
298+
* Builds an instance of ExtensibleStringsAsyncClient class.
299+
*
300+
* @return an instance of ExtensibleStringsAsyncClient.
301+
*/
302+
@Generated
303+
public ExtensibleStringsAsyncClient buildExtensibleStringsAsyncClient() {
304+
return new ExtensibleStringsAsyncClient(buildInnerClient().getExtensibleStrings());
305+
}
306+
297307
/**
298308
* Builds an instance of OperationsAsyncClient class.
299309
*
@@ -314,16 +324,6 @@ public ParametersAsyncClient buildParametersAsyncClient() {
314324
return new ParametersAsyncClient(buildInnerClient().getParameters());
315325
}
316326

317-
/**
318-
* Builds an instance of ExtensibleStringsAsyncClient class.
319-
*
320-
* @return an instance of ExtensibleStringsAsyncClient.
321-
*/
322-
@Generated
323-
public ExtensibleStringsAsyncClient buildExtensibleStringsAsyncClient() {
324-
return new ExtensibleStringsAsyncClient(buildInnerClient().getExtensibleStrings());
325-
}
326-
327327
/**
328328
* Builds an instance of ModelsClient class.
329329
*
@@ -344,6 +344,16 @@ public ModelPropertiesClient buildModelPropertiesClient() {
344344
return new ModelPropertiesClient(buildInnerClient().getModelProperties());
345345
}
346346

347+
/**
348+
* Builds an instance of ExtensibleStringsClient class.
349+
*
350+
* @return an instance of ExtensibleStringsClient.
351+
*/
352+
@Generated
353+
public ExtensibleStringsClient buildExtensibleStringsClient() {
354+
return new ExtensibleStringsClient(buildInnerClient().getExtensibleStrings());
355+
}
356+
347357
/**
348358
* Builds an instance of OperationsClient class.
349359
*
@@ -364,15 +374,5 @@ public ParametersClient buildParametersClient() {
364374
return new ParametersClient(buildInnerClient().getParameters());
365375
}
366376

367-
/**
368-
* Builds an instance of ExtensibleStringsClient class.
369-
*
370-
* @return an instance of ExtensibleStringsClient.
371-
*/
372-
@Generated
373-
public ExtensibleStringsClient buildExtensibleStringsClient() {
374-
return new ExtensibleStringsClient(buildInnerClient().getExtensibleStrings());
375-
}
376-
377377
private static final ClientLogger LOGGER = new ClientLogger(SpecialWordsClientBuilder.class);
378378
}

0 commit comments

Comments
 (0)