diff --git a/packages/http-client-java/emitter/src/code-model-builder.ts b/packages/http-client-java/emitter/src/code-model-builder.ts index c5ee5df9d9d..fe0d0c6ddcd 100644 --- a/packages/http-client-java/emitter/src/code-model-builder.ts +++ b/packages/http-client-java/emitter/src/code-model-builder.ts @@ -1233,8 +1233,7 @@ export class CodeModelBuilder { ) : undefined, nextLinkReInjectedParameters: nextLinkReInjectedParameters, - // change this to "sdkMethod.pagingMetadata.nextLinkVerbType" - nextLinkVerb: "GET", + nextLinkVerb: sdkMethod.pagingMetadata.nextLinkVerb ?? "GET", }; } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/package.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/package.json index c70a118a99d..30b06a45a39 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/package.json +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/package.json @@ -12,27 +12,27 @@ "spector-stop": "tsp-spector server stop" }, "dependencies": { - "@typespec/spector": "0.1.0-alpha.19", - "@typespec/spec-api": "0.1.0-alpha.9", - "@typespec/http-specs": "0.1.0-alpha.27", - "@typespec/json-schema": "1.5.0", - "@typespec/http-client-java": "file:../../typespec-http-client-java-0.5.0.tgz", + "@typespec/spector": "0.1.0-alpha.20", + "@typespec/spec-api": "0.1.0-alpha.10", + "@typespec/http-specs": "0.1.0-alpha.28", + "@typespec/json-schema": "1.6.0", + "@typespec/http-client-java": "file:../../typespec-http-client-java-0.5.1.tgz", "@typespec/http-client-java-tests": "file:" }, "overrides": { - "@typespec/compiler": "1.5.0", - "@typespec/http": "1.5.0", - "@typespec/rest": "0.75.0", - "@typespec/versioning": "0.75.0", - "@typespec/openapi": "1.5.0", - "@typespec/xml": "0.75.0", - "@typespec/events": "0.75.0", - "@typespec/sse": "0.75.0", - "@typespec/streams": "0.75.0", - "@azure-tools/typespec-azure-core": "0.61.0", - "@azure-tools/typespec-client-generator-core": "0.61.3", - "@azure-tools/typespec-azure-resource-manager": "0.61.1", - "@azure-tools/typespec-autorest": "0.61.1" + "@typespec/compiler": "1.6.0", + "@typespec/http": "1.6.0", + "@typespec/rest": "0.76.0", + "@typespec/versioning": "0.76.0", + "@typespec/openapi": "1.6.0", + "@typespec/xml": "0.76.0", + "@typespec/events": "0.76.0", + "@typespec/sse": "0.76.0", + "@typespec/streams": "0.76.0", + "@azure-tools/typespec-azure-core": "0.62.0", + "@azure-tools/typespec-client-generator-core": "0.62.0", + "@azure-tools/typespec-azure-resource-manager": "0.62.0", + "@azure-tools/typespec-autorest": "0.62.0" }, "private": true } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/HeaderClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/HeaderClient.java index db0686f7ace..675656ca7d5 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/HeaderClient.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/HeaderClient.java @@ -159,6 +159,38 @@ public void int32Seconds(Duration duration) { int32SecondsWithResponse(duration, RequestContext.none()); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.int32SecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.int32SecondsLargerUnitWithResponse(duration, updatedContext)); + } + + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32SecondsLargerUnit(Duration duration) { + int32SecondsLargerUnitWithResponse(duration, RequestContext.none()); + } + /** * The floatSeconds operation. * @@ -190,6 +222,38 @@ public void floatSeconds(Duration duration) { floatSecondsWithResponse(duration, RequestContext.none()); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.floatSecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.floatSecondsLargerUnitWithResponse(duration, updatedContext)); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatSecondsLargerUnit(Duration duration) { + floatSecondsLargerUnitWithResponse(duration, RequestContext.none()); + } + /** * The float64Seconds operation. * @@ -252,6 +316,38 @@ public void int32Milliseconds(int duration) { int32MillisecondsWithResponse(duration, RequestContext.none()); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.int32MillisecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.int32MillisecondsLargerUnitWithResponse(duration, updatedContext)); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32MillisecondsLargerUnit(int duration) { + int32MillisecondsLargerUnitWithResponse(duration, RequestContext.none()); + } + /** * The floatMilliseconds operation. * @@ -283,6 +379,38 @@ public void floatMilliseconds(double duration) { floatMillisecondsWithResponse(duration, RequestContext.none()); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.floatMillisecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.floatMillisecondsLargerUnitWithResponse(duration, updatedContext)); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatMillisecondsLargerUnit(double duration) { + floatMillisecondsLargerUnitWithResponse(duration, RequestContext.none()); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/PropertyClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/PropertyClient.java index 23b8d68d40f..a4ed242efa7 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/PropertyClient.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/PropertyClient.java @@ -6,11 +6,15 @@ import encode.duration.property.Float64SecondsDurationProperty; import encode.duration.property.FloatMillisecondsDurationArrayProperty; import encode.duration.property.FloatMillisecondsDurationProperty; +import encode.duration.property.FloatMillisecondsLargerUnitDurationProperty; import encode.duration.property.FloatSecondsDurationArrayProperty; import encode.duration.property.FloatSecondsDurationProperty; +import encode.duration.property.FloatSecondsLargerUnitDurationProperty; import encode.duration.property.ISO8601DurationProperty; import encode.duration.property.Int32MillisecondsDurationProperty; +import encode.duration.property.Int32MillisecondsLargerUnitDurationProperty; import encode.duration.property.Int32SecondsDurationProperty; +import encode.duration.property.Int32SecondsLargerUnitDurationProperty; import io.clientcore.core.annotations.Metadata; import io.clientcore.core.annotations.MetadataProperties; import io.clientcore.core.annotations.ReturnType; @@ -373,4 +377,142 @@ public FloatSecondsDurationArrayProperty floatSecondsArray(FloatSecondsDurationA public FloatMillisecondsDurationArrayProperty floatMillisecondsArray(FloatMillisecondsDurationArrayProperty body) { return floatMillisecondsArrayWithResponse(body, RequestContext.none()).getValue(); } + + /** + * The int32SecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response + int32SecondsLargerUnitWithResponse(Int32SecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.int32SecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.int32SecondsLargerUnitWithResponse(body, updatedContext)); + } + + /** + * The int32SecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Int32SecondsLargerUnitDurationProperty int32SecondsLargerUnit(Int32SecondsLargerUnitDurationProperty body) { + return int32SecondsLargerUnitWithResponse(body, RequestContext.none()).getValue(); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response + floatSecondsLargerUnitWithResponse(FloatSecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.floatSecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.floatSecondsLargerUnitWithResponse(body, updatedContext)); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public FloatSecondsLargerUnitDurationProperty floatSecondsLargerUnit(FloatSecondsLargerUnitDurationProperty body) { + return floatSecondsLargerUnitWithResponse(body, RequestContext.none()).getValue(); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse( + Int32MillisecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.int32MillisecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.int32MillisecondsLargerUnitWithResponse(body, updatedContext)); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Int32MillisecondsLargerUnitDurationProperty + int32MillisecondsLargerUnit(Int32MillisecondsLargerUnitDurationProperty body) { + return int32MillisecondsLargerUnitWithResponse(body, RequestContext.none()).getValue(); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse( + FloatMillisecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.floatMillisecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.floatMillisecondsLargerUnitWithResponse(body, updatedContext)); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public FloatMillisecondsLargerUnitDurationProperty + floatMillisecondsLargerUnit(FloatMillisecondsLargerUnitDurationProperty body) { + return floatMillisecondsLargerUnitWithResponse(body, RequestContext.none()).getValue(); + } } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/QueryClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/QueryClient.java index b124cd41355..10a926515e9 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/QueryClient.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/QueryClient.java @@ -128,6 +128,38 @@ public void int32Seconds(Duration input) { int32SecondsWithResponse(input, RequestContext.none()); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.int32SecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.int32SecondsLargerUnitWithResponse(input, updatedContext)); + } + + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32SecondsLargerUnit(Duration input) { + int32SecondsLargerUnitWithResponse(input, RequestContext.none()); + } + /** * The floatSeconds operation. * @@ -159,6 +191,38 @@ public void floatSeconds(Duration input) { floatSecondsWithResponse(input, RequestContext.none()); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.floatSecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.floatSecondsLargerUnitWithResponse(input, updatedContext)); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatSecondsLargerUnit(Duration input) { + floatSecondsLargerUnitWithResponse(input, RequestContext.none()); + } + /** * The float64Seconds operation. * @@ -221,6 +285,38 @@ public void int32Milliseconds(int input) { int32MillisecondsWithResponse(input, RequestContext.none()); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.int32MillisecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.int32MillisecondsLargerUnitWithResponse(input, updatedContext)); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32MillisecondsLargerUnit(int input) { + int32MillisecondsLargerUnitWithResponse(input, RequestContext.none()); + } + /** * The floatMilliseconds operation. * @@ -252,6 +348,38 @@ public void floatMilliseconds(double input) { floatMillisecondsWithResponse(input, RequestContext.none()); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.floatMillisecondsLargerUnit", + requestContext, + updatedContext -> this.serviceClient.floatMillisecondsLargerUnitWithResponse(input, updatedContext)); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatMillisecondsLargerUnit(double input) { + floatMillisecondsLargerUnitWithResponse(input, RequestContext.none()); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/HeadersImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/HeadersImpl.java index 0a777e56c05..7d2cb97eba0 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/HeadersImpl.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/HeadersImpl.java @@ -98,6 +98,14 @@ Response iso8601Array(@HostParam("endpoint") String endpoint, @HeaderParam Response int32Seconds(@HostParam("endpoint") String endpoint, @HeaderParam("duration") long duration, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/header/int32-seconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response int32SecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") long duration, RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/header/float-seconds", @@ -106,6 +114,14 @@ Response int32Seconds(@HostParam("endpoint") String endpoint, @HeaderParam Response floatSeconds(@HostParam("endpoint") String endpoint, @HeaderParam("duration") double duration, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/header/float-seconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response floatSecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") double duration, RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/header/float64-seconds", @@ -122,6 +138,14 @@ Response float64Seconds(@HostParam("endpoint") String endpoint, @HeaderPar Response int32Milliseconds(@HostParam("endpoint") String endpoint, @HeaderParam("duration") int duration, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/header/int32-milliseconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response int32MillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") int duration, RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/header/float-milliseconds", @@ -130,6 +154,14 @@ Response int32Milliseconds(@HostParam("endpoint") String endpoint, @Header Response floatMilliseconds(@HostParam("endpoint") String endpoint, @HeaderParam("duration") double duration, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/header/float-milliseconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response floatMillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") double duration, RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/header/float64-milliseconds", @@ -247,6 +279,25 @@ public Response int32SecondsWithResponse(Duration duration, RequestContext }); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.int32SecondsLargerUnit", + requestContext, updatedContext -> { + long durationConverted = duration.getSeconds(); + return service.int32SecondsLargerUnit(this.client.getEndpoint(), durationConverted, updatedContext); + }); + } + /** * The floatSeconds operation. * @@ -266,6 +317,25 @@ public Response floatSecondsWithResponse(Duration duration, RequestContext }); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.floatSecondsLargerUnit", + requestContext, updatedContext -> { + double durationConverted = (double) duration.toNanos() / 1000_000_000L; + return service.floatSecondsLargerUnit(this.client.getEndpoint(), durationConverted, updatedContext); + }); + } + /** * The float64Seconds operation. * @@ -303,6 +373,24 @@ public Response int32MillisecondsWithResponse(int duration, RequestContext }); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.int32MillisecondsLargerUnit", + requestContext, updatedContext -> { + return service.int32MillisecondsLargerUnit(this.client.getEndpoint(), duration, updatedContext); + }); + } + /** * The floatMilliseconds operation. * @@ -321,6 +409,24 @@ public Response floatMillisecondsWithResponse(double duration, RequestCont }); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double duration, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Header.floatMillisecondsLargerUnit", + requestContext, updatedContext -> { + return service.floatMillisecondsLargerUnit(this.client.getEndpoint(), duration, updatedContext); + }); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/PropertiesImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/PropertiesImpl.java index a9cbb0f8711..63799ba59e8 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/PropertiesImpl.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/PropertiesImpl.java @@ -5,11 +5,15 @@ import encode.duration.property.Float64SecondsDurationProperty; import encode.duration.property.FloatMillisecondsDurationArrayProperty; import encode.duration.property.FloatMillisecondsDurationProperty; +import encode.duration.property.FloatMillisecondsLargerUnitDurationProperty; import encode.duration.property.FloatSecondsDurationArrayProperty; import encode.duration.property.FloatSecondsDurationProperty; +import encode.duration.property.FloatSecondsLargerUnitDurationProperty; import encode.duration.property.ISO8601DurationProperty; import encode.duration.property.Int32MillisecondsDurationProperty; +import encode.duration.property.Int32MillisecondsLargerUnitDurationProperty; import encode.duration.property.Int32SecondsDurationProperty; +import encode.duration.property.Int32SecondsLargerUnitDurationProperty; import io.clientcore.core.annotations.ReturnType; import io.clientcore.core.annotations.ServiceInterface; import io.clientcore.core.annotations.ServiceMethod; @@ -162,6 +166,46 @@ Response floatSecondsArray(@HostParam("endpoi Response floatMillisecondsArray(@HostParam("endpoint") String endpoint, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") FloatMillisecondsDurationArrayProperty body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/duration/property/int32-seconds-larger-unit", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response int32SecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") Int32SecondsLargerUnitDurationProperty body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/duration/property/float-seconds-larger-unit", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response floatSecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FloatSecondsLargerUnitDurationProperty body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/duration/property/int32-milliseconds-larger-unit", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response int32MillisecondsLargerUnit( + @HostParam("endpoint") String endpoint, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") Int32MillisecondsLargerUnitDurationProperty body, + RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/duration/property/float-milliseconds-larger-unit", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response floatMillisecondsLargerUnit( + @HostParam("endpoint") String endpoint, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") FloatMillisecondsLargerUnitDurationProperty body, + RequestContext requestContext); } /** @@ -375,4 +419,92 @@ public Response float64SecondsWithResponse(Float updatedContext); }); } + + /** + * The int32SecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response + int32SecondsLargerUnitWithResponse(Int32SecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.int32SecondsLargerUnit", + requestContext, updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.int32SecondsLargerUnit(this.client.getEndpoint(), contentType, accept, body, + updatedContext); + }); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response + floatSecondsLargerUnitWithResponse(FloatSecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.floatSecondsLargerUnit", + requestContext, updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.floatSecondsLargerUnit(this.client.getEndpoint(), contentType, accept, body, + updatedContext); + }); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse( + Int32MillisecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.int32MillisecondsLargerUnit", + requestContext, updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.int32MillisecondsLargerUnit(this.client.getEndpoint(), contentType, accept, body, + updatedContext); + }); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse( + FloatMillisecondsLargerUnitDurationProperty body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Property.floatMillisecondsLargerUnit", + requestContext, updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.floatMillisecondsLargerUnit(this.client.getEndpoint(), contentType, accept, body, + updatedContext); + }); + } } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/QueriesImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/QueriesImpl.java index 929f422834d..efc86f87cdd 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/QueriesImpl.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/implementation/QueriesImpl.java @@ -90,6 +90,14 @@ Response iso8601(@HostParam("endpoint") String endpoint, @QueryParam("inpu Response int32Seconds(@HostParam("endpoint") String endpoint, @QueryParam("input") long input, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/query/int32-seconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response int32SecondsLargerUnit(@HostParam("endpoint") String endpoint, @QueryParam("input") long input, + RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/query/float-seconds", @@ -98,6 +106,14 @@ Response int32Seconds(@HostParam("endpoint") String endpoint, @QueryParam( Response floatSeconds(@HostParam("endpoint") String endpoint, @QueryParam("input") double input, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/query/float-seconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response floatSecondsLargerUnit(@HostParam("endpoint") String endpoint, @QueryParam("input") double input, + RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/query/float64-seconds", @@ -114,6 +130,14 @@ Response float64Seconds(@HostParam("endpoint") String endpoint, @QueryPara Response int32Milliseconds(@HostParam("endpoint") String endpoint, @QueryParam("input") int input, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/query/int32-milliseconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response int32MillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @QueryParam("input") int input, RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/query/float-milliseconds", @@ -122,6 +146,14 @@ Response int32Milliseconds(@HostParam("endpoint") String endpoint, @QueryP Response floatMilliseconds(@HostParam("endpoint") String endpoint, @QueryParam("input") double input, RequestContext requestContext); + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/encode/duration/query/float-milliseconds-larger-unit", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response floatMillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @QueryParam("input") double input, RequestContext requestContext); + @HttpRequestInformation( method = HttpMethod.GET, path = "/encode/duration/query/float64-milliseconds", @@ -202,6 +234,25 @@ public Response int32SecondsWithResponse(Duration input, RequestContext re }); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.int32SecondsLargerUnit", + requestContext, updatedContext -> { + long inputConverted = input.getSeconds(); + return service.int32SecondsLargerUnit(this.client.getEndpoint(), inputConverted, updatedContext); + }); + } + /** * The floatSeconds operation. * @@ -221,6 +272,25 @@ public Response floatSecondsWithResponse(Duration input, RequestContext re }); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.floatSecondsLargerUnit", + requestContext, updatedContext -> { + double inputConverted = (double) input.toNanos() / 1000_000_000L; + return service.floatSecondsLargerUnit(this.client.getEndpoint(), inputConverted, updatedContext); + }); + } + /** * The float64Seconds operation. * @@ -258,6 +328,24 @@ public Response int32MillisecondsWithResponse(int input, RequestContext re }); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.int32MillisecondsLargerUnit", + requestContext, updatedContext -> { + return service.int32MillisecondsLargerUnit(this.client.getEndpoint(), input, updatedContext); + }); + } + /** * The floatMilliseconds operation. * @@ -276,6 +364,24 @@ public Response floatMillisecondsWithResponse(double input, RequestContext }); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestContext The context to configure the HTTP request before HTTP client sends it. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the service returns an error. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Duration.Query.floatMillisecondsLargerUnit", + requestContext, updatedContext -> { + return service.floatMillisecondsLargerUnit(this.client.getEndpoint(), input, updatedContext); + }); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/FloatMillisecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/FloatMillisecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..b2bc3088861 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/FloatMillisecondsLargerUnitDurationProperty.java @@ -0,0 +1,80 @@ +package encode.duration.property; + +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.serialization.json.JsonReader; +import io.clientcore.core.serialization.json.JsonSerializable; +import io.clientcore.core.serialization.json.JsonToken; +import io.clientcore.core.serialization.json.JsonWriter; +import java.io.IOException; + +/** + * The FloatMillisecondsLargerUnitDurationProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class FloatMillisecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final double value; + + /** + * Creates an instance of FloatMillisecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public FloatMillisecondsLargerUnitDurationProperty(double value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public double getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeDoubleField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FloatMillisecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FloatMillisecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FloatMillisecondsLargerUnitDurationProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static FloatMillisecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + double value = 0.0; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.getDouble(); + } else { + reader.skipChildren(); + } + } + return new FloatMillisecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/FloatSecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/FloatSecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..cefc62676c7 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/FloatSecondsLargerUnitDurationProperty.java @@ -0,0 +1,85 @@ +package encode.duration.property; + +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.serialization.json.JsonReader; +import io.clientcore.core.serialization.json.JsonSerializable; +import io.clientcore.core.serialization.json.JsonToken; +import io.clientcore.core.serialization.json.JsonWriter; +import java.io.IOException; +import java.time.Duration; + +/** + * The FloatSecondsLargerUnitDurationProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class FloatSecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final double value; + + /** + * Creates an instance of FloatSecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public FloatSecondsLargerUnitDurationProperty(Duration value) { + if (value == null) { + this.value = 0.0; + } else { + this.value = (double) value.toNanos() / 1000_000_000L; + } + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public Duration getValue() { + return Duration.ofNanos((long) (this.value * 1000_000_000L)); + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeDoubleField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FloatSecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FloatSecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FloatSecondsLargerUnitDurationProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static FloatSecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Duration value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = Duration.ofNanos((long) (reader.getDouble() * 1000_000_000L)); + } else { + reader.skipChildren(); + } + } + return new FloatSecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/Int32MillisecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/Int32MillisecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..944efe71ef6 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/Int32MillisecondsLargerUnitDurationProperty.java @@ -0,0 +1,80 @@ +package encode.duration.property; + +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.serialization.json.JsonReader; +import io.clientcore.core.serialization.json.JsonSerializable; +import io.clientcore.core.serialization.json.JsonToken; +import io.clientcore.core.serialization.json.JsonWriter; +import java.io.IOException; + +/** + * The Int32MillisecondsLargerUnitDurationProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class Int32MillisecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final int value; + + /** + * Creates an instance of Int32MillisecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public Int32MillisecondsLargerUnitDurationProperty(int value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public int getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Int32MillisecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Int32MillisecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the Int32MillisecondsLargerUnitDurationProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static Int32MillisecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int value = 0; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.getInt(); + } else { + reader.skipChildren(); + } + } + return new Int32MillisecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/Int32SecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/Int32SecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..92cca760b29 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/duration/property/Int32SecondsLargerUnitDurationProperty.java @@ -0,0 +1,85 @@ +package encode.duration.property; + +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.serialization.json.JsonReader; +import io.clientcore.core.serialization.json.JsonSerializable; +import io.clientcore.core.serialization.json.JsonToken; +import io.clientcore.core.serialization.json.JsonWriter; +import java.io.IOException; +import java.time.Duration; + +/** + * The Int32SecondsLargerUnitDurationProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class Int32SecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final long value; + + /** + * Creates an instance of Int32SecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public Int32SecondsLargerUnitDurationProperty(Duration value) { + if (value == null) { + this.value = 0L; + } else { + this.value = value.getSeconds(); + } + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public Duration getValue() { + return Duration.ofSeconds(this.value); + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Int32SecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Int32SecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the Int32SecondsLargerUnitDurationProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static Int32SecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Duration value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = Duration.ofSeconds(reader.getLong()); + } else { + reader.skipChildren(); + } + } + return new Int32SecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_apiview_properties.json index d6da2c71007..500a90e2446 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_apiview_properties.json +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_apiview_properties.json @@ -10,10 +10,14 @@ "encode.duration.property.Float64SecondsDurationProperty": "Encode.Duration.Property.Float64SecondsDurationProperty", "encode.duration.property.FloatMillisecondsDurationArrayProperty": "Encode.Duration.Property.FloatMillisecondsDurationArrayProperty", "encode.duration.property.FloatMillisecondsDurationProperty": "Encode.Duration.Property.FloatMillisecondsDurationProperty", + "encode.duration.property.FloatMillisecondsLargerUnitDurationProperty": "Encode.Duration.Property.FloatMillisecondsLargerUnitDurationProperty", "encode.duration.property.FloatSecondsDurationArrayProperty": "Encode.Duration.Property.FloatSecondsDurationArrayProperty", "encode.duration.property.FloatSecondsDurationProperty": "Encode.Duration.Property.FloatSecondsDurationProperty", + "encode.duration.property.FloatSecondsLargerUnitDurationProperty": "Encode.Duration.Property.FloatSecondsLargerUnitDurationProperty", "encode.duration.property.ISO8601DurationProperty": "Encode.Duration.Property.ISO8601DurationProperty", "encode.duration.property.Int32MillisecondsDurationProperty": "Encode.Duration.Property.Int32MillisecondsDurationProperty", - "encode.duration.property.Int32SecondsDurationProperty": "Encode.Duration.Property.Int32SecondsDurationProperty" + "encode.duration.property.Int32MillisecondsLargerUnitDurationProperty": "Encode.Duration.Property.Int32MillisecondsLargerUnitDurationProperty", + "encode.duration.property.Int32SecondsDurationProperty": "Encode.Duration.Property.Int32SecondsDurationProperty", + "encode.duration.property.Int32SecondsLargerUnitDurationProperty": "Encode.Duration.Property.Int32SecondsLargerUnitDurationProperty" } } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_metadata.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_metadata.json index 20a9bee3b43..23e2a387e26 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_metadata.json +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-duration_metadata.json @@ -1 +1 @@ -{"flavor":"generic","crossLanguageDefinitions":{"encode.duration.DurationClientBuilder":"Encode.Duration","encode.duration.HeaderClient":"Encode.Duration.Header","encode.duration.PropertyClient":"Encode.Duration.Property","encode.duration.QueryClient":"Encode.Duration.Query","encode.duration.property.DefaultDurationProperty":"Encode.Duration.Property.DefaultDurationProperty","encode.duration.property.Float64MillisecondsDurationProperty":"Encode.Duration.Property.Float64MillisecondsDurationProperty","encode.duration.property.Float64SecondsDurationProperty":"Encode.Duration.Property.Float64SecondsDurationProperty","encode.duration.property.FloatMillisecondsDurationArrayProperty":"Encode.Duration.Property.FloatMillisecondsDurationArrayProperty","encode.duration.property.FloatMillisecondsDurationProperty":"Encode.Duration.Property.FloatMillisecondsDurationProperty","encode.duration.property.FloatSecondsDurationArrayProperty":"Encode.Duration.Property.FloatSecondsDurationArrayProperty","encode.duration.property.FloatSecondsDurationProperty":"Encode.Duration.Property.FloatSecondsDurationProperty","encode.duration.property.ISO8601DurationProperty":"Encode.Duration.Property.ISO8601DurationProperty","encode.duration.property.Int32MillisecondsDurationProperty":"Encode.Duration.Property.Int32MillisecondsDurationProperty","encode.duration.property.Int32SecondsDurationProperty":"Encode.Duration.Property.Int32SecondsDurationProperty"},"generatedFiles":["src/main/java/encode/duration/DurationClientBuilder.java","src/main/java/encode/duration/HeaderClient.java","src/main/java/encode/duration/PropertyClient.java","src/main/java/encode/duration/QueryClient.java","src/main/java/encode/duration/implementation/DurationClientImpl.java","src/main/java/encode/duration/implementation/HeadersImpl.java","src/main/java/encode/duration/implementation/PropertiesImpl.java","src/main/java/encode/duration/implementation/QueriesImpl.java","src/main/java/encode/duration/implementation/package-info.java","src/main/java/encode/duration/package-info.java","src/main/java/encode/duration/property/DefaultDurationProperty.java","src/main/java/encode/duration/property/Float64MillisecondsDurationProperty.java","src/main/java/encode/duration/property/Float64SecondsDurationProperty.java","src/main/java/encode/duration/property/FloatMillisecondsDurationArrayProperty.java","src/main/java/encode/duration/property/FloatMillisecondsDurationProperty.java","src/main/java/encode/duration/property/FloatSecondsDurationArrayProperty.java","src/main/java/encode/duration/property/FloatSecondsDurationProperty.java","src/main/java/encode/duration/property/ISO8601DurationProperty.java","src/main/java/encode/duration/property/Int32MillisecondsDurationProperty.java","src/main/java/encode/duration/property/Int32SecondsDurationProperty.java","src/main/java/encode/duration/property/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"generic","crossLanguageDefinitions":{"encode.duration.DurationClientBuilder":"Encode.Duration","encode.duration.HeaderClient":"Encode.Duration.Header","encode.duration.PropertyClient":"Encode.Duration.Property","encode.duration.QueryClient":"Encode.Duration.Query","encode.duration.property.DefaultDurationProperty":"Encode.Duration.Property.DefaultDurationProperty","encode.duration.property.Float64MillisecondsDurationProperty":"Encode.Duration.Property.Float64MillisecondsDurationProperty","encode.duration.property.Float64SecondsDurationProperty":"Encode.Duration.Property.Float64SecondsDurationProperty","encode.duration.property.FloatMillisecondsDurationArrayProperty":"Encode.Duration.Property.FloatMillisecondsDurationArrayProperty","encode.duration.property.FloatMillisecondsDurationProperty":"Encode.Duration.Property.FloatMillisecondsDurationProperty","encode.duration.property.FloatMillisecondsLargerUnitDurationProperty":"Encode.Duration.Property.FloatMillisecondsLargerUnitDurationProperty","encode.duration.property.FloatSecondsDurationArrayProperty":"Encode.Duration.Property.FloatSecondsDurationArrayProperty","encode.duration.property.FloatSecondsDurationProperty":"Encode.Duration.Property.FloatSecondsDurationProperty","encode.duration.property.FloatSecondsLargerUnitDurationProperty":"Encode.Duration.Property.FloatSecondsLargerUnitDurationProperty","encode.duration.property.ISO8601DurationProperty":"Encode.Duration.Property.ISO8601DurationProperty","encode.duration.property.Int32MillisecondsDurationProperty":"Encode.Duration.Property.Int32MillisecondsDurationProperty","encode.duration.property.Int32MillisecondsLargerUnitDurationProperty":"Encode.Duration.Property.Int32MillisecondsLargerUnitDurationProperty","encode.duration.property.Int32SecondsDurationProperty":"Encode.Duration.Property.Int32SecondsDurationProperty","encode.duration.property.Int32SecondsLargerUnitDurationProperty":"Encode.Duration.Property.Int32SecondsLargerUnitDurationProperty"},"generatedFiles":["src/main/java/encode/duration/DurationClientBuilder.java","src/main/java/encode/duration/HeaderClient.java","src/main/java/encode/duration/PropertyClient.java","src/main/java/encode/duration/QueryClient.java","src/main/java/encode/duration/implementation/DurationClientImpl.java","src/main/java/encode/duration/implementation/HeadersImpl.java","src/main/java/encode/duration/implementation/PropertiesImpl.java","src/main/java/encode/duration/implementation/QueriesImpl.java","src/main/java/encode/duration/implementation/package-info.java","src/main/java/encode/duration/package-info.java","src/main/java/encode/duration/property/DefaultDurationProperty.java","src/main/java/encode/duration/property/Float64MillisecondsDurationProperty.java","src/main/java/encode/duration/property/Float64SecondsDurationProperty.java","src/main/java/encode/duration/property/FloatMillisecondsDurationArrayProperty.java","src/main/java/encode/duration/property/FloatMillisecondsDurationProperty.java","src/main/java/encode/duration/property/FloatMillisecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/FloatSecondsDurationArrayProperty.java","src/main/java/encode/duration/property/FloatSecondsDurationProperty.java","src/main/java/encode/duration/property/FloatSecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/ISO8601DurationProperty.java","src/main/java/encode/duration/property/Int32MillisecondsDurationProperty.java","src/main/java/encode/duration/property/Int32MillisecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/Int32SecondsDurationProperty.java","src/main/java/encode/duration/property/Int32SecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/packages/http-client-java/generator/http-client-generator-test/package.json b/packages/http-client-java/generator/http-client-generator-test/package.json index 04ee2626557..2a307e20b09 100644 --- a/packages/http-client-java/generator/http-client-generator-test/package.json +++ b/packages/http-client-java/generator/http-client-generator-test/package.json @@ -12,27 +12,27 @@ "spector-stop": "tsp-spector server stop" }, "dependencies": { - "@typespec/spector": "0.1.0-alpha.19", - "@typespec/spec-api": "0.1.0-alpha.9", - "@typespec/http-specs": "0.1.0-alpha.27", - "@azure-tools/azure-http-specs": "0.1.0-alpha.31", - "@typespec/http-client-java": "file:../../typespec-http-client-java-0.5.0.tgz", + "@typespec/spector": "0.1.0-alpha.20", + "@typespec/spec-api": "0.1.0-alpha.10", + "@typespec/http-specs": "0.1.0-alpha.28", + "@azure-tools/azure-http-specs": "0.1.0-alpha.32", + "@typespec/http-client-java": "file:../../typespec-http-client-java-0.5.1.tgz", "@typespec/http-client-java-tests": "file:" }, "overrides": { - "@typespec/compiler": "1.5.0", - "@typespec/http": "1.5.0", - "@typespec/rest": "0.75.0", - "@typespec/versioning": "0.75.0", - "@typespec/openapi": "1.5.0", - "@typespec/xml": "0.75.0", - "@typespec/events": "0.75.0", - "@typespec/sse": "0.75.0", - "@typespec/streams": "0.75.0", - "@azure-tools/typespec-azure-core": "0.61.0", - "@azure-tools/typespec-client-generator-core": "0.61.3", - "@azure-tools/typespec-azure-resource-manager": "0.61.1", - "@azure-tools/typespec-autorest": "0.61.1" + "@typespec/compiler": "1.6.0", + "@typespec/http": "1.6.0", + "@typespec/rest": "0.76.0", + "@typespec/versioning": "0.76.0", + "@typespec/openapi": "1.6.0", + "@typespec/xml": "0.76.0", + "@typespec/events": "0.76.0", + "@typespec/sse": "0.76.0", + "@typespec/streams": "0.76.0", + "@azure-tools/typespec-azure-core": "0.62.0", + "@azure-tools/typespec-client-generator-core": "0.62.0", + "@azure-tools/typespec-azure-resource-manager": "0.62.0", + "@azure-tools/typespec-autorest": "0.62.0" }, "private": true } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbAsyncClient.java new file mode 100644 index 00000000000..ceaadd6b727 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbAsyncClient.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package azure.clientgenerator.core.nextlinkverb; + +import azure.clientgenerator.core.nextlinkverb.implementation.NextLinkVerbClientImpl; +import azure.clientgenerator.core.nextlinkverb.models.Test; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; +import java.util.stream.Collectors; +import reactor.core.publisher.Flux; + +/** + * Initializes a new instance of the asynchronous NextLinkVerbClient type. + */ +@ServiceClient(builder = NextLinkVerbClientBuilder.class, isAsync = true) +public final class NextLinkVerbAsyncClient { + @Generated + private final NextLinkVerbClientImpl serviceClient; + + /** + * Initializes an instance of NextLinkVerbAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + NextLinkVerbAsyncClient(NextLinkVerbClientImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * The listItems operation. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listItems(RequestOptions requestOptions) { + return this.serviceClient.listItemsAsync(requestOptions); + } + + /** + * The listItems operation. + * + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged response model as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listItems() { + // Generated convenience method for listItems + RequestOptions requestOptions = new RequestOptions(); + PagedFlux pagedFluxResponse = listItems(requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(Test.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClient.java new file mode 100644 index 00000000000..e88b934d7a9 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClient.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package azure.clientgenerator.core.nextlinkverb; + +import azure.clientgenerator.core.nextlinkverb.implementation.NextLinkVerbClientImpl; +import azure.clientgenerator.core.nextlinkverb.models.Test; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.util.BinaryData; + +/** + * Initializes a new instance of the synchronous NextLinkVerbClient type. + */ +@ServiceClient(builder = NextLinkVerbClientBuilder.class) +public final class NextLinkVerbClient { + @Generated + private final NextLinkVerbClientImpl serviceClient; + + /** + * Initializes an instance of NextLinkVerbClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + NextLinkVerbClient(NextLinkVerbClientImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * The listItems operation. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listItems(RequestOptions requestOptions) { + return this.serviceClient.listItems(requestOptions); + } + + /** + * The listItems operation. + * + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return paged response model as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listItems() { + // Generated convenience method for listItems + RequestOptions requestOptions = new RequestOptions(); + return serviceClient.listItems(requestOptions).mapPage(bodyItemValue -> bodyItemValue.toObject(Test.class)); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClientBuilder.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClientBuilder.java new file mode 100644 index 00000000000..9e1f3614e98 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClientBuilder.java @@ -0,0 +1,288 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package azure.clientgenerator.core.nextlinkverb; + +import azure.clientgenerator.core.nextlinkverb.implementation.NextLinkVerbClientImpl; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.client.traits.ConfigurationTrait; +import com.azure.core.client.traits.EndpointTrait; +import com.azure.core.client.traits.HttpTrait; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; +import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; +import com.azure.core.http.policy.AddHeadersPolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.ClientOptions; +import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.builder.ClientBuilderUtil; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.serializer.JacksonAdapter; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * A builder for creating a new instance of the NextLinkVerbClient type. + */ +@ServiceClientBuilder(serviceClients = { NextLinkVerbClient.class, NextLinkVerbAsyncClient.class }) +public final class NextLinkVerbClientBuilder implements HttpTrait, + ConfigurationTrait, EndpointTrait { + @Generated + private static final String SDK_NAME = "name"; + + @Generated + private static final String SDK_VERSION = "version"; + + @Generated + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-clientgenerator-core-nextlinkverb.properties"); + + @Generated + private final List pipelinePolicies; + + /** + * Create an instance of the NextLinkVerbClientBuilder. + */ + @Generated + public NextLinkVerbClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP client used to send the request. + */ + @Generated + private HttpClient httpClient; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The HTTP pipeline to send requests through. + */ + @Generated + private HttpPipeline pipeline; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder pipeline(HttpPipeline pipeline) { + if (this.pipeline != null && pipeline == null) { + LOGGER.atInfo().log("HttpPipeline is being set to 'null' when it was previously configured."); + } + this.pipeline = pipeline; + return this; + } + + /* + * The logging configuration for HTTP requests and responses. + */ + @Generated + private HttpLogOptions httpLogOptions; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) { + this.httpLogOptions = httpLogOptions; + return this; + } + + /* + * The client options such as application ID and custom headers to set on a request. + */ + @Generated + private ClientOptions clientOptions; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder clientOptions(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + return this; + } + + /* + * The retry options to configure retry policy for failed requests. + */ + @Generated + private RetryOptions retryOptions; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder retryOptions(RetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { + Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null."); + pipelinePolicies.add(customPolicy); + return this; + } + + /* + * The configuration store that is used during construction of the service client. + */ + @Generated + private Configuration configuration; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The service endpoint + */ + @Generated + private String endpoint; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public NextLinkVerbClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * The retry policy that will attempt to retry failed requests, if applicable. + */ + @Generated + private RetryPolicy retryPolicy; + + /** + * Sets The retry policy that will attempt to retry failed requests, if applicable. + * + * @param retryPolicy the retryPolicy value. + * @return the NextLinkVerbClientBuilder. + */ + @Generated + public NextLinkVerbClientBuilder retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Builds an instance of NextLinkVerbClientImpl with the provided parameters. + * + * @return an instance of NextLinkVerbClientImpl. + */ + @Generated + private NextLinkVerbClientImpl buildInnerClient() { + this.validateClient(); + HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); + String localEndpoint = (endpoint != null) ? endpoint : "http://localhost:3000"; + NextLinkVerbClientImpl client + = new NextLinkVerbClientImpl(localPipeline, JacksonAdapter.createDefaultSerializerAdapter(), localEndpoint); + return client; + } + + @Generated + private void validateClient() { + // This method is invoked from 'buildInnerClient'/'buildClient' method. + // Developer can customize this method, to validate that the necessary conditions are met for the new client. + } + + @Generated + private HttpPipeline createHttpPipeline() { + Configuration buildConfiguration + = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; + HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions; + ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions; + List policies = new ArrayList<>(); + String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName"); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions); + policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration)); + policies.add(new RequestIdPolicy()); + policies.add(new AddHeadersFromContextPolicy()); + HttpHeaders headers = CoreUtils.createHttpHeadersFromClientOptions(localClientOptions); + if (headers != null) { + policies.add(new AddHeadersPolicy(headers)); + } + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .forEach(p -> policies.add(p)); + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy())); + policies.add(new AddDatePolicy()); + this.pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .forEach(p -> policies.add(p)); + HttpPolicyProviders.addAfterRetryPolicies(policies); + policies.add(new HttpLoggingPolicy(localHttpLogOptions)); + HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])) + .httpClient(httpClient) + .clientOptions(localClientOptions) + .build(); + return httpPipeline; + } + + /** + * Builds an instance of NextLinkVerbAsyncClient class. + * + * @return an instance of NextLinkVerbAsyncClient. + */ + @Generated + public NextLinkVerbAsyncClient buildAsyncClient() { + return new NextLinkVerbAsyncClient(buildInnerClient()); + } + + /** + * Builds an instance of NextLinkVerbClient class. + * + * @return an instance of NextLinkVerbClient. + */ + @Generated + public NextLinkVerbClient buildClient() { + return new NextLinkVerbClient(buildInnerClient()); + } + + private static final ClientLogger LOGGER = new ClientLogger(NextLinkVerbClientBuilder.class); +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/NextLinkVerbClientImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/NextLinkVerbClientImpl.java new file mode 100644 index 00000000000..86da457c2c6 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/NextLinkVerbClientImpl.java @@ -0,0 +1,362 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package azure.clientgenerator.core.nextlinkverb.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.serializer.JacksonAdapter; +import com.azure.core.util.serializer.SerializerAdapter; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the NextLinkVerbClient type. + */ +public final class NextLinkVerbClientImpl { + /** + * The proxy service used to perform REST calls. + */ + private final NextLinkVerbClientService service; + + /** + * Service host. + */ + private final String endpoint; + + /** + * Gets Service host. + * + * @return the endpoint value. + */ + public String getEndpoint() { + return this.endpoint; + } + + /** + * The HTTP pipeline to send requests through. + */ + private final HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** + * The serializer to serialize an object into a string. + */ + private final SerializerAdapter serializerAdapter; + + /** + * Gets The serializer to serialize an object into a string. + * + * @return the serializerAdapter value. + */ + public SerializerAdapter getSerializerAdapter() { + return this.serializerAdapter; + } + + /** + * Initializes an instance of NextLinkVerbClient client. + * + * @param endpoint Service host. + */ + public NextLinkVerbClientImpl(String endpoint) { + this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(), + JacksonAdapter.createDefaultSerializerAdapter(), endpoint); + } + + /** + * Initializes an instance of NextLinkVerbClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param endpoint Service host. + */ + public NextLinkVerbClientImpl(HttpPipeline httpPipeline, String endpoint) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint); + } + + /** + * Initializes an instance of NextLinkVerbClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param serializerAdapter The serializer to serialize an object into a string. + * @param endpoint Service host. + */ + public NextLinkVerbClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint) { + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.endpoint = endpoint; + this.service + = RestProxy.create(NextLinkVerbClientService.class, this.httpPipeline, this.getSerializerAdapter()); + } + + /** + * The interface defining all the services for NextLinkVerbClient to be used by the proxy service to perform REST + * calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "NextLinkVerbClient") + public interface NextLinkVerbClientService { + @Post("/azure/client-generator-core/next-link-verb/items") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> listItems(@HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); + + @Post("/azure/client-generator-core/next-link-verb/items") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response listItemsSync(@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, + RequestOptions requestOptions, Context context); + + @Post("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> listItemsNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + + @Post("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response listItemsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + } + + /** + * The listItems operation. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listItemsSinglePageAsync(RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listItems(this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "items"), getNextLink(res.getValue(), "nextLink"), null)); + } + + /** + * The listItems operation. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listItemsAsync(RequestOptions requestOptions) { + RequestOptions requestOptionsForNextPage = new RequestOptions(); + requestOptionsForNextPage.setContext( + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedFlux<>(() -> listItemsSinglePageAsync(requestOptions), + nextLink -> listItemsNextSinglePageAsync(nextLink, requestOptionsForNextPage)); + } + + /** + * The listItems operation. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listItemsSinglePage(RequestOptions requestOptions) { + final String accept = "application/json"; + Response res = service.listItemsSync(this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "items"), getNextLink(res.getValue(), "nextLink"), null); + } + + /** + * The listItems operation. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listItems(RequestOptions requestOptions) { + RequestOptions requestOptionsForNextPage = new RequestOptions(); + requestOptionsForNextPage.setContext( + requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() : Context.NONE); + return new PagedIterable<>(() -> listItemsSinglePage(requestOptions), + nextLink -> listItemsNextSinglePage(nextLink, requestOptionsForNextPage)); + } + + /** + * Get the next page of items. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param nextLink The URL to get the next list of items. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listItemsNextSinglePageAsync(String nextLink, + RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listItemsNext(nextLink, this.getEndpoint(), accept, requestOptions, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "items"), getNextLink(res.getValue(), "nextLink"), null)); + } + + /** + * Get the next page of items. + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Required)
+     * }
+     * }
+     * 
+ * + * @param nextLink The URL to get the next list of items. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return paged response model along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listItemsNextSinglePage(String nextLink, RequestOptions requestOptions) { + final String accept = "application/json"; + Response res + = service.listItemsNextSync(nextLink, this.getEndpoint(), accept, requestOptions, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + getValues(res.getValue(), "items"), getNextLink(res.getValue(), "nextLink"), null); + } + + private List getValues(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + List values = (List) obj.get(path); + return values.stream().map(BinaryData::fromObject).collect(Collectors.toList()); + } catch (RuntimeException e) { + return null; + } + } + + private String getNextLink(BinaryData binaryData, String path) { + try { + Map obj = binaryData.toObject(Map.class); + return (String) obj.get(path); + } catch (RuntimeException e) { + return null; + } + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/package-info.java new file mode 100644 index 00000000000..93f6358e5f6 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/package-info.java @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * + * Package containing the implementations for NextLinkVerb. + * Test for @nextLinkVerb decorator. + * + */ +package azure.clientgenerator.core.nextlinkverb.implementation; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/models/Test.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/models/Test.java new file mode 100644 index 00000000000..357ccddf984 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/models/Test.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package azure.clientgenerator.core.nextlinkverb.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Test model. + */ +@Immutable +public final class Test implements JsonSerializable { + /* + * The id of the test. + */ + @Generated + private final String id; + + /** + * Creates an instance of Test class. + * + * @param id the id value to set. + */ + @Generated + private Test(String id) { + this.id = id; + } + + /** + * Get the id property: The id of the test. + * + * @return the id value. + */ + @Generated + public String getId() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Test from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Test if the JsonReader was pointing to an instance of it, or null if it was pointing to + * JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the Test. + */ + @Generated + public static Test fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String id = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + id = reader.getString(); + } else { + reader.skipChildren(); + } + } + return new Test(id); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/models/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/models/package-info.java new file mode 100644 index 00000000000..c889bfde4a1 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/models/package-info.java @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * + * Package containing the data models for NextLinkVerb. + * Test for @nextLinkVerb decorator. + * + */ +package azure.clientgenerator.core.nextlinkverb.models; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/package-info.java new file mode 100644 index 00000000000..ea516924dcf --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/azure/clientgenerator/core/nextlinkverb/package-info.java @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * + * Package containing the classes for NextLinkVerb. + * Test for @nextLinkVerb decorator. + * + */ +package azure.clientgenerator.core.nextlinkverb; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderAsyncClient.java index 6a6579a55f1..6d626edacb1 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderAsyncClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderAsyncClient.java @@ -106,6 +106,23 @@ public Mono> int32SecondsWithResponse(Duration duration, RequestO return this.serviceClient.int32SecondsWithResponseAsync(duration, requestOptions); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32SecondsLargerUnitWithResponse(Duration duration, RequestOptions requestOptions) { + return this.serviceClient.int32SecondsLargerUnitWithResponseAsync(duration, requestOptions); + } + /** * The floatSeconds operation. * @@ -123,6 +140,23 @@ public Mono> floatSecondsWithResponse(Duration duration, RequestO return this.serviceClient.floatSecondsWithResponseAsync(duration, requestOptions); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatSecondsLargerUnitWithResponse(Duration duration, RequestOptions requestOptions) { + return this.serviceClient.floatSecondsLargerUnitWithResponseAsync(duration, requestOptions); + } + /** * The float64Seconds operation. * @@ -157,6 +191,23 @@ public Mono> int32MillisecondsWithResponse(int duration, RequestO return this.serviceClient.int32MillisecondsWithResponseAsync(duration, requestOptions); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32MillisecondsLargerUnitWithResponse(int duration, RequestOptions requestOptions) { + return this.serviceClient.int32MillisecondsLargerUnitWithResponseAsync(duration, requestOptions); + } + /** * The floatMilliseconds operation. * @@ -174,6 +225,24 @@ public Mono> floatMillisecondsWithResponse(double duration, Reque return this.serviceClient.floatMillisecondsWithResponseAsync(duration, requestOptions); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatMillisecondsLargerUnitWithResponse(double duration, + RequestOptions requestOptions) { + return this.serviceClient.floatMillisecondsLargerUnitWithResponseAsync(duration, requestOptions); + } + /** * The float64Milliseconds operation. * @@ -289,6 +358,26 @@ public Mono int32Seconds(Duration duration) { return int32SecondsWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono int32SecondsLargerUnit(Duration duration) { + // Generated convenience method for int32SecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32SecondsLargerUnitWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The floatSeconds operation. * @@ -309,6 +398,26 @@ public Mono floatSeconds(Duration duration) { return floatSecondsWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono floatSecondsLargerUnit(Duration duration) { + // Generated convenience method for floatSecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatSecondsLargerUnitWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The float64Seconds operation. * @@ -349,6 +458,26 @@ public Mono int32Milliseconds(int duration) { return int32MillisecondsWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono int32MillisecondsLargerUnit(int duration) { + // Generated convenience method for int32MillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32MillisecondsLargerUnitWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The floatMilliseconds operation. * @@ -369,6 +498,26 @@ public Mono floatMilliseconds(double duration) { return floatMillisecondsWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono floatMillisecondsLargerUnit(double duration) { + // Generated convenience method for floatMillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatMillisecondsLargerUnitWithResponse(duration, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderClient.java index b7d1d265670..710d085edcb 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/HeaderClient.java @@ -104,6 +104,23 @@ public Response int32SecondsWithResponse(Duration duration, RequestOptions return this.serviceClient.int32SecondsWithResponse(duration, requestOptions); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration duration, RequestOptions requestOptions) { + return this.serviceClient.int32SecondsLargerUnitWithResponse(duration, requestOptions); + } + /** * The floatSeconds operation. * @@ -121,6 +138,23 @@ public Response floatSecondsWithResponse(Duration duration, RequestOptions return this.serviceClient.floatSecondsWithResponse(duration, requestOptions); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration duration, RequestOptions requestOptions) { + return this.serviceClient.floatSecondsLargerUnitWithResponse(duration, requestOptions); + } + /** * The float64Seconds operation. * @@ -155,6 +189,23 @@ public Response int32MillisecondsWithResponse(int duration, RequestOptions return this.serviceClient.int32MillisecondsWithResponse(duration, requestOptions); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int duration, RequestOptions requestOptions) { + return this.serviceClient.int32MillisecondsLargerUnitWithResponse(duration, requestOptions); + } + /** * The floatMilliseconds operation. * @@ -172,6 +223,23 @@ public Response floatMillisecondsWithResponse(double duration, RequestOpti return this.serviceClient.floatMillisecondsWithResponse(duration, requestOptions); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double duration, RequestOptions requestOptions) { + return this.serviceClient.floatMillisecondsLargerUnitWithResponse(duration, requestOptions); + } + /** * The float64Milliseconds operation. * @@ -282,6 +350,25 @@ public void int32Seconds(Duration duration) { int32SecondsWithResponse(duration, requestOptions).getValue(); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32SecondsLargerUnit(Duration duration) { + // Generated convenience method for int32SecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + int32SecondsLargerUnitWithResponse(duration, requestOptions).getValue(); + } + /** * The floatSeconds operation. * @@ -301,6 +388,25 @@ public void floatSeconds(Duration duration) { floatSecondsWithResponse(duration, requestOptions).getValue(); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatSecondsLargerUnit(Duration duration) { + // Generated convenience method for floatSecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + floatSecondsLargerUnitWithResponse(duration, requestOptions).getValue(); + } + /** * The float64Seconds operation. * @@ -339,6 +445,25 @@ public void int32Milliseconds(int duration) { int32MillisecondsWithResponse(duration, requestOptions).getValue(); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32MillisecondsLargerUnit(int duration) { + // Generated convenience method for int32MillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + int32MillisecondsLargerUnitWithResponse(duration, requestOptions).getValue(); + } + /** * The floatMilliseconds operation. * @@ -358,6 +483,25 @@ public void floatMilliseconds(double duration) { floatMillisecondsWithResponse(duration, requestOptions).getValue(); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatMillisecondsLargerUnit(double duration) { + // Generated convenience method for floatMillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + floatMillisecondsLargerUnitWithResponse(duration, requestOptions).getValue(); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyAsyncClient.java index 6ed833ec0a8..ddebcb7d99d 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyAsyncClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyAsyncClient.java @@ -22,11 +22,15 @@ import encode.duration.property.models.Float64SecondsDurationProperty; import encode.duration.property.models.FloatMillisecondsDurationArrayProperty; import encode.duration.property.models.FloatMillisecondsDurationProperty; +import encode.duration.property.models.FloatMillisecondsLargerUnitDurationProperty; import encode.duration.property.models.FloatSecondsDurationArrayProperty; import encode.duration.property.models.FloatSecondsDurationProperty; +import encode.duration.property.models.FloatSecondsLargerUnitDurationProperty; import encode.duration.property.models.ISO8601DurationProperty; import encode.duration.property.models.Int32MillisecondsDurationProperty; +import encode.duration.property.models.Int32MillisecondsLargerUnitDurationProperty; import encode.duration.property.models.Int32SecondsDurationProperty; +import encode.duration.property.models.Int32SecondsLargerUnitDurationProperty; import reactor.core.publisher.Mono; /** @@ -416,6 +420,154 @@ public Mono> floatMillisecondsArrayWithResponse(BinaryData return this.serviceClient.floatMillisecondsArrayWithResponseAsync(body, requestOptions); } + /** + * The int32SecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32SecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + return this.serviceClient.int32SecondsLargerUnitWithResponseAsync(body, requestOptions); + } + + /** + * The floatSecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatSecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + return this.serviceClient.floatSecondsLargerUnitWithResponseAsync(body, requestOptions); + } + + /** + * The int32MillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32MillisecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + return this.serviceClient.int32MillisecondsLargerUnitWithResponseAsync(body, requestOptions); + } + + /** + * The floatMillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatMillisecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + return this.serviceClient.floatMillisecondsLargerUnitWithResponseAsync(body, requestOptions); + } + /** * The defaultMethod operation. * @@ -626,4 +778,94 @@ public Mono floatSecondsArray(FloatSecondsDur return floatMillisecondsArrayWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(FloatMillisecondsDurationArrayProperty.class)); } + + /** + * The int32SecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono + int32SecondsLargerUnit(Int32SecondsLargerUnitDurationProperty body) { + // Generated convenience method for int32SecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32SecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(Int32SecondsLargerUnitDurationProperty.class)); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono + floatSecondsLargerUnit(FloatSecondsLargerUnitDurationProperty body) { + // Generated convenience method for floatSecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatSecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(FloatSecondsLargerUnitDurationProperty.class)); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono + int32MillisecondsLargerUnit(Int32MillisecondsLargerUnitDurationProperty body) { + // Generated convenience method for int32MillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32MillisecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions) + .flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(Int32MillisecondsLargerUnitDurationProperty.class)); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono + floatMillisecondsLargerUnit(FloatMillisecondsLargerUnitDurationProperty body) { + // Generated convenience method for floatMillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatMillisecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions) + .flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(FloatMillisecondsLargerUnitDurationProperty.class)); + } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyClient.java index e34c4af9071..c175283374f 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/PropertyClient.java @@ -21,11 +21,15 @@ import encode.duration.property.models.Float64SecondsDurationProperty; import encode.duration.property.models.FloatMillisecondsDurationArrayProperty; import encode.duration.property.models.FloatMillisecondsDurationProperty; +import encode.duration.property.models.FloatMillisecondsLargerUnitDurationProperty; import encode.duration.property.models.FloatSecondsDurationArrayProperty; import encode.duration.property.models.FloatSecondsDurationProperty; +import encode.duration.property.models.FloatSecondsLargerUnitDurationProperty; import encode.duration.property.models.ISO8601DurationProperty; import encode.duration.property.models.Int32MillisecondsDurationProperty; +import encode.duration.property.models.Int32MillisecondsLargerUnitDurationProperty; import encode.duration.property.models.Int32SecondsDurationProperty; +import encode.duration.property.models.Int32SecondsLargerUnitDurationProperty; /** * Initializes a new instance of the synchronous DurationClient type. @@ -413,6 +417,152 @@ public Response floatMillisecondsArrayWithResponse(BinaryData body, return this.serviceClient.floatMillisecondsArrayWithResponse(body, requestOptions); } + /** + * The int32SecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.int32SecondsLargerUnitWithResponse(body, requestOptions); + } + + /** + * The floatSecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.floatSecondsLargerUnitWithResponse(body, requestOptions); + } + + /** + * The int32MillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + return this.serviceClient.int32MillisecondsLargerUnitWithResponse(body, requestOptions); + } + + /** + * The floatMillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + return this.serviceClient.floatMillisecondsLargerUnitWithResponse(body, requestOptions); + } + /** * The defaultMethod operation. * @@ -622,4 +772,90 @@ public FloatMillisecondsDurationArrayProperty floatMillisecondsArray(FloatMillis return floatMillisecondsArrayWithResponse(BinaryData.fromObject(body), requestOptions).getValue() .toObject(FloatMillisecondsDurationArrayProperty.class); } + + /** + * The int32SecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Int32SecondsLargerUnitDurationProperty int32SecondsLargerUnit(Int32SecondsLargerUnitDurationProperty body) { + // Generated convenience method for int32SecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32SecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(Int32SecondsLargerUnitDurationProperty.class); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public FloatSecondsLargerUnitDurationProperty floatSecondsLargerUnit(FloatSecondsLargerUnitDurationProperty body) { + // Generated convenience method for floatSecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatSecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(FloatSecondsLargerUnitDurationProperty.class); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Int32MillisecondsLargerUnitDurationProperty + int32MillisecondsLargerUnit(Int32MillisecondsLargerUnitDurationProperty body) { + // Generated convenience method for int32MillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32MillisecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(Int32MillisecondsLargerUnitDurationProperty.class); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param body The body parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public FloatMillisecondsLargerUnitDurationProperty + floatMillisecondsLargerUnit(FloatMillisecondsLargerUnitDurationProperty body) { + // Generated convenience method for floatMillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatMillisecondsLargerUnitWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(FloatMillisecondsLargerUnitDurationProperty.class); + } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryAsyncClient.java index 4c54b75a923..c376be68fe2 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryAsyncClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryAsyncClient.java @@ -89,6 +89,23 @@ public Mono> int32SecondsWithResponse(Duration input, RequestOpti return this.serviceClient.int32SecondsWithResponseAsync(input, requestOptions); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32SecondsLargerUnitWithResponse(Duration input, RequestOptions requestOptions) { + return this.serviceClient.int32SecondsLargerUnitWithResponseAsync(input, requestOptions); + } + /** * The floatSeconds operation. * @@ -106,6 +123,23 @@ public Mono> floatSecondsWithResponse(Duration input, RequestOpti return this.serviceClient.floatSecondsWithResponseAsync(input, requestOptions); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatSecondsLargerUnitWithResponse(Duration input, RequestOptions requestOptions) { + return this.serviceClient.floatSecondsLargerUnitWithResponseAsync(input, requestOptions); + } + /** * The float64Seconds operation. * @@ -140,6 +174,23 @@ public Mono> int32MillisecondsWithResponse(int input, RequestOpti return this.serviceClient.int32MillisecondsWithResponseAsync(input, requestOptions); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32MillisecondsLargerUnitWithResponse(int input, RequestOptions requestOptions) { + return this.serviceClient.int32MillisecondsLargerUnitWithResponseAsync(input, requestOptions); + } + /** * The floatMilliseconds operation. * @@ -157,6 +208,23 @@ public Mono> floatMillisecondsWithResponse(double input, RequestO return this.serviceClient.floatMillisecondsWithResponseAsync(input, requestOptions); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatMillisecondsLargerUnitWithResponse(double input, RequestOptions requestOptions) { + return this.serviceClient.floatMillisecondsLargerUnitWithResponseAsync(input, requestOptions); + } + /** * The float64Milliseconds operation. * @@ -268,6 +336,26 @@ public Mono int32Seconds(Duration input) { return int32SecondsWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono int32SecondsLargerUnit(Duration input) { + // Generated convenience method for int32SecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32SecondsLargerUnitWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The floatSeconds operation. * @@ -288,6 +376,26 @@ public Mono floatSeconds(Duration input) { return floatSecondsWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono floatSecondsLargerUnit(Duration input) { + // Generated convenience method for floatSecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatSecondsLargerUnitWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The float64Seconds operation. * @@ -328,6 +436,26 @@ public Mono int32Milliseconds(int input) { return int32MillisecondsWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono int32MillisecondsLargerUnit(int input) { + // Generated convenience method for int32MillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return int32MillisecondsLargerUnitWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The floatMilliseconds operation. * @@ -348,6 +476,26 @@ public Mono floatMilliseconds(double input) { return floatMillisecondsWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono floatMillisecondsLargerUnit(double input) { + // Generated convenience method for floatMillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + return floatMillisecondsLargerUnitWithResponse(input, requestOptions).flatMap(FluxUtil::toMono); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryClient.java index 20aff7cd30a..1c68bee8ba5 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/QueryClient.java @@ -87,6 +87,23 @@ public Response int32SecondsWithResponse(Duration input, RequestOptions re return this.serviceClient.int32SecondsWithResponse(input, requestOptions); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration input, RequestOptions requestOptions) { + return this.serviceClient.int32SecondsLargerUnitWithResponse(input, requestOptions); + } + /** * The floatSeconds operation. * @@ -104,6 +121,23 @@ public Response floatSecondsWithResponse(Duration input, RequestOptions re return this.serviceClient.floatSecondsWithResponse(input, requestOptions); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration input, RequestOptions requestOptions) { + return this.serviceClient.floatSecondsLargerUnitWithResponse(input, requestOptions); + } + /** * The float64Seconds operation. * @@ -138,6 +172,23 @@ public Response int32MillisecondsWithResponse(int input, RequestOptions re return this.serviceClient.int32MillisecondsWithResponse(input, requestOptions); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int input, RequestOptions requestOptions) { + return this.serviceClient.int32MillisecondsLargerUnitWithResponse(input, requestOptions); + } + /** * The floatMilliseconds operation. * @@ -155,6 +206,23 @@ public Response floatMillisecondsWithResponse(double input, RequestOptions return this.serviceClient.floatMillisecondsWithResponse(input, requestOptions); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double input, RequestOptions requestOptions) { + return this.serviceClient.floatMillisecondsLargerUnitWithResponse(input, requestOptions); + } + /** * The float64Milliseconds operation. * @@ -263,6 +331,25 @@ public void int32Seconds(Duration input) { int32SecondsWithResponse(input, requestOptions).getValue(); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32SecondsLargerUnit(Duration input) { + // Generated convenience method for int32SecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + int32SecondsLargerUnitWithResponse(input, requestOptions).getValue(); + } + /** * The floatSeconds operation. * @@ -282,6 +369,25 @@ public void floatSeconds(Duration input) { floatSecondsWithResponse(input, requestOptions).getValue(); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatSecondsLargerUnit(Duration input) { + // Generated convenience method for floatSecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + floatSecondsLargerUnitWithResponse(input, requestOptions).getValue(); + } + /** * The float64Seconds operation. * @@ -320,6 +426,25 @@ public void int32Milliseconds(int input) { int32MillisecondsWithResponse(input, requestOptions).getValue(); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void int32MillisecondsLargerUnit(int input) { + // Generated convenience method for int32MillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + int32MillisecondsLargerUnitWithResponse(input, requestOptions).getValue(); + } + /** * The floatMilliseconds operation. * @@ -339,6 +464,25 @@ public void floatMilliseconds(double input) { floatMillisecondsWithResponse(input, requestOptions).getValue(); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void floatMillisecondsLargerUnit(double input) { + // Generated convenience method for floatMillisecondsLargerUnitWithResponse + RequestOptions requestOptions = new RequestOptions(); + floatMillisecondsLargerUnitWithResponse(input, requestOptions).getValue(); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/HeadersImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/HeadersImpl.java index fcc7cfe2678..78fc0f39e98 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/HeadersImpl.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/HeadersImpl.java @@ -131,6 +131,24 @@ Mono> int32Seconds(@HostParam("endpoint") String endpoint, Response int32SecondsSync(@HostParam("endpoint") String endpoint, @HeaderParam("duration") long duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/int32-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> int32SecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") long duration, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/header/int32-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response int32SecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") long duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/float-seconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -149,6 +167,24 @@ Mono> floatSeconds(@HostParam("endpoint") String endpoint, Response floatSecondsSync(@HostParam("endpoint") String endpoint, @HeaderParam("duration") double duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/float-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> floatSecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") double duration, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/header/float-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response floatSecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") double duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/float64-seconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -185,6 +221,24 @@ Mono> int32Milliseconds(@HostParam("endpoint") String endpoint, Response int32MillisecondsSync(@HostParam("endpoint") String endpoint, @HeaderParam("duration") int duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/int32-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> int32MillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") int duration, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/header/int32-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response int32MillisecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") int duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/float-milliseconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -203,6 +257,24 @@ Mono> floatMilliseconds(@HostParam("endpoint") String endpoint, Response floatMillisecondsSync(@HostParam("endpoint") String endpoint, @HeaderParam("duration") double duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/float-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> floatMillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") double duration, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/header/float-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response floatMillisecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("duration") double duration, RequestOptions requestOptions, Context context); + @Get("/encode/duration/header/float64-milliseconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -378,6 +450,43 @@ public Response int32SecondsWithResponse(Duration duration, RequestOptions return service.int32SecondsSync(this.client.getEndpoint(), durationConverted, requestOptions, Context.NONE); } + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32SecondsLargerUnitWithResponseAsync(Duration duration, + RequestOptions requestOptions) { + long durationConverted = duration.getSeconds(); + return FluxUtil.withContext(context -> service.int32SecondsLargerUnit(this.client.getEndpoint(), + durationConverted, requestOptions, context)); + } + + /** + * The int32SecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration duration, RequestOptions requestOptions) { + long durationConverted = duration.getSeconds(); + return service.int32SecondsLargerUnitSync(this.client.getEndpoint(), durationConverted, requestOptions, + Context.NONE); + } + /** * The floatSeconds operation. * @@ -413,6 +522,43 @@ public Response floatSecondsWithResponse(Duration duration, RequestOptions return service.floatSecondsSync(this.client.getEndpoint(), durationConverted, requestOptions, Context.NONE); } + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatSecondsLargerUnitWithResponseAsync(Duration duration, + RequestOptions requestOptions) { + double durationConverted = (double) duration.toNanos() / 1000_000_000L; + return FluxUtil.withContext(context -> service.floatSecondsLargerUnit(this.client.getEndpoint(), + durationConverted, requestOptions, context)); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration duration, RequestOptions requestOptions) { + double durationConverted = (double) duration.toNanos() / 1000_000_000L; + return service.floatSecondsLargerUnitSync(this.client.getEndpoint(), durationConverted, requestOptions, + Context.NONE); + } + /** * The float64Seconds operation. * @@ -481,6 +627,41 @@ public Response int32MillisecondsWithResponse(int duration, RequestOptions return service.int32MillisecondsSync(this.client.getEndpoint(), duration, requestOptions, Context.NONE); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32MillisecondsLargerUnitWithResponseAsync(int duration, + RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.int32MillisecondsLargerUnit(this.client.getEndpoint(), duration, + requestOptions, context)); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int duration, RequestOptions requestOptions) { + return service.int32MillisecondsLargerUnitSync(this.client.getEndpoint(), duration, requestOptions, + Context.NONE); + } + /** * The floatMilliseconds operation. * @@ -514,6 +695,41 @@ public Response floatMillisecondsWithResponse(double duration, RequestOpti return service.floatMillisecondsSync(this.client.getEndpoint(), duration, requestOptions, Context.NONE); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatMillisecondsLargerUnitWithResponseAsync(double duration, + RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.floatMillisecondsLargerUnit(this.client.getEndpoint(), duration, + requestOptions, context)); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param duration The duration parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double duration, RequestOptions requestOptions) { + return service.floatMillisecondsLargerUnitSync(this.client.getEndpoint(), duration, requestOptions, + Context.NONE); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/PropertiesImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/PropertiesImpl.java index 880bca492fa..b727b536a71 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/PropertiesImpl.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/PropertiesImpl.java @@ -257,6 +257,86 @@ Mono> floatMillisecondsArray(@HostParam("endpoint") String Response floatMillisecondsArraySync(@HostParam("endpoint") String endpoint, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/int32-seconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> int32SecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/int32-seconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response int32SecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/float-seconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> floatSecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/float-seconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response floatSecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/int32-milliseconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> int32MillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/int32-milliseconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response int32MillisecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/float-milliseconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> floatMillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/duration/property/float-milliseconds-larger-unit") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response floatMillisecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); } /** @@ -1038,4 +1118,314 @@ public Response floatMillisecondsArrayWithResponse(BinaryData body, return service.floatMillisecondsArraySync(this.client.getEndpoint(), contentType, accept, body, requestOptions, Context.NONE); } + + /** + * The int32SecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32SecondsLargerUnitWithResponseAsync(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.int32SecondsLargerUnit(this.client.getEndpoint(), contentType, + accept, body, requestOptions, context)); + } + + /** + * The int32SecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: long (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.int32SecondsLargerUnitSync(this.client.getEndpoint(), contentType, accept, body, requestOptions, + Context.NONE); + } + + /** + * The floatSecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatSecondsLargerUnitWithResponseAsync(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.floatSecondsLargerUnit(this.client.getEndpoint(), contentType, + accept, body, requestOptions, context)); + } + + /** + * The floatSecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.floatSecondsLargerUnitSync(this.client.getEndpoint(), contentType, accept, body, requestOptions, + Context.NONE); + } + + /** + * The int32MillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32MillisecondsLargerUnitWithResponseAsync(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.int32MillisecondsLargerUnit(this.client.getEndpoint(), + contentType, accept, body, requestOptions, context)); + } + + /** + * The int32MillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: int (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.int32MillisecondsLargerUnitSync(this.client.getEndpoint(), contentType, accept, body, + requestOptions, Context.NONE); + } + + /** + * The floatMillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatMillisecondsLargerUnitWithResponseAsync(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.floatMillisecondsLargerUnit(this.client.getEndpoint(), + contentType, accept, body, requestOptions, context)); + } + + /** + * The floatMillisecondsLargerUnit operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value: double (Required)
+     * }
+     * }
+     * 
+ * + * @param body The body parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.floatMillisecondsLargerUnitSync(this.client.getEndpoint(), contentType, accept, body, + requestOptions, Context.NONE); + } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/QueriesImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/QueriesImpl.java index fc6f84f79df..3a46e23b7ad 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/QueriesImpl.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/implementation/QueriesImpl.java @@ -114,6 +114,24 @@ Mono> int32Seconds(@HostParam("endpoint") String endpoint, @Query Response int32SecondsSync(@HostParam("endpoint") String endpoint, @QueryParam("input") long input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/int32-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> int32SecondsLargerUnit(@HostParam("endpoint") String endpoint, + @QueryParam("input") long input, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/query/int32-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response int32SecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @QueryParam("input") long input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/float-seconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -132,6 +150,24 @@ Mono> floatSeconds(@HostParam("endpoint") String endpoint, @Query Response floatSecondsSync(@HostParam("endpoint") String endpoint, @QueryParam("input") double input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/float-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> floatSecondsLargerUnit(@HostParam("endpoint") String endpoint, + @QueryParam("input") double input, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/query/float-seconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response floatSecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @QueryParam("input") double input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/float64-seconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -168,6 +204,24 @@ Mono> int32Milliseconds(@HostParam("endpoint") String endpoint, @ Response int32MillisecondsSync(@HostParam("endpoint") String endpoint, @QueryParam("input") int input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/int32-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> int32MillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @QueryParam("input") int input, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/query/int32-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response int32MillisecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @QueryParam("input") int input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/float-milliseconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -186,6 +240,24 @@ Mono> floatMilliseconds(@HostParam("endpoint") String endpoint, Response floatMillisecondsSync(@HostParam("endpoint") String endpoint, @QueryParam("input") double input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/float-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> floatMillisecondsLargerUnit(@HostParam("endpoint") String endpoint, + @QueryParam("input") double input, RequestOptions requestOptions, Context context); + + @Get("/encode/duration/query/float-milliseconds-larger-unit") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response floatMillisecondsLargerUnitSync(@HostParam("endpoint") String endpoint, + @QueryParam("input") double input, RequestOptions requestOptions, Context context); + @Get("/encode/duration/query/float64-milliseconds") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -342,6 +414,42 @@ public Response int32SecondsWithResponse(Duration input, RequestOptions re return service.int32SecondsSync(this.client.getEndpoint(), inputConverted, requestOptions, Context.NONE); } + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32SecondsLargerUnitWithResponseAsync(Duration input, RequestOptions requestOptions) { + long inputConverted = input.getSeconds(); + return FluxUtil.withContext(context -> service.int32SecondsLargerUnit(this.client.getEndpoint(), inputConverted, + requestOptions, context)); + } + + /** + * The int32SecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32SecondsLargerUnitWithResponse(Duration input, RequestOptions requestOptions) { + long inputConverted = input.getSeconds(); + return service.int32SecondsLargerUnitSync(this.client.getEndpoint(), inputConverted, requestOptions, + Context.NONE); + } + /** * The floatSeconds operation. * @@ -377,6 +485,42 @@ public Response floatSecondsWithResponse(Duration input, RequestOptions re return service.floatSecondsSync(this.client.getEndpoint(), inputConverted, requestOptions, Context.NONE); } + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatSecondsLargerUnitWithResponseAsync(Duration input, RequestOptions requestOptions) { + double inputConverted = (double) input.toNanos() / 1000_000_000L; + return FluxUtil.withContext(context -> service.floatSecondsLargerUnit(this.client.getEndpoint(), inputConverted, + requestOptions, context)); + } + + /** + * The floatSecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatSecondsLargerUnitWithResponse(Duration input, RequestOptions requestOptions) { + double inputConverted = (double) input.toNanos() / 1000_000_000L; + return service.floatSecondsLargerUnitSync(this.client.getEndpoint(), inputConverted, requestOptions, + Context.NONE); + } + /** * The float64Seconds operation. * @@ -445,6 +589,39 @@ public Response int32MillisecondsWithResponse(int input, RequestOptions re return service.int32MillisecondsSync(this.client.getEndpoint(), input, requestOptions, Context.NONE); } + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> int32MillisecondsLargerUnitWithResponseAsync(int input, RequestOptions requestOptions) { + return FluxUtil.withContext( + context -> service.int32MillisecondsLargerUnit(this.client.getEndpoint(), input, requestOptions, context)); + } + + /** + * The int32MillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response int32MillisecondsLargerUnitWithResponse(int input, RequestOptions requestOptions) { + return service.int32MillisecondsLargerUnitSync(this.client.getEndpoint(), input, requestOptions, Context.NONE); + } + /** * The floatMilliseconds operation. * @@ -478,6 +655,40 @@ public Response floatMillisecondsWithResponse(double input, RequestOptions return service.floatMillisecondsSync(this.client.getEndpoint(), input, requestOptions, Context.NONE); } + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> floatMillisecondsLargerUnitWithResponseAsync(double input, + RequestOptions requestOptions) { + return FluxUtil.withContext( + context -> service.floatMillisecondsLargerUnit(this.client.getEndpoint(), input, requestOptions, context)); + } + + /** + * The floatMillisecondsLargerUnit operation. + * + * @param input The input parameter. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response floatMillisecondsLargerUnitWithResponse(double input, RequestOptions requestOptions) { + return service.floatMillisecondsLargerUnitSync(this.client.getEndpoint(), input, requestOptions, Context.NONE); + } + /** * The float64Milliseconds operation. * diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/FloatMillisecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/FloatMillisecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..e98cf4026c6 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/FloatMillisecondsLargerUnitDurationProperty.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.duration.property.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The FloatMillisecondsLargerUnitDurationProperty model. + */ +@Immutable +public final class FloatMillisecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final double value; + + /** + * Creates an instance of FloatMillisecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Generated + public FloatMillisecondsLargerUnitDurationProperty(double value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public double getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeDoubleField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FloatMillisecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FloatMillisecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FloatMillisecondsLargerUnitDurationProperty. + */ + @Generated + public static FloatMillisecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + double value = 0.0; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.getDouble(); + } else { + reader.skipChildren(); + } + } + return new FloatMillisecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/FloatSecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/FloatSecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..b8fa54d2e28 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/FloatSecondsLargerUnitDurationProperty.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.duration.property.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.Duration; + +/** + * The FloatSecondsLargerUnitDurationProperty model. + */ +@Immutable +public final class FloatSecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final double value; + + /** + * Creates an instance of FloatSecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Generated + public FloatSecondsLargerUnitDurationProperty(Duration value) { + if (value == null) { + this.value = 0.0; + } else { + this.value = (double) value.toNanos() / 1000_000_000L; + } + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public Duration getValue() { + return Duration.ofNanos((long) (this.value * 1000_000_000L)); + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeDoubleField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FloatSecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FloatSecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FloatSecondsLargerUnitDurationProperty. + */ + @Generated + public static FloatSecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Duration value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = Duration.ofNanos((long) (reader.getDouble() * 1000_000_000L)); + } else { + reader.skipChildren(); + } + } + return new FloatSecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/Int32MillisecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/Int32MillisecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..9be4f62447d --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/Int32MillisecondsLargerUnitDurationProperty.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.duration.property.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The Int32MillisecondsLargerUnitDurationProperty model. + */ +@Immutable +public final class Int32MillisecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final int value; + + /** + * Creates an instance of Int32MillisecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Generated + public Int32MillisecondsLargerUnitDurationProperty(int value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public int getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Int32MillisecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Int32MillisecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the Int32MillisecondsLargerUnitDurationProperty. + */ + @Generated + public static Int32MillisecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + int value = 0; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.getInt(); + } else { + reader.skipChildren(); + } + } + return new Int32MillisecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/Int32SecondsLargerUnitDurationProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/Int32SecondsLargerUnitDurationProperty.java new file mode 100644 index 00000000000..7a1d845ed26 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/duration/property/models/Int32SecondsLargerUnitDurationProperty.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.duration.property.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.Duration; + +/** + * The Int32SecondsLargerUnitDurationProperty model. + */ +@Immutable +public final class Int32SecondsLargerUnitDurationProperty + implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final long value; + + /** + * Creates an instance of Int32SecondsLargerUnitDurationProperty class. + * + * @param value the value value to set. + */ + @Generated + public Int32SecondsLargerUnitDurationProperty(Duration value) { + if (value == null) { + this.value = 0L; + } else { + this.value = value.getSeconds(); + } + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public Duration getValue() { + return Duration.ofSeconds(this.value); + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Int32SecondsLargerUnitDurationProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Int32SecondsLargerUnitDurationProperty if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the Int32SecondsLargerUnitDurationProperty. + */ + @Generated + public static Int32SecondsLargerUnitDurationProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Duration value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = Duration.ofSeconds(reader.getLong()); + } else { + reader.skipChildren(); + } + } + return new Int32SecondsLargerUnitDurationProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-nextlinkverb_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-nextlinkverb_apiview_properties.json new file mode 100644 index 00000000000..c07cf51fbfc --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-nextlinkverb_apiview_properties.json @@ -0,0 +1,11 @@ +{ + "flavor": "Azure", + "CrossLanguageDefinitionId": { + "azure.clientgenerator.core.nextlinkverb.NextLinkVerbAsyncClient": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb", + "azure.clientgenerator.core.nextlinkverb.NextLinkVerbAsyncClient.listItems": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems", + "azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb", + "azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient.listItems": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems", + "azure.clientgenerator.core.nextlinkverb.NextLinkVerbClientBuilder": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb", + "azure.clientgenerator.core.nextlinkverb.models.Test": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.Test" + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-nextlinkverb_metadata.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-nextlinkverb_metadata.json new file mode 100644 index 00000000000..052cd7c74fe --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-nextlinkverb_metadata.json @@ -0,0 +1 @@ +{"flavor":"Azure","crossLanguageDefinitions":{"azure.clientgenerator.core.nextlinkverb.NextLinkVerbAsyncClient":"_Specs_.Azure.ClientGenerator.Core.NextLinkVerb","azure.clientgenerator.core.nextlinkverb.NextLinkVerbAsyncClient.listItems":"_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems","azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient":"_Specs_.Azure.ClientGenerator.Core.NextLinkVerb","azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient.listItems":"_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems","azure.clientgenerator.core.nextlinkverb.NextLinkVerbClientBuilder":"_Specs_.Azure.ClientGenerator.Core.NextLinkVerb","azure.clientgenerator.core.nextlinkverb.models.Test":"_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.Test"},"generatedFiles":["src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbAsyncClient.java","src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClient.java","src/main/java/azure/clientgenerator/core/nextlinkverb/NextLinkVerbClientBuilder.java","src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/NextLinkVerbClientImpl.java","src/main/java/azure/clientgenerator/core/nextlinkverb/implementation/package-info.java","src/main/java/azure/clientgenerator/core/nextlinkverb/models/Test.java","src/main/java/azure/clientgenerator/core/nextlinkverb/models/package-info.java","src/main/java/azure/clientgenerator/core/nextlinkverb/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_apiview_properties.json index aea7817abf9..821255378ba 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_apiview_properties.json +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_apiview_properties.json @@ -10,14 +10,22 @@ "encode.duration.HeaderAsyncClient.float64Seconds": "Encode.Duration.Header.float64Seconds", "encode.duration.HeaderAsyncClient.float64SecondsWithResponse": "Encode.Duration.Header.float64Seconds", "encode.duration.HeaderAsyncClient.floatMilliseconds": "Encode.Duration.Header.floatMilliseconds", + "encode.duration.HeaderAsyncClient.floatMillisecondsLargerUnit": "Encode.Duration.Header.floatMillisecondsLargerUnit", + "encode.duration.HeaderAsyncClient.floatMillisecondsLargerUnitWithResponse": "Encode.Duration.Header.floatMillisecondsLargerUnit", "encode.duration.HeaderAsyncClient.floatMillisecondsWithResponse": "Encode.Duration.Header.floatMilliseconds", "encode.duration.HeaderAsyncClient.floatSeconds": "Encode.Duration.Header.floatSeconds", + "encode.duration.HeaderAsyncClient.floatSecondsLargerUnit": "Encode.Duration.Header.floatSecondsLargerUnit", + "encode.duration.HeaderAsyncClient.floatSecondsLargerUnitWithResponse": "Encode.Duration.Header.floatSecondsLargerUnit", "encode.duration.HeaderAsyncClient.floatSecondsWithResponse": "Encode.Duration.Header.floatSeconds", "encode.duration.HeaderAsyncClient.int32Milliseconds": "Encode.Duration.Header.int32Milliseconds", "encode.duration.HeaderAsyncClient.int32MillisecondsArray": "Encode.Duration.Header.int32MillisecondsArray", "encode.duration.HeaderAsyncClient.int32MillisecondsArrayWithResponse": "Encode.Duration.Header.int32MillisecondsArray", + "encode.duration.HeaderAsyncClient.int32MillisecondsLargerUnit": "Encode.Duration.Header.int32MillisecondsLargerUnit", + "encode.duration.HeaderAsyncClient.int32MillisecondsLargerUnitWithResponse": "Encode.Duration.Header.int32MillisecondsLargerUnit", "encode.duration.HeaderAsyncClient.int32MillisecondsWithResponse": "Encode.Duration.Header.int32Milliseconds", "encode.duration.HeaderAsyncClient.int32Seconds": "Encode.Duration.Header.int32Seconds", + "encode.duration.HeaderAsyncClient.int32SecondsLargerUnit": "Encode.Duration.Header.int32SecondsLargerUnit", + "encode.duration.HeaderAsyncClient.int32SecondsLargerUnitWithResponse": "Encode.Duration.Header.int32SecondsLargerUnit", "encode.duration.HeaderAsyncClient.int32SecondsWithResponse": "Encode.Duration.Header.int32Seconds", "encode.duration.HeaderAsyncClient.iso8601": "Encode.Duration.Header.iso8601", "encode.duration.HeaderAsyncClient.iso8601Array": "Encode.Duration.Header.iso8601Array", @@ -31,14 +39,22 @@ "encode.duration.HeaderClient.float64Seconds": "Encode.Duration.Header.float64Seconds", "encode.duration.HeaderClient.float64SecondsWithResponse": "Encode.Duration.Header.float64Seconds", "encode.duration.HeaderClient.floatMilliseconds": "Encode.Duration.Header.floatMilliseconds", + "encode.duration.HeaderClient.floatMillisecondsLargerUnit": "Encode.Duration.Header.floatMillisecondsLargerUnit", + "encode.duration.HeaderClient.floatMillisecondsLargerUnitWithResponse": "Encode.Duration.Header.floatMillisecondsLargerUnit", "encode.duration.HeaderClient.floatMillisecondsWithResponse": "Encode.Duration.Header.floatMilliseconds", "encode.duration.HeaderClient.floatSeconds": "Encode.Duration.Header.floatSeconds", + "encode.duration.HeaderClient.floatSecondsLargerUnit": "Encode.Duration.Header.floatSecondsLargerUnit", + "encode.duration.HeaderClient.floatSecondsLargerUnitWithResponse": "Encode.Duration.Header.floatSecondsLargerUnit", "encode.duration.HeaderClient.floatSecondsWithResponse": "Encode.Duration.Header.floatSeconds", "encode.duration.HeaderClient.int32Milliseconds": "Encode.Duration.Header.int32Milliseconds", "encode.duration.HeaderClient.int32MillisecondsArray": "Encode.Duration.Header.int32MillisecondsArray", "encode.duration.HeaderClient.int32MillisecondsArrayWithResponse": "Encode.Duration.Header.int32MillisecondsArray", + "encode.duration.HeaderClient.int32MillisecondsLargerUnit": "Encode.Duration.Header.int32MillisecondsLargerUnit", + "encode.duration.HeaderClient.int32MillisecondsLargerUnitWithResponse": "Encode.Duration.Header.int32MillisecondsLargerUnit", "encode.duration.HeaderClient.int32MillisecondsWithResponse": "Encode.Duration.Header.int32Milliseconds", "encode.duration.HeaderClient.int32Seconds": "Encode.Duration.Header.int32Seconds", + "encode.duration.HeaderClient.int32SecondsLargerUnit": "Encode.Duration.Header.int32SecondsLargerUnit", + "encode.duration.HeaderClient.int32SecondsLargerUnitWithResponse": "Encode.Duration.Header.int32SecondsLargerUnit", "encode.duration.HeaderClient.int32SecondsWithResponse": "Encode.Duration.Header.int32Seconds", "encode.duration.HeaderClient.iso8601": "Encode.Duration.Header.iso8601", "encode.duration.HeaderClient.iso8601Array": "Encode.Duration.Header.iso8601Array", @@ -54,14 +70,22 @@ "encode.duration.PropertyAsyncClient.floatMilliseconds": "Encode.Duration.Property.floatMilliseconds", "encode.duration.PropertyAsyncClient.floatMillisecondsArray": "Encode.Duration.Property.floatMillisecondsArray", "encode.duration.PropertyAsyncClient.floatMillisecondsArrayWithResponse": "Encode.Duration.Property.floatMillisecondsArray", + "encode.duration.PropertyAsyncClient.floatMillisecondsLargerUnit": "Encode.Duration.Property.floatMillisecondsLargerUnit", + "encode.duration.PropertyAsyncClient.floatMillisecondsLargerUnitWithResponse": "Encode.Duration.Property.floatMillisecondsLargerUnit", "encode.duration.PropertyAsyncClient.floatMillisecondsWithResponse": "Encode.Duration.Property.floatMilliseconds", "encode.duration.PropertyAsyncClient.floatSeconds": "Encode.Duration.Property.floatSeconds", "encode.duration.PropertyAsyncClient.floatSecondsArray": "Encode.Duration.Property.floatSecondsArray", "encode.duration.PropertyAsyncClient.floatSecondsArrayWithResponse": "Encode.Duration.Property.floatSecondsArray", + "encode.duration.PropertyAsyncClient.floatSecondsLargerUnit": "Encode.Duration.Property.floatSecondsLargerUnit", + "encode.duration.PropertyAsyncClient.floatSecondsLargerUnitWithResponse": "Encode.Duration.Property.floatSecondsLargerUnit", "encode.duration.PropertyAsyncClient.floatSecondsWithResponse": "Encode.Duration.Property.floatSeconds", "encode.duration.PropertyAsyncClient.int32Milliseconds": "Encode.Duration.Property.int32Milliseconds", + "encode.duration.PropertyAsyncClient.int32MillisecondsLargerUnit": "Encode.Duration.Property.int32MillisecondsLargerUnit", + "encode.duration.PropertyAsyncClient.int32MillisecondsLargerUnitWithResponse": "Encode.Duration.Property.int32MillisecondsLargerUnit", "encode.duration.PropertyAsyncClient.int32MillisecondsWithResponse": "Encode.Duration.Property.int32Milliseconds", "encode.duration.PropertyAsyncClient.int32Seconds": "Encode.Duration.Property.int32Seconds", + "encode.duration.PropertyAsyncClient.int32SecondsLargerUnit": "Encode.Duration.Property.int32SecondsLargerUnit", + "encode.duration.PropertyAsyncClient.int32SecondsLargerUnitWithResponse": "Encode.Duration.Property.int32SecondsLargerUnit", "encode.duration.PropertyAsyncClient.int32SecondsWithResponse": "Encode.Duration.Property.int32Seconds", "encode.duration.PropertyAsyncClient.iso8601": "Encode.Duration.Property.iso8601", "encode.duration.PropertyAsyncClient.iso8601WithResponse": "Encode.Duration.Property.iso8601", @@ -75,14 +99,22 @@ "encode.duration.PropertyClient.floatMilliseconds": "Encode.Duration.Property.floatMilliseconds", "encode.duration.PropertyClient.floatMillisecondsArray": "Encode.Duration.Property.floatMillisecondsArray", "encode.duration.PropertyClient.floatMillisecondsArrayWithResponse": "Encode.Duration.Property.floatMillisecondsArray", + "encode.duration.PropertyClient.floatMillisecondsLargerUnit": "Encode.Duration.Property.floatMillisecondsLargerUnit", + "encode.duration.PropertyClient.floatMillisecondsLargerUnitWithResponse": "Encode.Duration.Property.floatMillisecondsLargerUnit", "encode.duration.PropertyClient.floatMillisecondsWithResponse": "Encode.Duration.Property.floatMilliseconds", "encode.duration.PropertyClient.floatSeconds": "Encode.Duration.Property.floatSeconds", "encode.duration.PropertyClient.floatSecondsArray": "Encode.Duration.Property.floatSecondsArray", "encode.duration.PropertyClient.floatSecondsArrayWithResponse": "Encode.Duration.Property.floatSecondsArray", + "encode.duration.PropertyClient.floatSecondsLargerUnit": "Encode.Duration.Property.floatSecondsLargerUnit", + "encode.duration.PropertyClient.floatSecondsLargerUnitWithResponse": "Encode.Duration.Property.floatSecondsLargerUnit", "encode.duration.PropertyClient.floatSecondsWithResponse": "Encode.Duration.Property.floatSeconds", "encode.duration.PropertyClient.int32Milliseconds": "Encode.Duration.Property.int32Milliseconds", + "encode.duration.PropertyClient.int32MillisecondsLargerUnit": "Encode.Duration.Property.int32MillisecondsLargerUnit", + "encode.duration.PropertyClient.int32MillisecondsLargerUnitWithResponse": "Encode.Duration.Property.int32MillisecondsLargerUnit", "encode.duration.PropertyClient.int32MillisecondsWithResponse": "Encode.Duration.Property.int32Milliseconds", "encode.duration.PropertyClient.int32Seconds": "Encode.Duration.Property.int32Seconds", + "encode.duration.PropertyClient.int32SecondsLargerUnit": "Encode.Duration.Property.int32SecondsLargerUnit", + "encode.duration.PropertyClient.int32SecondsLargerUnitWithResponse": "Encode.Duration.Property.int32SecondsLargerUnit", "encode.duration.PropertyClient.int32SecondsWithResponse": "Encode.Duration.Property.int32Seconds", "encode.duration.PropertyClient.iso8601": "Encode.Duration.Property.iso8601", "encode.duration.PropertyClient.iso8601WithResponse": "Encode.Duration.Property.iso8601", @@ -94,16 +126,24 @@ "encode.duration.QueryAsyncClient.float64Seconds": "Encode.Duration.Query.float64Seconds", "encode.duration.QueryAsyncClient.float64SecondsWithResponse": "Encode.Duration.Query.float64Seconds", "encode.duration.QueryAsyncClient.floatMilliseconds": "Encode.Duration.Query.floatMilliseconds", + "encode.duration.QueryAsyncClient.floatMillisecondsLargerUnit": "Encode.Duration.Query.floatMillisecondsLargerUnit", + "encode.duration.QueryAsyncClient.floatMillisecondsLargerUnitWithResponse": "Encode.Duration.Query.floatMillisecondsLargerUnit", "encode.duration.QueryAsyncClient.floatMillisecondsWithResponse": "Encode.Duration.Query.floatMilliseconds", "encode.duration.QueryAsyncClient.floatSeconds": "Encode.Duration.Query.floatSeconds", + "encode.duration.QueryAsyncClient.floatSecondsLargerUnit": "Encode.Duration.Query.floatSecondsLargerUnit", + "encode.duration.QueryAsyncClient.floatSecondsLargerUnitWithResponse": "Encode.Duration.Query.floatSecondsLargerUnit", "encode.duration.QueryAsyncClient.floatSecondsWithResponse": "Encode.Duration.Query.floatSeconds", "encode.duration.QueryAsyncClient.int32Milliseconds": "Encode.Duration.Query.int32Milliseconds", "encode.duration.QueryAsyncClient.int32MillisecondsArray": "Encode.Duration.Query.int32MillisecondsArray", "encode.duration.QueryAsyncClient.int32MillisecondsArrayWithResponse": "Encode.Duration.Query.int32MillisecondsArray", + "encode.duration.QueryAsyncClient.int32MillisecondsLargerUnit": "Encode.Duration.Query.int32MillisecondsLargerUnit", + "encode.duration.QueryAsyncClient.int32MillisecondsLargerUnitWithResponse": "Encode.Duration.Query.int32MillisecondsLargerUnit", "encode.duration.QueryAsyncClient.int32MillisecondsWithResponse": "Encode.Duration.Query.int32Milliseconds", "encode.duration.QueryAsyncClient.int32Seconds": "Encode.Duration.Query.int32Seconds", "encode.duration.QueryAsyncClient.int32SecondsArray": "Encode.Duration.Query.int32SecondsArray", "encode.duration.QueryAsyncClient.int32SecondsArrayWithResponse": "Encode.Duration.Query.int32SecondsArray", + "encode.duration.QueryAsyncClient.int32SecondsLargerUnit": "Encode.Duration.Query.int32SecondsLargerUnit", + "encode.duration.QueryAsyncClient.int32SecondsLargerUnitWithResponse": "Encode.Duration.Query.int32SecondsLargerUnit", "encode.duration.QueryAsyncClient.int32SecondsWithResponse": "Encode.Duration.Query.int32Seconds", "encode.duration.QueryAsyncClient.iso8601": "Encode.Duration.Query.iso8601", "encode.duration.QueryAsyncClient.iso8601WithResponse": "Encode.Duration.Query.iso8601", @@ -115,16 +155,24 @@ "encode.duration.QueryClient.float64Seconds": "Encode.Duration.Query.float64Seconds", "encode.duration.QueryClient.float64SecondsWithResponse": "Encode.Duration.Query.float64Seconds", "encode.duration.QueryClient.floatMilliseconds": "Encode.Duration.Query.floatMilliseconds", + "encode.duration.QueryClient.floatMillisecondsLargerUnit": "Encode.Duration.Query.floatMillisecondsLargerUnit", + "encode.duration.QueryClient.floatMillisecondsLargerUnitWithResponse": "Encode.Duration.Query.floatMillisecondsLargerUnit", "encode.duration.QueryClient.floatMillisecondsWithResponse": "Encode.Duration.Query.floatMilliseconds", "encode.duration.QueryClient.floatSeconds": "Encode.Duration.Query.floatSeconds", + "encode.duration.QueryClient.floatSecondsLargerUnit": "Encode.Duration.Query.floatSecondsLargerUnit", + "encode.duration.QueryClient.floatSecondsLargerUnitWithResponse": "Encode.Duration.Query.floatSecondsLargerUnit", "encode.duration.QueryClient.floatSecondsWithResponse": "Encode.Duration.Query.floatSeconds", "encode.duration.QueryClient.int32Milliseconds": "Encode.Duration.Query.int32Milliseconds", "encode.duration.QueryClient.int32MillisecondsArray": "Encode.Duration.Query.int32MillisecondsArray", "encode.duration.QueryClient.int32MillisecondsArrayWithResponse": "Encode.Duration.Query.int32MillisecondsArray", + "encode.duration.QueryClient.int32MillisecondsLargerUnit": "Encode.Duration.Query.int32MillisecondsLargerUnit", + "encode.duration.QueryClient.int32MillisecondsLargerUnitWithResponse": "Encode.Duration.Query.int32MillisecondsLargerUnit", "encode.duration.QueryClient.int32MillisecondsWithResponse": "Encode.Duration.Query.int32Milliseconds", "encode.duration.QueryClient.int32Seconds": "Encode.Duration.Query.int32Seconds", "encode.duration.QueryClient.int32SecondsArray": "Encode.Duration.Query.int32SecondsArray", "encode.duration.QueryClient.int32SecondsArrayWithResponse": "Encode.Duration.Query.int32SecondsArray", + "encode.duration.QueryClient.int32SecondsLargerUnit": "Encode.Duration.Query.int32SecondsLargerUnit", + "encode.duration.QueryClient.int32SecondsLargerUnitWithResponse": "Encode.Duration.Query.int32SecondsLargerUnit", "encode.duration.QueryClient.int32SecondsWithResponse": "Encode.Duration.Query.int32Seconds", "encode.duration.QueryClient.iso8601": "Encode.Duration.Query.iso8601", "encode.duration.QueryClient.iso8601WithResponse": "Encode.Duration.Query.iso8601", @@ -133,10 +181,14 @@ "encode.duration.property.models.Float64SecondsDurationProperty": "Encode.Duration.Property.Float64SecondsDurationProperty", "encode.duration.property.models.FloatMillisecondsDurationArrayProperty": "Encode.Duration.Property.FloatMillisecondsDurationArrayProperty", "encode.duration.property.models.FloatMillisecondsDurationProperty": "Encode.Duration.Property.FloatMillisecondsDurationProperty", + "encode.duration.property.models.FloatMillisecondsLargerUnitDurationProperty": "Encode.Duration.Property.FloatMillisecondsLargerUnitDurationProperty", "encode.duration.property.models.FloatSecondsDurationArrayProperty": "Encode.Duration.Property.FloatSecondsDurationArrayProperty", "encode.duration.property.models.FloatSecondsDurationProperty": "Encode.Duration.Property.FloatSecondsDurationProperty", + "encode.duration.property.models.FloatSecondsLargerUnitDurationProperty": "Encode.Duration.Property.FloatSecondsLargerUnitDurationProperty", "encode.duration.property.models.ISO8601DurationProperty": "Encode.Duration.Property.ISO8601DurationProperty", "encode.duration.property.models.Int32MillisecondsDurationProperty": "Encode.Duration.Property.Int32MillisecondsDurationProperty", - "encode.duration.property.models.Int32SecondsDurationProperty": "Encode.Duration.Property.Int32SecondsDurationProperty" + "encode.duration.property.models.Int32MillisecondsLargerUnitDurationProperty": "Encode.Duration.Property.Int32MillisecondsLargerUnitDurationProperty", + "encode.duration.property.models.Int32SecondsDurationProperty": "Encode.Duration.Property.Int32SecondsDurationProperty", + "encode.duration.property.models.Int32SecondsLargerUnitDurationProperty": "Encode.Duration.Property.Int32SecondsLargerUnitDurationProperty" } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_metadata.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_metadata.json index a44319fa6cb..14ef5931425 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_metadata.json +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-duration_metadata.json @@ -1 +1 @@ -{"flavor":"Azure","crossLanguageDefinitions":{"encode.duration.DurationClientBuilder":"Encode.Duration","encode.duration.HeaderAsyncClient":"Encode.Duration.Header","encode.duration.HeaderAsyncClient.defaultMethod":"Encode.Duration.Header.default","encode.duration.HeaderAsyncClient.defaultMethodWithResponse":"Encode.Duration.Header.default","encode.duration.HeaderAsyncClient.float64Milliseconds":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderAsyncClient.float64MillisecondsWithResponse":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderAsyncClient.float64Seconds":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderAsyncClient.float64SecondsWithResponse":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderAsyncClient.floatMilliseconds":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderAsyncClient.floatMillisecondsWithResponse":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderAsyncClient.floatSeconds":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderAsyncClient.floatSecondsWithResponse":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderAsyncClient.int32Milliseconds":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderAsyncClient.int32MillisecondsArray":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderAsyncClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderAsyncClient.int32MillisecondsWithResponse":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderAsyncClient.int32Seconds":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderAsyncClient.int32SecondsWithResponse":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderAsyncClient.iso8601":"Encode.Duration.Header.iso8601","encode.duration.HeaderAsyncClient.iso8601Array":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderAsyncClient.iso8601ArrayWithResponse":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderAsyncClient.iso8601WithResponse":"Encode.Duration.Header.iso8601","encode.duration.HeaderClient":"Encode.Duration.Header","encode.duration.HeaderClient.defaultMethod":"Encode.Duration.Header.default","encode.duration.HeaderClient.defaultMethodWithResponse":"Encode.Duration.Header.default","encode.duration.HeaderClient.float64Milliseconds":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderClient.float64MillisecondsWithResponse":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderClient.float64Seconds":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderClient.float64SecondsWithResponse":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderClient.floatMilliseconds":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderClient.floatMillisecondsWithResponse":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderClient.floatSeconds":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderClient.floatSecondsWithResponse":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderClient.int32Milliseconds":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderClient.int32MillisecondsArray":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderClient.int32MillisecondsWithResponse":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderClient.int32Seconds":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderClient.int32SecondsWithResponse":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderClient.iso8601":"Encode.Duration.Header.iso8601","encode.duration.HeaderClient.iso8601Array":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderClient.iso8601ArrayWithResponse":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderClient.iso8601WithResponse":"Encode.Duration.Header.iso8601","encode.duration.PropertyAsyncClient":"Encode.Duration.Property","encode.duration.PropertyAsyncClient.defaultMethod":"Encode.Duration.Property.default","encode.duration.PropertyAsyncClient.defaultMethodWithResponse":"Encode.Duration.Property.default","encode.duration.PropertyAsyncClient.float64Milliseconds":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyAsyncClient.float64MillisecondsWithResponse":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyAsyncClient.float64Seconds":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyAsyncClient.float64SecondsWithResponse":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyAsyncClient.floatMilliseconds":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyAsyncClient.floatMillisecondsArray":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyAsyncClient.floatMillisecondsArrayWithResponse":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyAsyncClient.floatMillisecondsWithResponse":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyAsyncClient.floatSeconds":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyAsyncClient.floatSecondsArray":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyAsyncClient.floatSecondsArrayWithResponse":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyAsyncClient.floatSecondsWithResponse":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyAsyncClient.int32Milliseconds":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyAsyncClient.int32MillisecondsWithResponse":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyAsyncClient.int32Seconds":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyAsyncClient.int32SecondsWithResponse":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyAsyncClient.iso8601":"Encode.Duration.Property.iso8601","encode.duration.PropertyAsyncClient.iso8601WithResponse":"Encode.Duration.Property.iso8601","encode.duration.PropertyClient":"Encode.Duration.Property","encode.duration.PropertyClient.defaultMethod":"Encode.Duration.Property.default","encode.duration.PropertyClient.defaultMethodWithResponse":"Encode.Duration.Property.default","encode.duration.PropertyClient.float64Milliseconds":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyClient.float64MillisecondsWithResponse":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyClient.float64Seconds":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyClient.float64SecondsWithResponse":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyClient.floatMilliseconds":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyClient.floatMillisecondsArray":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyClient.floatMillisecondsArrayWithResponse":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyClient.floatMillisecondsWithResponse":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyClient.floatSeconds":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyClient.floatSecondsArray":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyClient.floatSecondsArrayWithResponse":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyClient.floatSecondsWithResponse":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyClient.int32Milliseconds":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyClient.int32MillisecondsWithResponse":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyClient.int32Seconds":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyClient.int32SecondsWithResponse":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyClient.iso8601":"Encode.Duration.Property.iso8601","encode.duration.PropertyClient.iso8601WithResponse":"Encode.Duration.Property.iso8601","encode.duration.QueryAsyncClient":"Encode.Duration.Query","encode.duration.QueryAsyncClient.defaultMethod":"Encode.Duration.Query.default","encode.duration.QueryAsyncClient.defaultMethodWithResponse":"Encode.Duration.Query.default","encode.duration.QueryAsyncClient.float64Milliseconds":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryAsyncClient.float64MillisecondsWithResponse":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryAsyncClient.float64Seconds":"Encode.Duration.Query.float64Seconds","encode.duration.QueryAsyncClient.float64SecondsWithResponse":"Encode.Duration.Query.float64Seconds","encode.duration.QueryAsyncClient.floatMilliseconds":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryAsyncClient.floatMillisecondsWithResponse":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryAsyncClient.floatSeconds":"Encode.Duration.Query.floatSeconds","encode.duration.QueryAsyncClient.floatSecondsWithResponse":"Encode.Duration.Query.floatSeconds","encode.duration.QueryAsyncClient.int32Milliseconds":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryAsyncClient.int32MillisecondsArray":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryAsyncClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryAsyncClient.int32MillisecondsWithResponse":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryAsyncClient.int32Seconds":"Encode.Duration.Query.int32Seconds","encode.duration.QueryAsyncClient.int32SecondsArray":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryAsyncClient.int32SecondsArrayWithResponse":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryAsyncClient.int32SecondsWithResponse":"Encode.Duration.Query.int32Seconds","encode.duration.QueryAsyncClient.iso8601":"Encode.Duration.Query.iso8601","encode.duration.QueryAsyncClient.iso8601WithResponse":"Encode.Duration.Query.iso8601","encode.duration.QueryClient":"Encode.Duration.Query","encode.duration.QueryClient.defaultMethod":"Encode.Duration.Query.default","encode.duration.QueryClient.defaultMethodWithResponse":"Encode.Duration.Query.default","encode.duration.QueryClient.float64Milliseconds":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryClient.float64MillisecondsWithResponse":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryClient.float64Seconds":"Encode.Duration.Query.float64Seconds","encode.duration.QueryClient.float64SecondsWithResponse":"Encode.Duration.Query.float64Seconds","encode.duration.QueryClient.floatMilliseconds":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryClient.floatMillisecondsWithResponse":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryClient.floatSeconds":"Encode.Duration.Query.floatSeconds","encode.duration.QueryClient.floatSecondsWithResponse":"Encode.Duration.Query.floatSeconds","encode.duration.QueryClient.int32Milliseconds":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryClient.int32MillisecondsArray":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryClient.int32MillisecondsWithResponse":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryClient.int32Seconds":"Encode.Duration.Query.int32Seconds","encode.duration.QueryClient.int32SecondsArray":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryClient.int32SecondsArrayWithResponse":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryClient.int32SecondsWithResponse":"Encode.Duration.Query.int32Seconds","encode.duration.QueryClient.iso8601":"Encode.Duration.Query.iso8601","encode.duration.QueryClient.iso8601WithResponse":"Encode.Duration.Query.iso8601","encode.duration.property.models.DefaultDurationProperty":"Encode.Duration.Property.DefaultDurationProperty","encode.duration.property.models.Float64MillisecondsDurationProperty":"Encode.Duration.Property.Float64MillisecondsDurationProperty","encode.duration.property.models.Float64SecondsDurationProperty":"Encode.Duration.Property.Float64SecondsDurationProperty","encode.duration.property.models.FloatMillisecondsDurationArrayProperty":"Encode.Duration.Property.FloatMillisecondsDurationArrayProperty","encode.duration.property.models.FloatMillisecondsDurationProperty":"Encode.Duration.Property.FloatMillisecondsDurationProperty","encode.duration.property.models.FloatSecondsDurationArrayProperty":"Encode.Duration.Property.FloatSecondsDurationArrayProperty","encode.duration.property.models.FloatSecondsDurationProperty":"Encode.Duration.Property.FloatSecondsDurationProperty","encode.duration.property.models.ISO8601DurationProperty":"Encode.Duration.Property.ISO8601DurationProperty","encode.duration.property.models.Int32MillisecondsDurationProperty":"Encode.Duration.Property.Int32MillisecondsDurationProperty","encode.duration.property.models.Int32SecondsDurationProperty":"Encode.Duration.Property.Int32SecondsDurationProperty"},"generatedFiles":["src/main/java/encode/duration/DurationClientBuilder.java","src/main/java/encode/duration/HeaderAsyncClient.java","src/main/java/encode/duration/HeaderClient.java","src/main/java/encode/duration/PropertyAsyncClient.java","src/main/java/encode/duration/PropertyClient.java","src/main/java/encode/duration/QueryAsyncClient.java","src/main/java/encode/duration/QueryClient.java","src/main/java/encode/duration/implementation/DurationClientImpl.java","src/main/java/encode/duration/implementation/HeadersImpl.java","src/main/java/encode/duration/implementation/PropertiesImpl.java","src/main/java/encode/duration/implementation/QueriesImpl.java","src/main/java/encode/duration/implementation/package-info.java","src/main/java/encode/duration/package-info.java","src/main/java/encode/duration/property/models/DefaultDurationProperty.java","src/main/java/encode/duration/property/models/Float64MillisecondsDurationProperty.java","src/main/java/encode/duration/property/models/Float64SecondsDurationProperty.java","src/main/java/encode/duration/property/models/FloatMillisecondsDurationArrayProperty.java","src/main/java/encode/duration/property/models/FloatMillisecondsDurationProperty.java","src/main/java/encode/duration/property/models/FloatSecondsDurationArrayProperty.java","src/main/java/encode/duration/property/models/FloatSecondsDurationProperty.java","src/main/java/encode/duration/property/models/ISO8601DurationProperty.java","src/main/java/encode/duration/property/models/Int32MillisecondsDurationProperty.java","src/main/java/encode/duration/property/models/Int32SecondsDurationProperty.java","src/main/java/encode/duration/property/models/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"Azure","crossLanguageDefinitions":{"encode.duration.DurationClientBuilder":"Encode.Duration","encode.duration.HeaderAsyncClient":"Encode.Duration.Header","encode.duration.HeaderAsyncClient.defaultMethod":"Encode.Duration.Header.default","encode.duration.HeaderAsyncClient.defaultMethodWithResponse":"Encode.Duration.Header.default","encode.duration.HeaderAsyncClient.float64Milliseconds":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderAsyncClient.float64MillisecondsWithResponse":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderAsyncClient.float64Seconds":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderAsyncClient.float64SecondsWithResponse":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderAsyncClient.floatMilliseconds":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderAsyncClient.floatMillisecondsLargerUnit":"Encode.Duration.Header.floatMillisecondsLargerUnit","encode.duration.HeaderAsyncClient.floatMillisecondsLargerUnitWithResponse":"Encode.Duration.Header.floatMillisecondsLargerUnit","encode.duration.HeaderAsyncClient.floatMillisecondsWithResponse":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderAsyncClient.floatSeconds":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderAsyncClient.floatSecondsLargerUnit":"Encode.Duration.Header.floatSecondsLargerUnit","encode.duration.HeaderAsyncClient.floatSecondsLargerUnitWithResponse":"Encode.Duration.Header.floatSecondsLargerUnit","encode.duration.HeaderAsyncClient.floatSecondsWithResponse":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderAsyncClient.int32Milliseconds":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderAsyncClient.int32MillisecondsArray":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderAsyncClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderAsyncClient.int32MillisecondsLargerUnit":"Encode.Duration.Header.int32MillisecondsLargerUnit","encode.duration.HeaderAsyncClient.int32MillisecondsLargerUnitWithResponse":"Encode.Duration.Header.int32MillisecondsLargerUnit","encode.duration.HeaderAsyncClient.int32MillisecondsWithResponse":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderAsyncClient.int32Seconds":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderAsyncClient.int32SecondsLargerUnit":"Encode.Duration.Header.int32SecondsLargerUnit","encode.duration.HeaderAsyncClient.int32SecondsLargerUnitWithResponse":"Encode.Duration.Header.int32SecondsLargerUnit","encode.duration.HeaderAsyncClient.int32SecondsWithResponse":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderAsyncClient.iso8601":"Encode.Duration.Header.iso8601","encode.duration.HeaderAsyncClient.iso8601Array":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderAsyncClient.iso8601ArrayWithResponse":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderAsyncClient.iso8601WithResponse":"Encode.Duration.Header.iso8601","encode.duration.HeaderClient":"Encode.Duration.Header","encode.duration.HeaderClient.defaultMethod":"Encode.Duration.Header.default","encode.duration.HeaderClient.defaultMethodWithResponse":"Encode.Duration.Header.default","encode.duration.HeaderClient.float64Milliseconds":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderClient.float64MillisecondsWithResponse":"Encode.Duration.Header.float64Milliseconds","encode.duration.HeaderClient.float64Seconds":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderClient.float64SecondsWithResponse":"Encode.Duration.Header.float64Seconds","encode.duration.HeaderClient.floatMilliseconds":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderClient.floatMillisecondsLargerUnit":"Encode.Duration.Header.floatMillisecondsLargerUnit","encode.duration.HeaderClient.floatMillisecondsLargerUnitWithResponse":"Encode.Duration.Header.floatMillisecondsLargerUnit","encode.duration.HeaderClient.floatMillisecondsWithResponse":"Encode.Duration.Header.floatMilliseconds","encode.duration.HeaderClient.floatSeconds":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderClient.floatSecondsLargerUnit":"Encode.Duration.Header.floatSecondsLargerUnit","encode.duration.HeaderClient.floatSecondsLargerUnitWithResponse":"Encode.Duration.Header.floatSecondsLargerUnit","encode.duration.HeaderClient.floatSecondsWithResponse":"Encode.Duration.Header.floatSeconds","encode.duration.HeaderClient.int32Milliseconds":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderClient.int32MillisecondsArray":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Header.int32MillisecondsArray","encode.duration.HeaderClient.int32MillisecondsLargerUnit":"Encode.Duration.Header.int32MillisecondsLargerUnit","encode.duration.HeaderClient.int32MillisecondsLargerUnitWithResponse":"Encode.Duration.Header.int32MillisecondsLargerUnit","encode.duration.HeaderClient.int32MillisecondsWithResponse":"Encode.Duration.Header.int32Milliseconds","encode.duration.HeaderClient.int32Seconds":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderClient.int32SecondsLargerUnit":"Encode.Duration.Header.int32SecondsLargerUnit","encode.duration.HeaderClient.int32SecondsLargerUnitWithResponse":"Encode.Duration.Header.int32SecondsLargerUnit","encode.duration.HeaderClient.int32SecondsWithResponse":"Encode.Duration.Header.int32Seconds","encode.duration.HeaderClient.iso8601":"Encode.Duration.Header.iso8601","encode.duration.HeaderClient.iso8601Array":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderClient.iso8601ArrayWithResponse":"Encode.Duration.Header.iso8601Array","encode.duration.HeaderClient.iso8601WithResponse":"Encode.Duration.Header.iso8601","encode.duration.PropertyAsyncClient":"Encode.Duration.Property","encode.duration.PropertyAsyncClient.defaultMethod":"Encode.Duration.Property.default","encode.duration.PropertyAsyncClient.defaultMethodWithResponse":"Encode.Duration.Property.default","encode.duration.PropertyAsyncClient.float64Milliseconds":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyAsyncClient.float64MillisecondsWithResponse":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyAsyncClient.float64Seconds":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyAsyncClient.float64SecondsWithResponse":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyAsyncClient.floatMilliseconds":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyAsyncClient.floatMillisecondsArray":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyAsyncClient.floatMillisecondsArrayWithResponse":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyAsyncClient.floatMillisecondsLargerUnit":"Encode.Duration.Property.floatMillisecondsLargerUnit","encode.duration.PropertyAsyncClient.floatMillisecondsLargerUnitWithResponse":"Encode.Duration.Property.floatMillisecondsLargerUnit","encode.duration.PropertyAsyncClient.floatMillisecondsWithResponse":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyAsyncClient.floatSeconds":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyAsyncClient.floatSecondsArray":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyAsyncClient.floatSecondsArrayWithResponse":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyAsyncClient.floatSecondsLargerUnit":"Encode.Duration.Property.floatSecondsLargerUnit","encode.duration.PropertyAsyncClient.floatSecondsLargerUnitWithResponse":"Encode.Duration.Property.floatSecondsLargerUnit","encode.duration.PropertyAsyncClient.floatSecondsWithResponse":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyAsyncClient.int32Milliseconds":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyAsyncClient.int32MillisecondsLargerUnit":"Encode.Duration.Property.int32MillisecondsLargerUnit","encode.duration.PropertyAsyncClient.int32MillisecondsLargerUnitWithResponse":"Encode.Duration.Property.int32MillisecondsLargerUnit","encode.duration.PropertyAsyncClient.int32MillisecondsWithResponse":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyAsyncClient.int32Seconds":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyAsyncClient.int32SecondsLargerUnit":"Encode.Duration.Property.int32SecondsLargerUnit","encode.duration.PropertyAsyncClient.int32SecondsLargerUnitWithResponse":"Encode.Duration.Property.int32SecondsLargerUnit","encode.duration.PropertyAsyncClient.int32SecondsWithResponse":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyAsyncClient.iso8601":"Encode.Duration.Property.iso8601","encode.duration.PropertyAsyncClient.iso8601WithResponse":"Encode.Duration.Property.iso8601","encode.duration.PropertyClient":"Encode.Duration.Property","encode.duration.PropertyClient.defaultMethod":"Encode.Duration.Property.default","encode.duration.PropertyClient.defaultMethodWithResponse":"Encode.Duration.Property.default","encode.duration.PropertyClient.float64Milliseconds":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyClient.float64MillisecondsWithResponse":"Encode.Duration.Property.float64Milliseconds","encode.duration.PropertyClient.float64Seconds":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyClient.float64SecondsWithResponse":"Encode.Duration.Property.float64Seconds","encode.duration.PropertyClient.floatMilliseconds":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyClient.floatMillisecondsArray":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyClient.floatMillisecondsArrayWithResponse":"Encode.Duration.Property.floatMillisecondsArray","encode.duration.PropertyClient.floatMillisecondsLargerUnit":"Encode.Duration.Property.floatMillisecondsLargerUnit","encode.duration.PropertyClient.floatMillisecondsLargerUnitWithResponse":"Encode.Duration.Property.floatMillisecondsLargerUnit","encode.duration.PropertyClient.floatMillisecondsWithResponse":"Encode.Duration.Property.floatMilliseconds","encode.duration.PropertyClient.floatSeconds":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyClient.floatSecondsArray":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyClient.floatSecondsArrayWithResponse":"Encode.Duration.Property.floatSecondsArray","encode.duration.PropertyClient.floatSecondsLargerUnit":"Encode.Duration.Property.floatSecondsLargerUnit","encode.duration.PropertyClient.floatSecondsLargerUnitWithResponse":"Encode.Duration.Property.floatSecondsLargerUnit","encode.duration.PropertyClient.floatSecondsWithResponse":"Encode.Duration.Property.floatSeconds","encode.duration.PropertyClient.int32Milliseconds":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyClient.int32MillisecondsLargerUnit":"Encode.Duration.Property.int32MillisecondsLargerUnit","encode.duration.PropertyClient.int32MillisecondsLargerUnitWithResponse":"Encode.Duration.Property.int32MillisecondsLargerUnit","encode.duration.PropertyClient.int32MillisecondsWithResponse":"Encode.Duration.Property.int32Milliseconds","encode.duration.PropertyClient.int32Seconds":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyClient.int32SecondsLargerUnit":"Encode.Duration.Property.int32SecondsLargerUnit","encode.duration.PropertyClient.int32SecondsLargerUnitWithResponse":"Encode.Duration.Property.int32SecondsLargerUnit","encode.duration.PropertyClient.int32SecondsWithResponse":"Encode.Duration.Property.int32Seconds","encode.duration.PropertyClient.iso8601":"Encode.Duration.Property.iso8601","encode.duration.PropertyClient.iso8601WithResponse":"Encode.Duration.Property.iso8601","encode.duration.QueryAsyncClient":"Encode.Duration.Query","encode.duration.QueryAsyncClient.defaultMethod":"Encode.Duration.Query.default","encode.duration.QueryAsyncClient.defaultMethodWithResponse":"Encode.Duration.Query.default","encode.duration.QueryAsyncClient.float64Milliseconds":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryAsyncClient.float64MillisecondsWithResponse":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryAsyncClient.float64Seconds":"Encode.Duration.Query.float64Seconds","encode.duration.QueryAsyncClient.float64SecondsWithResponse":"Encode.Duration.Query.float64Seconds","encode.duration.QueryAsyncClient.floatMilliseconds":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryAsyncClient.floatMillisecondsLargerUnit":"Encode.Duration.Query.floatMillisecondsLargerUnit","encode.duration.QueryAsyncClient.floatMillisecondsLargerUnitWithResponse":"Encode.Duration.Query.floatMillisecondsLargerUnit","encode.duration.QueryAsyncClient.floatMillisecondsWithResponse":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryAsyncClient.floatSeconds":"Encode.Duration.Query.floatSeconds","encode.duration.QueryAsyncClient.floatSecondsLargerUnit":"Encode.Duration.Query.floatSecondsLargerUnit","encode.duration.QueryAsyncClient.floatSecondsLargerUnitWithResponse":"Encode.Duration.Query.floatSecondsLargerUnit","encode.duration.QueryAsyncClient.floatSecondsWithResponse":"Encode.Duration.Query.floatSeconds","encode.duration.QueryAsyncClient.int32Milliseconds":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryAsyncClient.int32MillisecondsArray":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryAsyncClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryAsyncClient.int32MillisecondsLargerUnit":"Encode.Duration.Query.int32MillisecondsLargerUnit","encode.duration.QueryAsyncClient.int32MillisecondsLargerUnitWithResponse":"Encode.Duration.Query.int32MillisecondsLargerUnit","encode.duration.QueryAsyncClient.int32MillisecondsWithResponse":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryAsyncClient.int32Seconds":"Encode.Duration.Query.int32Seconds","encode.duration.QueryAsyncClient.int32SecondsArray":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryAsyncClient.int32SecondsArrayWithResponse":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryAsyncClient.int32SecondsLargerUnit":"Encode.Duration.Query.int32SecondsLargerUnit","encode.duration.QueryAsyncClient.int32SecondsLargerUnitWithResponse":"Encode.Duration.Query.int32SecondsLargerUnit","encode.duration.QueryAsyncClient.int32SecondsWithResponse":"Encode.Duration.Query.int32Seconds","encode.duration.QueryAsyncClient.iso8601":"Encode.Duration.Query.iso8601","encode.duration.QueryAsyncClient.iso8601WithResponse":"Encode.Duration.Query.iso8601","encode.duration.QueryClient":"Encode.Duration.Query","encode.duration.QueryClient.defaultMethod":"Encode.Duration.Query.default","encode.duration.QueryClient.defaultMethodWithResponse":"Encode.Duration.Query.default","encode.duration.QueryClient.float64Milliseconds":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryClient.float64MillisecondsWithResponse":"Encode.Duration.Query.float64Milliseconds","encode.duration.QueryClient.float64Seconds":"Encode.Duration.Query.float64Seconds","encode.duration.QueryClient.float64SecondsWithResponse":"Encode.Duration.Query.float64Seconds","encode.duration.QueryClient.floatMilliseconds":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryClient.floatMillisecondsLargerUnit":"Encode.Duration.Query.floatMillisecondsLargerUnit","encode.duration.QueryClient.floatMillisecondsLargerUnitWithResponse":"Encode.Duration.Query.floatMillisecondsLargerUnit","encode.duration.QueryClient.floatMillisecondsWithResponse":"Encode.Duration.Query.floatMilliseconds","encode.duration.QueryClient.floatSeconds":"Encode.Duration.Query.floatSeconds","encode.duration.QueryClient.floatSecondsLargerUnit":"Encode.Duration.Query.floatSecondsLargerUnit","encode.duration.QueryClient.floatSecondsLargerUnitWithResponse":"Encode.Duration.Query.floatSecondsLargerUnit","encode.duration.QueryClient.floatSecondsWithResponse":"Encode.Duration.Query.floatSeconds","encode.duration.QueryClient.int32Milliseconds":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryClient.int32MillisecondsArray":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryClient.int32MillisecondsArrayWithResponse":"Encode.Duration.Query.int32MillisecondsArray","encode.duration.QueryClient.int32MillisecondsLargerUnit":"Encode.Duration.Query.int32MillisecondsLargerUnit","encode.duration.QueryClient.int32MillisecondsLargerUnitWithResponse":"Encode.Duration.Query.int32MillisecondsLargerUnit","encode.duration.QueryClient.int32MillisecondsWithResponse":"Encode.Duration.Query.int32Milliseconds","encode.duration.QueryClient.int32Seconds":"Encode.Duration.Query.int32Seconds","encode.duration.QueryClient.int32SecondsArray":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryClient.int32SecondsArrayWithResponse":"Encode.Duration.Query.int32SecondsArray","encode.duration.QueryClient.int32SecondsLargerUnit":"Encode.Duration.Query.int32SecondsLargerUnit","encode.duration.QueryClient.int32SecondsLargerUnitWithResponse":"Encode.Duration.Query.int32SecondsLargerUnit","encode.duration.QueryClient.int32SecondsWithResponse":"Encode.Duration.Query.int32Seconds","encode.duration.QueryClient.iso8601":"Encode.Duration.Query.iso8601","encode.duration.QueryClient.iso8601WithResponse":"Encode.Duration.Query.iso8601","encode.duration.property.models.DefaultDurationProperty":"Encode.Duration.Property.DefaultDurationProperty","encode.duration.property.models.Float64MillisecondsDurationProperty":"Encode.Duration.Property.Float64MillisecondsDurationProperty","encode.duration.property.models.Float64SecondsDurationProperty":"Encode.Duration.Property.Float64SecondsDurationProperty","encode.duration.property.models.FloatMillisecondsDurationArrayProperty":"Encode.Duration.Property.FloatMillisecondsDurationArrayProperty","encode.duration.property.models.FloatMillisecondsDurationProperty":"Encode.Duration.Property.FloatMillisecondsDurationProperty","encode.duration.property.models.FloatMillisecondsLargerUnitDurationProperty":"Encode.Duration.Property.FloatMillisecondsLargerUnitDurationProperty","encode.duration.property.models.FloatSecondsDurationArrayProperty":"Encode.Duration.Property.FloatSecondsDurationArrayProperty","encode.duration.property.models.FloatSecondsDurationProperty":"Encode.Duration.Property.FloatSecondsDurationProperty","encode.duration.property.models.FloatSecondsLargerUnitDurationProperty":"Encode.Duration.Property.FloatSecondsLargerUnitDurationProperty","encode.duration.property.models.ISO8601DurationProperty":"Encode.Duration.Property.ISO8601DurationProperty","encode.duration.property.models.Int32MillisecondsDurationProperty":"Encode.Duration.Property.Int32MillisecondsDurationProperty","encode.duration.property.models.Int32MillisecondsLargerUnitDurationProperty":"Encode.Duration.Property.Int32MillisecondsLargerUnitDurationProperty","encode.duration.property.models.Int32SecondsDurationProperty":"Encode.Duration.Property.Int32SecondsDurationProperty","encode.duration.property.models.Int32SecondsLargerUnitDurationProperty":"Encode.Duration.Property.Int32SecondsLargerUnitDurationProperty"},"generatedFiles":["src/main/java/encode/duration/DurationClientBuilder.java","src/main/java/encode/duration/HeaderAsyncClient.java","src/main/java/encode/duration/HeaderClient.java","src/main/java/encode/duration/PropertyAsyncClient.java","src/main/java/encode/duration/PropertyClient.java","src/main/java/encode/duration/QueryAsyncClient.java","src/main/java/encode/duration/QueryClient.java","src/main/java/encode/duration/implementation/DurationClientImpl.java","src/main/java/encode/duration/implementation/HeadersImpl.java","src/main/java/encode/duration/implementation/PropertiesImpl.java","src/main/java/encode/duration/implementation/QueriesImpl.java","src/main/java/encode/duration/implementation/package-info.java","src/main/java/encode/duration/package-info.java","src/main/java/encode/duration/property/models/DefaultDurationProperty.java","src/main/java/encode/duration/property/models/Float64MillisecondsDurationProperty.java","src/main/java/encode/duration/property/models/Float64SecondsDurationProperty.java","src/main/java/encode/duration/property/models/FloatMillisecondsDurationArrayProperty.java","src/main/java/encode/duration/property/models/FloatMillisecondsDurationProperty.java","src/main/java/encode/duration/property/models/FloatMillisecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/models/FloatSecondsDurationArrayProperty.java","src/main/java/encode/duration/property/models/FloatSecondsDurationProperty.java","src/main/java/encode/duration/property/models/FloatSecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/models/ISO8601DurationProperty.java","src/main/java/encode/duration/property/models/Int32MillisecondsDurationProperty.java","src/main/java/encode/duration/property/models/Int32MillisecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/models/Int32SecondsDurationProperty.java","src/main/java/encode/duration/property/models/Int32SecondsLargerUnitDurationProperty.java","src/main/java/encode/duration/property/models/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/azure-clientgenerator-core-nextlinkverb.properties b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/azure-clientgenerator-core-nextlinkverb.properties new file mode 100644 index 00000000000..ca812989b4f --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/azure-clientgenerator-core-nextlinkverb.properties @@ -0,0 +1,2 @@ +name=${project.artifactId} +version=${project.version} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/alternatetype/AlternateTypeTests.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/alternatetype/AlternateTypeTests.java index c43b72ccea9..a233b0902f2 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/alternatetype/AlternateTypeTests.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/alternatetype/AlternateTypeTests.java @@ -14,10 +14,8 @@ import java.io.IOException; import java.util.Map; import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -@Disabled("Fix in spector has not been released") public class AlternateTypeTests { private final AlternateTypeClient client = new AlternateTypeClientBuilder().buildClient(); diff --git a/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/nextlinkverb/NextLinkPostTests.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/nextlinkverb/NextLinkPostTests.java new file mode 100644 index 00000000000..f4a25fdbaa3 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/nextlinkverb/NextLinkPostTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package azure.clientgenerator.core.nextlinkverb; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +public class NextLinkPostTests { + + private final NextLinkVerbClient client = new NextLinkVerbClientBuilder().buildClient(); + + @Test + public void testNextLinkPost() { + Assertions.assertEquals(2, client.listItems().stream().count()); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/nextlinkverb/generated/NextLinkVerbClientTestBase.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/nextlinkverb/generated/NextLinkVerbClientTestBase.java new file mode 100644 index 00000000000..a32b4984cd7 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/clientgenerator/core/nextlinkverb/generated/NextLinkVerbClientTestBase.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package azure.clientgenerator.core.nextlinkverb.generated; + +// The Java test files under 'generated' package are generated for your reference. +// If you wish to modify these files, please copy them out of the 'generated' package, and modify there. +// See https://aka.ms/azsdk/dpg/java/tests for guide on adding a test. + +import azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient; +import azure.clientgenerator.core.nextlinkverb.NextLinkVerbClientBuilder; +import com.azure.core.http.policy.HttpLogDetailLevel; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.test.TestMode; +import com.azure.core.test.TestProxyTestBase; +import com.azure.core.util.Configuration; + +class NextLinkVerbClientTestBase extends TestProxyTestBase { + protected NextLinkVerbClient nextLinkVerbClient; + + @Override + protected void beforeTest() { + NextLinkVerbClientBuilder nextLinkVerbClientbuilder = new NextLinkVerbClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.RECORD) { + nextLinkVerbClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); + } + nextLinkVerbClient = nextLinkVerbClientbuilder.buildClient(); + + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/resourcemanager/resources/ArmResourceTest.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/resourcemanager/resources/ArmResourceTest.java index c00f00ec030..d060626174c 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/resourcemanager/resources/ArmResourceTest.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/azure/resourcemanager/resources/ArmResourceTest.java @@ -16,6 +16,13 @@ import azure.resourcemanager.resources.models.SingletonTrackedResourceProperties; import azure.resourcemanager.resources.models.TopLevelTrackedResource; import azure.resourcemanager.resources.models.TopLevelTrackedResourceProperties; +import com.azure.core.http.HttpPipelineCallContext; +import com.azure.core.http.HttpPipelineNextPolicy; +import com.azure.core.http.HttpPipelineNextSyncPolicy; +import com.azure.core.http.HttpPipelinePosition; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.HttpResponse; +import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.management.Region; import com.azure.core.util.Context; import java.util.List; @@ -23,6 +30,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.utils.ArmUtils; +import reactor.core.publisher.Mono; public class ArmResourceTest { private static final String TOP_LEVEL_TRACKED_RESOURCE_ID @@ -57,8 +65,8 @@ public class ArmResourceTest { private static final String EXTENSION_RESOURCE_TYPE = "Azure.ResourceManager.Resources/extensionsResources"; private static final String EXTENSION_RESOURCE_BASE_ID = "/providers/Azure.ResourceManager.Resources/extensionsResources/extension"; - private final ResourcesManager manager - = ResourcesManager.authenticate(ArmUtils.createTestHttpPipeline(), ArmUtils.getAzureProfile()); + private final ResourcesManager manager = ResourcesManager + .authenticate(ArmUtils.createTestHttpPipeline(List.of(NORMALIZE_URL_POLICY)), ArmUtils.getAzureProfile()); private final static ExtensionsResourceProperties CREATE_PROPERTIES = new ExtensionsResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID); private final static ExtensionsResourceProperties UPDATE_PROPERTIES @@ -66,6 +74,31 @@ public class ArmResourceTest { private ExtensionsResource extensionResource; private List extensionResources; + private static final HttpPipelinePolicy NORMALIZE_URL_POLICY = new HttpPipelinePolicy() { + @Override + public Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) { + normalizeUrl(context.getHttpRequest()); + return next.process(); + } + + @Override + public HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next) { + normalizeUrl(context.getHttpRequest()); + return next.processSync(); + } + + @Override + public HttpPipelinePosition getPipelinePosition() { + return HttpPipelinePosition.PER_CALL; + } + + private void normalizeUrl(HttpRequest httpRequest) { + String url = httpRequest.getUrl().toString(); + url = url.replace("//", "/").replace(":/", "://"); + httpRequest.setUrl(url); + } + }; + @Test public void testTenantExtensionResources() { // Create diff --git a/packages/http-client-java/generator/http-client-generator-test/src/test/java/org/utils/ArmUtils.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/org/utils/ArmUtils.java index bed52875568..7102a90d366 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/test/java/org/utils/ArmUtils.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/org/utils/ArmUtils.java @@ -5,6 +5,7 @@ import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogDetailLevel; @@ -42,6 +43,24 @@ public static HttpPipeline createTestHttpPipeline() { return new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])).build(); } + public static HttpPipeline createTestHttpPipeline(List pipelinePolicies) { + List policies = new ArrayList<>(); + policies.add(new UserAgentPolicy()); + policies.add(new AddHeadersFromContextPolicy()); + policies.add(new RequestIdPolicy()); + pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .forEach(policies::add); + policies.add(new RetryPolicy("Retry-After", ChronoUnit.SECONDS)); + policies.add(new AddDatePolicy()); + pipelinePolicies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .forEach(policies::add); + // no ArmChallengeAuthenticationPolicy + policies.add(new HttpLoggingPolicy(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS))); + return new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])).build(); + } + public static AzureProfile getAzureProfile() { return AZURE_PROFILE; } diff --git a/packages/http-client-java/package-lock.json b/packages/http-client-java/package-lock.json index 5d826f85698..939be9a5356 100644 --- a/packages/http-client-java/package-lock.json +++ b/packages/http-client-java/package-lock.json @@ -1,63 +1,63 @@ { "name": "@typespec/http-client-java", - "version": "0.5.0", + "version": "0.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@typespec/http-client-java", - "version": "0.5.0", + "version": "0.5.1", "license": "MIT", "dependencies": { "@autorest/codemodel": "~4.20.1", - "js-yaml": "~4.1.0", + "js-yaml": "~4.1.1", "lodash": "~4.17.21" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.61.1", - "@azure-tools/typespec-azure-core": "0.61.0", - "@azure-tools/typespec-azure-resource-manager": "0.61.1", - "@azure-tools/typespec-azure-rulesets": "0.61.0", - "@azure-tools/typespec-client-generator-core": "0.61.3", - "@microsoft/api-extractor": "^7.53.3", - "@microsoft/api-extractor-model": "^7.31.3", + "@azure-tools/typespec-autorest": "0.62.0", + "@azure-tools/typespec-azure-core": "0.62.0", + "@azure-tools/typespec-azure-resource-manager": "0.62.0", + "@azure-tools/typespec-azure-rulesets": "0.62.0", + "@azure-tools/typespec-client-generator-core": "0.62.0", + "@microsoft/api-extractor": "^7.55.0", + "@microsoft/api-extractor-model": "^7.32.0", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.20", - "@types/node": "~24.9.2", - "@typespec/compiler": "1.5.0", - "@typespec/events": "0.75.0", - "@typespec/http": "1.5.0", - "@typespec/openapi": "1.5.0", - "@typespec/rest": "0.75.0", - "@typespec/spector": "0.1.0-alpha.19", - "@typespec/sse": "0.75.0", - "@typespec/streams": "0.75.0", - "@typespec/versioning": "0.75.0", - "@typespec/xml": "0.75.0", - "@vitest/coverage-v8": "^4.0.5", - "@vitest/ui": "^4.0.5", + "@types/node": "~24.10.1", + "@typespec/compiler": "1.6.0", + "@typespec/events": "0.76.0", + "@typespec/http": "1.6.0", + "@typespec/openapi": "1.6.0", + "@typespec/rest": "0.76.0", + "@typespec/spector": "0.1.0-alpha.20", + "@typespec/sse": "0.76.0", + "@typespec/streams": "0.76.0", + "@typespec/versioning": "0.76.0", + "@typespec/xml": "0.76.0", + "@vitest/coverage-v8": "^4.0.8", + "@vitest/ui": "^4.0.8", "c8": "~10.1.3", "rimraf": "~6.1.0", "typescript": "~5.9.3", - "vitest": "^4.0.5" + "vitest": "^4.0.8" }, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-autorest": ">=0.61.1 <1.0.0", - "@azure-tools/typespec-azure-core": ">=0.61.0 <1.0.0", - "@azure-tools/typespec-azure-resource-manager": ">=0.61.1 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.61.3 <1.0.0", - "@typespec/compiler": "^1.5.0", - "@typespec/events": ">=0.75.0 <1.0.0", - "@typespec/http": "^1.5.0", - "@typespec/openapi": "^1.5.0", - "@typespec/rest": ">=0.75.0 <1.0.0", - "@typespec/sse": ">=0.75.0 <1.0.0", - "@typespec/streams": ">=0.75.0 <1.0.0", - "@typespec/versioning": ">=0.75.0 <1.0.0", - "@typespec/xml": ">=0.75.0 <1.0.0" + "@azure-tools/typespec-autorest": ">=0.62.0 <1.0.0", + "@azure-tools/typespec-azure-core": ">=0.62.0 <1.0.0", + "@azure-tools/typespec-azure-resource-manager": ">=0.62.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.62.0 <1.0.0", + "@typespec/compiler": "^1.6.0", + "@typespec/events": ">=0.76.0 <1.0.0", + "@typespec/http": "^1.6.0", + "@typespec/openapi": "^1.6.0", + "@typespec/rest": ">=0.76.0 <1.0.0", + "@typespec/sse": ">=0.76.0 <1.0.0", + "@typespec/streams": ">=0.76.0 <1.0.0", + "@typespec/versioning": ">=0.76.0 <1.0.0", + "@typespec/xml": ">=0.76.0 <1.0.0" } }, "node_modules/@autorest/codemodel": { @@ -110,24 +110,24 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.61.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.61.1.tgz", - "integrity": "sha512-wv7Pk6c0HfWPTpR3jv5OsgzI0UmxhuriqiHu8X/0SRQBGlL4+Lwbf1UATEkLaqXpqlHZ80p7HKfUZOtDR4/yVg==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.62.0.tgz", + "integrity": "sha512-XftwipfGGMk9e3qGzbRMBvVpfIqLMJKc8H+XlPHFymnCfexBniZn4Qu2t8nzOVM9fgOoFDjNDzk8W5lf59U5Dg==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.61.0", - "@azure-tools/typespec-azure-resource-manager": "^0.61.1", - "@azure-tools/typespec-client-generator-core": "^0.61.3", - "@typespec/compiler": "^1.5.0", - "@typespec/http": "^1.5.0", - "@typespec/openapi": "^1.5.0", - "@typespec/rest": "^0.75.0", - "@typespec/versioning": "^0.75.0", - "@typespec/xml": "^0.75.0" + "@azure-tools/typespec-azure-core": "^0.62.0", + "@azure-tools/typespec-azure-resource-manager": "^0.62.0", + "@azure-tools/typespec-client-generator-core": "^0.62.0", + "@typespec/compiler": "^1.6.0", + "@typespec/http": "^1.6.0", + "@typespec/openapi": "^1.6.0", + "@typespec/rest": "^0.76.0", + "@typespec/versioning": "^0.76.0", + "@typespec/xml": "^0.76.0" }, "peerDependenciesMeta": { "@typespec/xml": { @@ -136,24 +136,24 @@ } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.61.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.61.0.tgz", - "integrity": "sha512-sqOYBUghAtVMBiAWwT3fMRVSDNwR7IU3AQ96n/ErhAthwWjTe7PFVfK/MPjpI1mO3cdyLeS2DGyI3gt/waWP4g==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.62.0.tgz", + "integrity": "sha512-4LIFqNHhKO1/jiCH0U2rfI+yH7vkWcFuwpjNyRTWXw/YghAI2d+aIEwtT4oM8jWeYR3KUQfA6AqGPRCm90AXYA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0", - "@typespec/http": "^1.5.0", - "@typespec/rest": "^0.75.0" + "@typespec/compiler": "^1.6.0", + "@typespec/http": "^1.6.0", + "@typespec/rest": "^0.76.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.61.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.61.1.tgz", - "integrity": "sha512-+BVZf1OfSZfEaXsOp1ZUCyjjZjC465ieIAr1zEz4yD7KaWGW+yE/w+HXbsRNNw0B52FhgVcWX6iVuvBtMZpNMQ==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.62.0.tgz", + "integrity": "sha512-e8lO9DhIkZJ3+1o2VItq1P4gEcy9EyA5G7AhTz8qICCfU23e5xUAUfscDHYH8JAfuO9vYLvCee/MKY01MQJ0vA==", "dev": true, "license": "MIT", "dependencies": { @@ -164,34 +164,34 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.61.0", - "@typespec/compiler": "^1.5.0", - "@typespec/http": "^1.5.0", - "@typespec/openapi": "^1.5.0", - "@typespec/rest": "^0.75.0", - "@typespec/versioning": "^0.75.0" + "@azure-tools/typespec-azure-core": "^0.62.0", + "@typespec/compiler": "^1.6.0", + "@typespec/http": "^1.6.0", + "@typespec/openapi": "^1.6.0", + "@typespec/rest": "^0.76.0", + "@typespec/versioning": "^0.76.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.61.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.61.0.tgz", - "integrity": "sha512-EWArbj6dgTz7Xi0mAkp0ru6PoWqfXLHlk8Kt7BzVcHCPojBYK14JW9RYSxBta+h2fAEQTSQu+X1r7Y7PhJE8rA==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.62.0.tgz", + "integrity": "sha512-jEsR9ogSYkYxcOc5biEKbwbYS77ffD8avjT8Sbf5r+8VMPZj46uK3V0FaySbtPh+EEgoBrVj2jcbGGKDFrse1A==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.61.0", - "@azure-tools/typespec-azure-resource-manager": "^0.61.0", - "@azure-tools/typespec-client-generator-core": "^0.61.0", - "@typespec/compiler": "^1.5.0" + "@azure-tools/typespec-azure-core": "^0.62.0", + "@azure-tools/typespec-azure-resource-manager": "^0.62.0", + "@azure-tools/typespec-client-generator-core": "^0.62.0", + "@typespec/compiler": "^1.6.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.61.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.61.3.tgz", - "integrity": "sha512-CUhw8vkMzDTYlRfddQERT0ZEJAtwjKteRNuhs1S3IrDceJlHEiXTK+FpPwen/F5DBbj1w2SgnSFfaJ3fL171/w==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.62.0.tgz", + "integrity": "sha512-fZilNfvqIW6Jzb97SuM5f+i9p5b0261InQRbQcTbeuYGtb5z5M0v8tuGglE4adU8NqQ1OmEv/oRjQjSeSjlxwA==", "dev": true, "license": "MIT", "dependencies": { @@ -203,16 +203,16 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.61.0", - "@typespec/compiler": "^1.5.0", - "@typespec/events": "^0.75.0", - "@typespec/http": "^1.5.0", - "@typespec/openapi": "^1.5.0", - "@typespec/rest": "^0.75.0", - "@typespec/sse": "^0.75.0", - "@typespec/streams": "^0.75.0", - "@typespec/versioning": "^0.75.0", - "@typespec/xml": "^0.75.0" + "@azure-tools/typespec-azure-core": "^0.62.0", + "@typespec/compiler": "^1.6.0", + "@typespec/events": "^0.76.0", + "@typespec/http": "^1.6.0", + "@typespec/openapi": "^1.6.0", + "@typespec/rest": "^0.76.0", + "@typespec/sse": "^0.76.0", + "@typespec/streams": "^0.76.0", + "@typespec/versioning": "^0.76.0", + "@typespec/xml": "^0.76.0" } }, "node_modules/@azure/abort-controller": { @@ -307,9 +307,9 @@ } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.22.1.tgz", - "integrity": "sha512-UVZlVLfLyz6g3Hy7GNDpooMQonUygH7ghdiSASOOHy97fKj/mPLqgDX7aidOijn+sCMU+WU8NjlPlNTgnvbcGA==", + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.22.2.tgz", + "integrity": "sha512-MzHym+wOi8CLUlKCQu12de0nwcq9k9Kuv43j4Wa++CsCpJwps2eeBQwD2Bu8snkxTtDKDx4GwjuR9E8yC8LNrg==", "dev": true, "license": "MIT", "dependencies": { @@ -368,9 +368,9 @@ } }, "node_modules/@azure/identity": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.12.0.tgz", - "integrity": "sha512-6vuh2R3Cte6SD6azNalLCjIDoryGdcvDVEV7IDRPtm5lHX5ffkDlIalaoOp5YJU08e4ipjJENel20kSMDLAcug==", + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.13.0.tgz", + "integrity": "sha512-uWC0fssc+hs1TGGVkkghiaFkkS7NkTxfnCH+Hdg+yTehTpMcehpok4PgUKKdyCH+9ldu6FhiHRv84Ntqj1vVcw==", "dev": true, "license": "MIT", "dependencies": { @@ -405,22 +405,22 @@ } }, "node_modules/@azure/msal-browser": { - "version": "4.24.1", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.24.1.tgz", - "integrity": "sha512-e4sp8ihJIyZQvN0ZM1MMuKlEiiLWUS9V9+kxsVAc6K8MtpXHui8VINmKUxXH0OOksLhFDpdq4sGW1w6uYp431A==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.26.1.tgz", + "integrity": "sha512-GGCIsZXxyNm5QcQZ4maA9q+9UWmM+/87G+ybvPkrE32el1URSa9WYt0t67ks3/P0gspZX9RoEqyLqJ/X/JDnBQ==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.13.0" + "@azure/msal-common": "15.13.1" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "15.13.0", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.13.0.tgz", - "integrity": "sha512-8oF6nj02qX7eE/6+wFT5NluXRHc05AgdCC3fJnkjiJooq8u7BcLmxaYYSwc2AfEkWRMRi6Eyvvbeqk4U4412Ag==", + "version": "15.13.1", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.13.1.tgz", + "integrity": "sha512-vQYQcG4J43UWgo1lj7LcmdsGUKWYo28RfEvDQAEMmQIMjSFufvb+pS0FJ3KXmrPmnWlt1vHDl3oip6mIDUQ4uA==", "dev": true, "license": "MIT", "engines": { @@ -428,13 +428,13 @@ } }, "node_modules/@azure/msal-node": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.0.tgz", - "integrity": "sha512-23BXm82Mp5XnRhrcd4mrHa0xuUNRp96ivu3nRatrfdAqjoeWAGyD0eEAafxAOHAEWWmdlyFK4ELFcdziXyw2sA==", + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.2.tgz", + "integrity": "sha512-dQrex2LiXwlCe9WuBHnCsY+xxLyuMXSd2SDEYJuhqB7cE8u6QafiC1xy8j8eBjGO30AsRi2M6amH0ZKk7vJpjA==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.13.0", + "@azure/msal-common": "15.13.1", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" }, @@ -443,9 +443,9 @@ } }, "node_modules/@azure/storage-blob": { - "version": "12.28.0", - "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.28.0.tgz", - "integrity": "sha512-VhQHITXXO03SURhDiGuHhvc/k/sD2WvJUS7hqhiVNbErVCuQoLtWql7r97fleBlIRKHJaa9R7DpBjfE0pfLYcA==", + "version": "12.29.1", + "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.29.1.tgz", + "integrity": "sha512-7ktyY0rfTM0vo7HvtK6E3UvYnI9qfd6Oz6z/+92VhGRveWng3kJwMKeUpqmW/NmwcDNbxHpSlldG+vsUnRFnBg==", "dev": true, "license": "MIT", "dependencies": { @@ -460,7 +460,7 @@ "@azure/core-util": "^1.11.0", "@azure/core-xml": "^1.4.5", "@azure/logger": "^1.1.4", - "@azure/storage-common": "^12.0.0-beta.2", + "@azure/storage-common": "^12.1.1", "events": "^3.0.0", "tslib": "^2.8.1" }, @@ -469,9 +469,9 @@ } }, "node_modules/@azure/storage-common": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@azure/storage-common/-/storage-common-12.0.0.tgz", - "integrity": "sha512-QyEWXgi4kdRo0wc1rHum9/KnaWZKCdQGZK1BjU4fFL6Jtedp7KLbQihgTTVxldFy1z1ZPtuDPx8mQ5l3huPPbA==", + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/@azure/storage-common/-/storage-common-12.1.1.tgz", + "integrity": "sha512-eIOH1pqFwI6UmVNnDQvmFeSg0XppuzDLFeUNO/Xht7ODAzRLgGDh7h550pSxoA+lPDxBl1+D2m/KG3jWzCUjTg==", "dev": true, "license": "MIT", "dependencies": { @@ -505,9 +505,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", - "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "dev": true, "license": "MIT", "engines": { @@ -515,9 +515,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "dev": true, "license": "MIT", "engines": { @@ -525,13 +525,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.2.tgz", - "integrity": "sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.26.0" + "@babel/types": "^7.28.5" }, "bin": { "parser": "bin/babel-parser.js" @@ -541,14 +541,14 @@ } }, "node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -565,9 +565,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.11.tgz", - "integrity": "sha512-Xt1dOL13m8u0WE8iplx9Ibbm+hFAO0GsU2P34UNoDGvZYkY8ifSiy6Zuc1lYxfG7svWE2fzqCUmFp5HCn51gJg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", "cpu": [ "ppc64" ], @@ -582,9 +582,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.11.tgz", - "integrity": "sha512-uoa7dU+Dt3HYsethkJ1k6Z9YdcHjTrSb5NUy66ZfZaSV8hEYGD5ZHbEMXnqLFlbBflLsl89Zke7CAdDJ4JI+Gg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", "cpu": [ "arm" ], @@ -599,9 +599,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.11.tgz", - "integrity": "sha512-9slpyFBc4FPPz48+f6jyiXOx/Y4v34TUeDDXJpZqAWQn/08lKGeD8aDp9TMn9jDz2CiEuHwfhRmGBvpnd/PWIQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", "cpu": [ "arm64" ], @@ -616,9 +616,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.11.tgz", - "integrity": "sha512-Sgiab4xBjPU1QoPEIqS3Xx+R2lezu0LKIEcYe6pftr56PqPygbB7+szVnzoShbx64MUupqoE0KyRlN7gezbl8g==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", "cpu": [ "x64" ], @@ -633,9 +633,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.11.tgz", - "integrity": "sha512-VekY0PBCukppoQrycFxUqkCojnTQhdec0vevUL/EDOCnXd9LKWqD/bHwMPzigIJXPhC59Vd1WFIL57SKs2mg4w==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", "cpu": [ "arm64" ], @@ -650,9 +650,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.11.tgz", - "integrity": "sha512-+hfp3yfBalNEpTGp9loYgbknjR695HkqtY3d3/JjSRUyPg/xd6q+mQqIb5qdywnDxRZykIHs3axEqU6l1+oWEQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", "cpu": [ "x64" ], @@ -667,9 +667,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.11.tgz", - "integrity": "sha512-CmKjrnayyTJF2eVuO//uSjl/K3KsMIeYeyN7FyDBjsR3lnSJHaXlVoAK8DZa7lXWChbuOk7NjAc7ygAwrnPBhA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", "cpu": [ "arm64" ], @@ -684,9 +684,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.11.tgz", - "integrity": "sha512-Dyq+5oscTJvMaYPvW3x3FLpi2+gSZTCE/1ffdwuM6G1ARang/mb3jvjxs0mw6n3Lsw84ocfo9CrNMqc5lTfGOw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", "cpu": [ "x64" ], @@ -701,9 +701,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.11.tgz", - "integrity": "sha512-TBMv6B4kCfrGJ8cUPo7vd6NECZH/8hPpBHHlYI3qzoYFvWu2AdTvZNuU/7hsbKWqu/COU7NIK12dHAAqBLLXgw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", "cpu": [ "arm" ], @@ -718,9 +718,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.11.tgz", - "integrity": "sha512-Qr8AzcplUhGvdyUF08A1kHU3Vr2O88xxP0Tm8GcdVOUm25XYcMPp2YqSVHbLuXzYQMf9Bh/iKx7YPqECs6ffLA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", "cpu": [ "arm64" ], @@ -735,9 +735,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.11.tgz", - "integrity": "sha512-TmnJg8BMGPehs5JKrCLqyWTVAvielc615jbkOirATQvWWB1NMXY77oLMzsUjRLa0+ngecEmDGqt5jiDC6bfvOw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", "cpu": [ "ia32" ], @@ -752,9 +752,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.11.tgz", - "integrity": "sha512-DIGXL2+gvDaXlaq8xruNXUJdT5tF+SBbJQKbWy/0J7OhU8gOHOzKmGIlfTTl6nHaCOoipxQbuJi7O++ldrxgMw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", "cpu": [ "loong64" ], @@ -769,9 +769,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.11.tgz", - "integrity": "sha512-Osx1nALUJu4pU43o9OyjSCXokFkFbyzjXb6VhGIJZQ5JZi8ylCQ9/LFagolPsHtgw6himDSyb5ETSfmp4rpiKQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", "cpu": [ "mips64el" ], @@ -786,9 +786,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.11.tgz", - "integrity": "sha512-nbLFgsQQEsBa8XSgSTSlrnBSrpoWh7ioFDUmwo158gIm5NNP+17IYmNWzaIzWmgCxq56vfr34xGkOcZ7jX6CPw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", "cpu": [ "ppc64" ], @@ -803,9 +803,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.11.tgz", - "integrity": "sha512-HfyAmqZi9uBAbgKYP1yGuI7tSREXwIb438q0nqvlpxAOs3XnZ8RsisRfmVsgV486NdjD7Mw2UrFSw51lzUk1ww==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", "cpu": [ "riscv64" ], @@ -820,9 +820,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.11.tgz", - "integrity": "sha512-HjLqVgSSYnVXRisyfmzsH6mXqyvj0SA7pG5g+9W7ESgwA70AXYNpfKBqh1KbTxmQVaYxpzA/SvlB9oclGPbApw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", "cpu": [ "s390x" ], @@ -837,9 +837,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.11.tgz", - "integrity": "sha512-HSFAT4+WYjIhrHxKBwGmOOSpphjYkcswF449j6EjsjbinTZbp8PJtjsVK1XFJStdzXdy/jaddAep2FGY+wyFAQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", "cpu": [ "x64" ], @@ -854,9 +854,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.11.tgz", - "integrity": "sha512-hr9Oxj1Fa4r04dNpWr3P8QKVVsjQhqrMSUzZzf+LZcYjZNqhA3IAfPQdEh1FLVUJSiu6sgAwp3OmwBfbFgG2Xg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", "cpu": [ "arm64" ], @@ -871,9 +871,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.11.tgz", - "integrity": "sha512-u7tKA+qbzBydyj0vgpu+5h5AeudxOAGncb8N6C9Kh1N4n7wU1Xw1JDApsRjpShRpXRQlJLb9wY28ELpwdPcZ7A==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", "cpu": [ "x64" ], @@ -888,9 +888,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.11.tgz", - "integrity": "sha512-Qq6YHhayieor3DxFOoYM1q0q1uMFYb7cSpLD2qzDSvK1NAvqFi8Xgivv0cFC6J+hWVw2teCYltyy9/m/14ryHg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", "cpu": [ "arm64" ], @@ -905,9 +905,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.11.tgz", - "integrity": "sha512-CN+7c++kkbrckTOz5hrehxWN7uIhFFlmS/hqziSFVWpAzpWrQoAG4chH+nN3Be+Kzv/uuo7zhX716x3Sn2Jduw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", "cpu": [ "x64" ], @@ -922,9 +922,9 @@ } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.11.tgz", - "integrity": "sha512-rOREuNIQgaiR+9QuNkbkxubbp8MSO9rONmwP5nKncnWJ9v5jQ4JxFnLu4zDSRPf3x4u+2VN4pM4RdyIzDty/wQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", "cpu": [ "arm64" ], @@ -939,9 +939,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.11.tgz", - "integrity": "sha512-nq2xdYaWxyg9DcIyXkZhcYulC6pQ2FuCgem3LI92IwMgIZ69KHeY8T4Y88pcwoLIjbed8n36CyKoYRDygNSGhA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", "cpu": [ "x64" ], @@ -956,9 +956,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.11.tgz", - "integrity": "sha512-3XxECOWJq1qMZ3MN8srCJ/QfoLpL+VaxD/WfNRm1O3B4+AZ/BnLVgFbUV3eiRYDMXetciH16dwPbbHqwe1uU0Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", "cpu": [ "arm64" ], @@ -973,9 +973,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.11.tgz", - "integrity": "sha512-3ukss6gb9XZ8TlRyJlgLn17ecsK4NSQTmdIXRASVsiS2sQ6zPPZklNJT5GR5tE/MUarymmy8kCEf5xPCNCqVOA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", "cpu": [ "ia32" ], @@ -990,9 +990,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.11.tgz", - "integrity": "sha512-D7Hpz6A2L4hzsRpPaCYkQnGOotdUpDzSGRIv9I+1ITdHROSFUWW95ZPZWQmGka1Fg7W3zFJowyn9WGwMJ0+KPA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", "cpu": [ "x64" ], @@ -1525,19 +1525,20 @@ } }, "node_modules/@microsoft/api-extractor": { - "version": "7.53.3", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.53.3.tgz", - "integrity": "sha512-p2HmQaMSVqMBj3bH3643f8xApKAqrF1jNpPsMCTQOYCYgfwLnvzsve8c+bgBWzCOBBgLK54PB6ZLIWMGLg8CZA==", + "version": "7.55.0", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.55.0.tgz", + "integrity": "sha512-TYc5OtAK/9E3HGgd2bIfSjQDYIwPc0dysf9rPiwXZGsq916I6W2oww9bhm1OxPOeg6rMfOX3PoroGd7oCryYog==", "dev": true, "license": "MIT", "dependencies": { - "@microsoft/api-extractor-model": "7.31.3", - "@microsoft/tsdoc": "~0.15.1", - "@microsoft/tsdoc-config": "~0.17.1", + "@microsoft/api-extractor-model": "7.32.0", + "@microsoft/tsdoc": "~0.16.0", + "@microsoft/tsdoc-config": "~0.18.0", "@rushstack/node-core-library": "5.18.0", "@rushstack/rig-package": "0.6.0", "@rushstack/terminal": "0.19.3", "@rushstack/ts-command-line": "5.1.3", + "diff": "~8.0.2", "lodash": "~4.17.15", "minimatch": "10.0.3", "resolve": "~1.22.1", @@ -1550,14 +1551,14 @@ } }, "node_modules/@microsoft/api-extractor-model": { - "version": "7.31.3", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.31.3.tgz", - "integrity": "sha512-dv4quQI46p0U03TCEpasUf6JrJL3qjMN7JUAobsPElxBv4xayYYvWW9aPpfYV+Jx6hqUcVaLVOeV7+5hxsyoFQ==", + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.32.0.tgz", + "integrity": "sha512-QIVJSreb8fGGJy1Qx0yzGVXxvHJN1WXgkFNHFheVv1iBJNqgvp+xeT3ienJmRwXmPPc5Es/cxBrXtKZJR3i7iw==", "dev": true, "license": "MIT", "dependencies": { - "@microsoft/tsdoc": "~0.15.1", - "@microsoft/tsdoc-config": "~0.17.1", + "@microsoft/tsdoc": "~0.16.0", + "@microsoft/tsdoc-config": "~0.18.0", "@rushstack/node-core-library": "5.18.0" } }, @@ -1603,20 +1604,20 @@ } }, "node_modules/@microsoft/tsdoc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.15.1.tgz", - "integrity": "sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.16.0.tgz", + "integrity": "sha512-xgAyonlVVS+q7Vc7qLW0UrJU7rSFcETRWsqdXZtjzRU8dF+6CkozTK4V4y1LwOX7j8r/vHphjDeMeGI4tNGeGA==", "dev": true, "license": "MIT" }, "node_modules/@microsoft/tsdoc-config": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.17.1.tgz", - "integrity": "sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.18.0.tgz", + "integrity": "sha512-8N/vClYyfOH+l4fLkkr9+myAoR6M7akc8ntBJ4DJdWH2b09uVfr71+LTMpNyG19fNqWDg8KEDZhx5wxuqHyGjw==", "dev": true, "license": "MIT", "dependencies": { - "@microsoft/tsdoc": "0.15.1", + "@microsoft/tsdoc": "0.16.0", "ajv": "~8.12.0", "jju": "~1.4.0", "resolve": "~1.22.2" @@ -1678,9 +1679,9 @@ "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.5.tgz", - "integrity": "sha512-8c1vW4ocv3UOMp9K+gToY5zL2XiiVw3k7f1ksf4yO1FlDFQ1C2u72iACFnSOceJFsWskc2WZNqeRhFRPzv+wtQ==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.2.tgz", + "integrity": "sha512-yDPzwsgiFO26RJA4nZo8I+xqzh7sJTZIWQOxn+/XOdPE31lAvLIYCKqjV+lNH/vxE2L2iH3plKxDCRK6i+CwhA==", "cpu": [ "arm" ], @@ -1692,9 +1693,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.5.tgz", - "integrity": "sha512-mQGfsIEFcu21mvqkEKKu2dYmtuSZOBMmAl5CFlPGLY94Vlcm+zWApK7F/eocsNzp8tKmbeBP8yXyAbx0XHsFNA==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.2.tgz", + "integrity": "sha512-k8FontTxIE7b0/OGKeSN5B6j25EuppBcWM33Z19JoVT7UTXFSo3D9CdU39wGTeb29NO3XxpMNauh09B+Ibw+9g==", "cpu": [ "arm64" ], @@ -1706,9 +1707,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.5.tgz", - "integrity": "sha512-takF3CR71mCAGA+v794QUZ0b6ZSrgJkArC+gUiG6LB6TQty9T0Mqh3m2ImRBOxS2IeYBo4lKWIieSvnEk2OQWA==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.2.tgz", + "integrity": "sha512-A6s4gJpomNBtJ2yioj8bflM2oogDwzUiMl2yNJ2v9E7++sHrSrsQ29fOfn5DM/iCzpWcebNYEdXpaK4tr2RhfQ==", "cpu": [ "arm64" ], @@ -1720,9 +1721,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.5.tgz", - "integrity": "sha512-W901Pla8Ya95WpxDn//VF9K9u2JbocwV/v75TE0YIHNTbhqUTv9w4VuQ9MaWlNOkkEfFwkdNhXgcLqPSmHy0fA==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.2.tgz", + "integrity": "sha512-e6XqVmXlHrBlG56obu9gDRPW3O3hLxpwHpLsBJvuI8qqnsrtSZ9ERoWUXtPOkY8c78WghyPHZdmPhHLWNdAGEw==", "cpu": [ "x64" ], @@ -1734,9 +1735,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.5.tgz", - "integrity": "sha512-QofO7i7JycsYOWxe0GFqhLmF6l1TqBswJMvICnRUjqCx8b47MTo46W8AoeQwiokAx3zVryVnxtBMcGcnX12LvA==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.2.tgz", + "integrity": "sha512-v0E9lJW8VsrwPux5Qe5CwmH/CF/2mQs6xU1MF3nmUxmZUCHazCjLgYvToOk+YuuUqLQBio1qkkREhxhc656ViA==", "cpu": [ "arm64" ], @@ -1748,9 +1749,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.5.tgz", - "integrity": "sha512-jr21b/99ew8ujZubPo9skbrItHEIE50WdV86cdSoRkKtmWa+DDr6fu2c/xyRT0F/WazZpam6kk7IHBerSL7LDQ==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.2.tgz", + "integrity": "sha512-ClAmAPx3ZCHtp6ysl4XEhWU69GUB1D+s7G9YjHGhIGCSrsg00nEGRRZHmINYxkdoJehde8VIsDC5t9C0gb6yqA==", "cpu": [ "x64" ], @@ -1762,9 +1763,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.5.tgz", - "integrity": "sha512-PsNAbcyv9CcecAUagQefwX8fQn9LQ4nZkpDboBOttmyffnInRy8R8dSg6hxxl2Re5QhHBf6FYIDhIj5v982ATQ==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.2.tgz", + "integrity": "sha512-EPlb95nUsz6Dd9Qy13fI5kUPXNSljaG9FiJ4YUGU1O/Q77i5DYFW5KR8g1OzTcdZUqQQ1KdDqsTohdFVwCwjqg==", "cpu": [ "arm" ], @@ -1776,9 +1777,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.5.tgz", - "integrity": "sha512-Fw4tysRutyQc/wwkmcyoqFtJhh0u31K+Q6jYjeicsGJJ7bbEq8LwPWV/w0cnzOqR2m694/Af6hpFayLJZkG2VQ==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.2.tgz", + "integrity": "sha512-BOmnVW+khAUX+YZvNfa0tGTEMVVEerOxN0pDk2E6N6DsEIa2Ctj48FOMfNDdrwinocKaC7YXUZ1pHlKpnkja/Q==", "cpu": [ "arm" ], @@ -1790,9 +1791,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.5.tgz", - "integrity": "sha512-a+3wVnAYdQClOTlyapKmyI6BLPAFYs0JM8HRpgYZQO02rMR09ZcV9LbQB+NL6sljzG38869YqThrRnfPMCDtZg==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.2.tgz", + "integrity": "sha512-Xt2byDZ+6OVNuREgBXr4+CZDJtrVso5woFtpKdGPhpTPHcNG7D8YXeQzpNbFRxzTVqJf7kvPMCub/pcGUWgBjA==", "cpu": [ "arm64" ], @@ -1804,9 +1805,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.5.tgz", - "integrity": "sha512-AvttBOMwO9Pcuuf7m9PkC1PUIKsfaAJ4AYhy944qeTJgQOqJYJ9oVl2nYgY7Rk0mkbsuOpCAYSs6wLYB2Xiw0Q==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.2.tgz", + "integrity": "sha512-+LdZSldy/I9N8+klim/Y1HsKbJ3BbInHav5qE9Iy77dtHC/pibw1SR/fXlWyAk0ThnpRKoODwnAuSjqxFRDHUQ==", "cpu": [ "arm64" ], @@ -1818,9 +1819,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.5.tgz", - "integrity": "sha512-DkDk8pmXQV2wVrF6oq5tONK6UHLz/XcEVow4JTTerdeV1uqPeHxwcg7aFsfnSm9L+OO8WJsWotKM2JJPMWrQtA==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.2.tgz", + "integrity": "sha512-8ms8sjmyc1jWJS6WdNSA23rEfdjWB30LH8Wqj0Cqvv7qSHnvw6kgMMXRdop6hkmGPlyYBdRPkjJnj3KCUHV/uQ==", "cpu": [ "loong64" ], @@ -1832,9 +1833,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.5.tgz", - "integrity": "sha512-W/b9ZN/U9+hPQVvlGwjzi+Wy4xdoH2I8EjaCkMvzpI7wJUs8sWJ03Rq96jRnHkSrcHTpQe8h5Tg3ZzUPGauvAw==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.2.tgz", + "integrity": "sha512-3HRQLUQbpBDMmzoxPJYd3W6vrVHOo2cVW8RUo87Xz0JPJcBLBr5kZ1pGcQAhdZgX9VV7NbGNipah1omKKe23/g==", "cpu": [ "ppc64" ], @@ -1846,9 +1847,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.5.tgz", - "integrity": "sha512-sjQLr9BW7R/ZiXnQiWPkErNfLMkkWIoCz7YMn27HldKsADEKa5WYdobaa1hmN6slu9oWQbB6/jFpJ+P2IkVrmw==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.2.tgz", + "integrity": "sha512-fMjKi+ojnmIvhk34gZP94vjogXNNUKMEYs+EDaB/5TG/wUkoeua7p7VCHnE6T2Tx+iaghAqQX8teQzcvrYpaQA==", "cpu": [ "riscv64" ], @@ -1860,9 +1861,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.5.tgz", - "integrity": "sha512-hq3jU/kGyjXWTvAh2awn8oHroCbrPm8JqM7RUpKjalIRWWXE01CQOf/tUNWNHjmbMHg/hmNCwc/Pz3k1T/j/Lg==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.2.tgz", + "integrity": "sha512-XuGFGU+VwUUV5kLvoAdi0Wz5Xbh2SrjIxCtZj6Wq8MDp4bflb/+ThZsVxokM7n0pcbkEr2h5/pzqzDYI7cCgLQ==", "cpu": [ "riscv64" ], @@ -1874,9 +1875,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.5.tgz", - "integrity": "sha512-gn8kHOrku8D4NGHMK1Y7NA7INQTRdVOntt1OCYypZPRt6skGbddska44K8iocdpxHTMMNui5oH4elPH4QOLrFQ==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.2.tgz", + "integrity": "sha512-w6yjZF0P+NGzWR3AXWX9zc0DNEGdtvykB03uhonSHMRa+oWA6novflo2WaJr6JZakG2ucsyb+rvhrKac6NIy+w==", "cpu": [ "s390x" ], @@ -1888,9 +1889,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.5.tgz", - "integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.2.tgz", + "integrity": "sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw==", "cpu": [ "x64" ], @@ -1902,9 +1903,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.5.tgz", - "integrity": "sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.2.tgz", + "integrity": "sha512-ah59c1YkCxKExPP8O9PwOvs+XRLKwh/mV+3YdKqQ5AMQ0r4M4ZDuOrpWkUaqO7fzAHdINzV9tEVu8vNw48z0lA==", "cpu": [ "x64" ], @@ -1916,9 +1917,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.5.tgz", - "integrity": "sha512-QoFqB6+/9Rly/RiPjaomPLmR/13cgkIGfA40LHly9zcH1S0bN2HVFYk3a1eAyHQyjs3ZJYlXvIGtcCs5tko9Cw==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.2.tgz", + "integrity": "sha512-4VEd19Wmhr+Zy7hbUsFZ6YXEiP48hE//KPLCSVNY5RMGX2/7HZ+QkN55a3atM1C/BZCGIgqN+xrVgtdak2S9+A==", "cpu": [ "arm64" ], @@ -1930,9 +1931,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.5.tgz", - "integrity": "sha512-w0cDWVR6MlTstla1cIfOGyl8+qb93FlAVutcor14Gf5Md5ap5ySfQ7R9S/NjNaMLSFdUnKGEasmVnu3lCMqB7w==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.2.tgz", + "integrity": "sha512-IlbHFYc/pQCgew/d5fslcy1KEaYVCJ44G8pajugd8VoOEI8ODhtb/j8XMhLpwHCMB3yk2J07ctup10gpw2nyMA==", "cpu": [ "arm64" ], @@ -1944,9 +1945,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.5.tgz", - "integrity": "sha512-Aufdpzp7DpOTULJCuvzqcItSGDH73pF3ko/f+ckJhxQyHtp67rHw3HMNxoIdDMUITJESNE6a8uh4Lo4SLouOUg==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.2.tgz", + "integrity": "sha512-lNlPEGgdUfSzdCWU176ku/dQRnA7W+Gp8d+cWv73jYrb8uT7HTVVxq62DUYxjbaByuf1Yk0RIIAbDzp+CnOTFg==", "cpu": [ "ia32" ], @@ -1958,9 +1959,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.5.tgz", - "integrity": "sha512-UGBUGPFp1vkj6p8wCRraqNhqwX/4kNQPS57BCFc8wYh0g94iVIW33wJtQAx3G7vrjjNtRaxiMUylM0ktp/TRSQ==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.2.tgz", + "integrity": "sha512-S6YojNVrHybQis2lYov1sd+uj7K0Q05NxHcGktuMMdIQ2VixGwAfbJ23NnlvvVV1bdpR2m5MsNBViHJKcA4ADw==", "cpu": [ "x64" ], @@ -1972,9 +1973,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.5.tgz", - "integrity": "sha512-TAcgQh2sSkykPRWLrdyy2AiceMckNf5loITqXxFI5VuQjS5tSuw3WlwdN8qv8vzjLAUTvYaH/mVjSFpbkFbpTg==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.2.tgz", + "integrity": "sha512-k+/Rkcyx//P6fetPoLMb8pBeqJBNGx81uuf7iljX9++yNBVRDQgD04L+SVXmXmh5ZP4/WOp4mWF0kmi06PW2tA==", "cpu": [ "x64" ], @@ -2126,9 +2127,9 @@ } }, "node_modules/@sindresorhus/merge-streams": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz", - "integrity": "sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", "dev": true, "license": "MIT", "engines": { @@ -2197,9 +2198,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "24.9.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.2.tgz", - "integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==", + "version": "24.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", + "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2207,9 +2208,9 @@ } }, "node_modules/@typespec/compiler": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.5.0.tgz", - "integrity": "sha512-REJgZOEZ9g9CC72GGT0+nLbjW+5WVlCfm1d6w18N5RsUo7vLXs8IPXwq7xZJzoqU99Q9B4keqzPuTU4OrDUTrA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.6.0.tgz", + "integrity": "sha512-yxyV+ch8tnqiuU2gClv/mQEESoFwpkjo6177UkYfV0nVA9PzTg4zVVc7+WIMZk04wiLRRT3H1uc11FB1cwLY3g==", "dev": true, "license": "MIT", "dependencies": { @@ -2218,13 +2219,13 @@ "ajv": "~8.17.1", "change-case": "~5.4.4", "env-paths": "^3.0.0", - "globby": "~14.1.0", + "globby": "~15.0.0", "is-unicode-supported": "^2.1.0", "mustache": "~4.2.0", "picocolors": "~1.1.1", "prettier": "~3.6.2", "semver": "^7.7.1", - "tar": "^7.4.3", + "tar": "^7.5.2", "temporal-polyfill": "^0.3.0", "vscode-languageserver": "~9.0.1", "vscode-languageserver-textdocument": "~1.0.12", @@ -2384,30 +2385,30 @@ } }, "node_modules/@typespec/events": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.75.0.tgz", - "integrity": "sha512-V7unXnj+sZoa/1wQG8G6x2TiQqotx18S/qFbDzdfJRPCVpH/Z3xIpppce4jTZALXT97tKZK5GDHijn2zWuWWxg==", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.76.0.tgz", + "integrity": "sha512-mdjYQ5HA3Y4ZeyAEmiIDdRa9hbc/5qey5hU9UCA0gL+YWVYgoqLPbZQQTwqq3smM35+5cWp9GTGPyNHcOoRwOA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0" + "@typespec/compiler": "^1.6.0" } }, "node_modules/@typespec/http": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.5.0.tgz", - "integrity": "sha512-52XLXwqSY2SY6nSvfkiTsNiJzlMeIAZ6MFIVJ5YkoibA21TNAP4DtjTZgC2GieZLY2NNN/rqDCqBX+DyWqTrfQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.6.0.tgz", + "integrity": "sha512-q/JwVw21CF4buE3ZS+xSoy2TKAOwyhZ7g3kdNqCgm69BI5p5GGu+3ZlUA+4Blk8hkt0G8XcIN8fhJP+a4O6KAw==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0", - "@typespec/streams": "^0.75.0" + "@typespec/compiler": "^1.6.0", + "@typespec/streams": "^0.76.0" }, "peerDependenciesMeta": { "@typespec/streams": { @@ -2416,37 +2417,37 @@ } }, "node_modules/@typespec/openapi": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.5.0.tgz", - "integrity": "sha512-27sXkSK2r1sAmVMLv+pwlN/Cm+yg9nEK8iuGyJRuEkBk7hcsJDbTnBlsEvlRTI8DqljtzA7YECDHBLK88zZHeg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.6.0.tgz", + "integrity": "sha512-KuxYAzfP5ljM0PUhSGclNZgTG0H+kyTQcwn6cf4TKhO72R2QMQmiMtN2plqvzsfkL+TLwad1iZhMWTCAMFAQ4w==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0", - "@typespec/http": "^1.5.0" + "@typespec/compiler": "^1.6.0", + "@typespec/http": "^1.6.0" } }, "node_modules/@typespec/rest": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.75.0.tgz", - "integrity": "sha512-rQ+RP0kcrKWjbpCIkBd8hpxYSNc3CfQxl0MLP1+MYGRHlHL8ss4xbwdANIYZXZZ2i2Hqt19B7cEUGD4MLoCHvw==", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.76.0.tgz", + "integrity": "sha512-6jtQWdcmuKyG9cmqWsJjaq64f6N5B/1DS4X3ZoTNgYhHA27Hnsxo1HZWXcpv7Wl+MxLAZM6kgpML0ugDEZcrYQ==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0", - "@typespec/http": "^1.5.0" + "@typespec/compiler": "^1.6.0", + "@typespec/http": "^1.6.0" } }, "node_modules/@typespec/spec-api": { - "version": "0.1.0-alpha.9", - "resolved": "https://registry.npmjs.org/@typespec/spec-api/-/spec-api-0.1.0-alpha.9.tgz", - "integrity": "sha512-EOJYl7z8F8cdZnnJdXOhRSePZ/k4z7q8G7CD/byHB5Esu/gAs1jDh9mSDU837Rszt0ABaYmexRwn8NOlFvusZQ==", + "version": "0.1.0-alpha.10", + "resolved": "https://registry.npmjs.org/@typespec/spec-api/-/spec-api-0.1.0-alpha.10.tgz", + "integrity": "sha512-LvwlhMnwqzCjmwOPuoE1jPfK+474qmo29Jq4Da2FZkjZbDsbyWuU4FRptRMhjsNj3ITMz/VulShXq4eXz4VroQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2459,57 +2460,50 @@ } }, "node_modules/@typespec/spec-coverage-sdk": { - "version": "0.1.0-alpha.11", - "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.11.tgz", - "integrity": "sha512-v9MYuoodgr9MhkaQfB9UpTrtRvUuENpoUngo+zyr/aqBj1Y5aTInTxecYG/lSQ2BVdSJZeLT89V5LRiyPr08bw==", + "version": "0.1.0-alpha.12", + "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.12.tgz", + "integrity": "sha512-eqzNQ+bZn25SP8GZyf6qgCwXL1U5/OF5AvKFl7AlYfSSuB0ybeWaDQ14jZzl5gnFXY8lCc8P0ycK1HjtwdGyqw==", "dev": true, "license": "MIT", "dependencies": { - "@azure/identity": "~4.12.0", - "@azure/storage-blob": "~12.28.0", - "@types/node": "~24.3.0" + "@azure/identity": "~4.13.0", + "@azure/storage-blob": "~12.29.1", + "@types/node": "~24.9.1" }, "engines": { "node": ">=16.0.0" } }, "node_modules/@typespec/spec-coverage-sdk/node_modules/@types/node": { - "version": "24.3.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.3.tgz", - "integrity": "sha512-GKBNHjoNw3Kra1Qg5UXttsY5kiWMEfoHq2TmXb+b1rcm6N7B3wTrFYIf/oSZ1xNQ+hVVijgLkiDZh7jRRsh+Gw==", + "version": "24.9.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.2.tgz", + "integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.10.0" + "undici-types": "~7.16.0" } }, - "node_modules/@typespec/spec-coverage-sdk/node_modules/undici-types": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", - "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", - "dev": true, - "license": "MIT" - }, "node_modules/@typespec/spector": { - "version": "0.1.0-alpha.19", - "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.19.tgz", - "integrity": "sha512-BsT4LLYrcsiWWz5/CZRNFA4WSglGAVYLJFroGIsRzaiTnkyZuS6tUNze391LSm9yNBGZBJqIDdR76DgI+8ybCw==", + "version": "0.1.0-alpha.20", + "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.20.tgz", + "integrity": "sha512-qnR3NizzYu8e7TNcXY+CFp/FkXk8DJCtk3lpWPC3bNaNjxtuUjZ6Miix0gCPjDBCGOv8iquT7mLux103kMKLWQ==", "dev": true, "license": "MIT", "dependencies": { - "@azure/identity": "~4.12.0", + "@azure/identity": "~4.13.0", "@types/js-yaml": "^4.0.5", - "@typespec/compiler": "^1.5.0", - "@typespec/http": "^1.5.0", - "@typespec/rest": "^0.75.0", - "@typespec/spec-api": "^0.1.0-alpha.9", - "@typespec/spec-coverage-sdk": "^0.1.0-alpha.11", - "@typespec/versioning": "^0.75.0", + "@typespec/compiler": "^1.6.0", + "@typespec/http": "^1.6.0", + "@typespec/rest": "^0.76.0", + "@typespec/spec-api": "^0.1.0-alpha.10", + "@typespec/spec-coverage-sdk": "^0.1.0-alpha.12", + "@typespec/versioning": "^0.76.0", "ajv": "~8.17.1", "body-parser": "^2.2.0", "deep-equal": "^2.2.0", "express": "^5.1.0", - "globby": "~14.1.0", + "globby": "~15.0.0", "js-yaml": "^4.1.0", "micromatch": "^4.0.8", "morgan": "^1.10.0", @@ -2672,38 +2666,38 @@ } }, "node_modules/@typespec/sse": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.75.0.tgz", - "integrity": "sha512-8iODUY3C/0hR9sTzyHeTgYfZkKeqZM+/P0OmN1ZWlLUokXQ67yydGXIqnjl+yaeuntwN8H2DDwLguU15c+j+UQ==", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.76.0.tgz", + "integrity": "sha512-mCd4oAXr0Tt990T2PDjx+6H0jmPHINyCH0XRU2HrWtGW5lG/NQVIs5oOxElc7NGg629HrolfLTw0oW8hdMD7Eg==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0", - "@typespec/events": "^0.75.0", - "@typespec/http": "^1.5.0", - "@typespec/streams": "^0.75.0" + "@typespec/compiler": "^1.6.0", + "@typespec/events": "^0.76.0", + "@typespec/http": "^1.6.0", + "@typespec/streams": "^0.76.0" } }, "node_modules/@typespec/streams": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.75.0.tgz", - "integrity": "sha512-ubvxCN+SZwN9aEarz8CPtMJgnopeu8dXyut47q0FAPp9nykmXy7s+dmsopR+7OX0Fhcnh8ZFYTQcJzJ3QftOiQ==", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.76.0.tgz", + "integrity": "sha512-7gQPtsokyn0Mjr43MAik6ZkQt1PZjseU+KcBE2iGT9P6oWYYTH3K1C4LLGXHZAbgEtBvFn4S+U8HPbDhj4nEhw==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0" + "@typespec/compiler": "^1.6.0" } }, "node_modules/@typespec/ts-http-runtime": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.1.tgz", - "integrity": "sha512-SnbaqayTVFEA6/tYumdF0UmybY0KHyKwGPBXnyckFlrrKdhWFrL3a2HIPXHjht5ZOElKGcXfD2D63P36btb+ww==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.2.tgz", + "integrity": "sha512-IlqQ/Gv22xUC1r/WQm4StLkYQmaaTsXAhUVsNE0+xiyf0yRFiH5++q78U3bw6bLKDCTmh0uqKB9eG9+Bt75Dkg==", "dev": true, "license": "MIT", "dependencies": { @@ -2716,56 +2710,56 @@ } }, "node_modules/@typespec/versioning": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.75.0.tgz", - "integrity": "sha512-wdLcVx5UW4WRks/OXfqLiaDTtWfAWgv/nj69u99gRJU6iY9ExEvK5x9NQszZQKYnu6tM7nkoYMg4zu+7YBUBaw==", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.76.0.tgz", + "integrity": "sha512-dguO/B+mwlCyenWGG+M+16cMQuGHSTJbU5Z0pyUou1uyWrB1px//s4pW7PKD14S+fPutJE0wTMQm+CctOq6quA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0" + "@typespec/compiler": "^1.6.0" } }, "node_modules/@typespec/xml": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.75.0.tgz", - "integrity": "sha512-JVafN1nZE3BcQrKbaAFVWw/IleTRdsJpwT3oZ2m7EfWnG30sKtoR9inF9dRoW+XXIjNzCfeYqjkwzEkEnIrCww==", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.76.0.tgz", + "integrity": "sha512-+I7hdWZDO3qBfzRT3St+1Dg/NQAMNLz8w1OydutSnVMx0G3KWg/ESonaByszBUfdq6Z5iTtls3gvj4wgrw80gA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.5.0" + "@typespec/compiler": "^1.6.0" } }, "node_modules/@vitest/coverage-v8": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.0.5.tgz", - "integrity": "sha512-Yn5Dx0UVvllE3uatQw+ftObWtM/TjAOdbd8WvygaR04iyFXdNmtvZ/nJ2/JndyzfPQtbAWw0F+GJY5+lgM/7qg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.0.8.tgz", + "integrity": "sha512-wQgmtW6FtPNn4lWUXi8ZSYLpOIb92j3QCujxX3sQ81NTfQ/ORnE0HtK7Kqf2+7J9jeveMGyGyc4NWc5qy3rC4A==", "dev": true, "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^1.0.2", - "@vitest/utils": "4.0.5", - "ast-v8-to-istanbul": "^0.3.5", + "@vitest/utils": "4.0.8", + "ast-v8-to-istanbul": "^0.3.8", "debug": "^4.4.3", "istanbul-lib-coverage": "^3.2.2", "istanbul-lib-report": "^3.0.1", "istanbul-lib-source-maps": "^5.0.6", "istanbul-reports": "^3.2.0", - "magicast": "^0.3.5", - "std-env": "^3.9.0", + "magicast": "^0.5.1", + "std-env": "^3.10.0", "tinyrainbow": "^3.0.3" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "@vitest/browser": "4.0.5", - "vitest": "4.0.5" + "@vitest/browser": "4.0.8", + "vitest": "4.0.8" }, "peerDependenciesMeta": { "@vitest/browser": { @@ -2774,17 +2768,17 @@ } }, "node_modules/@vitest/expect": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.0.5.tgz", - "integrity": "sha512-DJctLVlKoddvP/G389oGmKWNG6GD9frm2FPXARziU80Rjo7SIYxQzb2YFzmQ4fVD3Q5utUYY8nUmWrqsuIlIXQ==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.0.8.tgz", + "integrity": "sha512-Rv0eabdP/xjAHQGr8cjBm+NnLHNoL268lMDK85w2aAGLFoVKLd8QGnVon5lLtkXQCoYaNL0wg04EGnyKkkKhPA==", "dev": true, "license": "MIT", "dependencies": { "@standard-schema/spec": "^1.0.0", "@types/chai": "^5.2.2", - "@vitest/spy": "4.0.5", - "@vitest/utils": "4.0.5", - "chai": "^6.0.1", + "@vitest/spy": "4.0.8", + "@vitest/utils": "4.0.8", + "chai": "^6.2.0", "tinyrainbow": "^3.0.3" }, "funding": { @@ -2792,15 +2786,15 @@ } }, "node_modules/@vitest/mocker": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.0.5.tgz", - "integrity": "sha512-iYHIy72LfbK+mL5W8zXROp6oOcJKXWeKcNjcPPsqoa18qIEDrhB6/Z08o0wRajTd6SSSDNw8NCSIHVNOMpz0mw==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.0.8.tgz", + "integrity": "sha512-9FRM3MZCedXH3+pIh+ME5Up2NBBHDq0wqwhOKkN4VnvCiKbVxddqH9mSGPZeawjd12pCOGnl+lo/ZGHt0/dQSg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "4.0.5", + "@vitest/spy": "4.0.8", "estree-walker": "^3.0.3", - "magic-string": "^0.30.19" + "magic-string": "^0.30.21" }, "funding": { "url": "https://opencollective.com/vitest" @@ -2819,9 +2813,9 @@ } }, "node_modules/@vitest/pretty-format": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.0.5.tgz", - "integrity": "sha512-t1T/sSdsYyNc5AZl0EMeD0jW9cpJe2cODP0R++ZQe1kTkpgrwEfxGFR/yCG4w8ZybizbXRTHU7lE8sTDD/QsGw==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.0.8.tgz", + "integrity": "sha512-qRrjdRkINi9DaZHAimV+8ia9Gq6LeGz2CgIEmMLz3sBDYV53EsnLZbJMR1q84z1HZCMsf7s0orDgZn7ScXsZKg==", "dev": true, "license": "MIT", "dependencies": { @@ -2832,13 +2826,13 @@ } }, "node_modules/@vitest/runner": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.0.5.tgz", - "integrity": "sha512-CQVVe+YEeKSiFBD5gBAmRDQglm4PnMBYzeTmt06t5iWtsUN9StQeeKhYCea/oaqBYilf8sARG6fSctUcEL/UmQ==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.0.8.tgz", + "integrity": "sha512-mdY8Sf1gsM8hKJUQfiPT3pn1n8RF4QBcJYFslgWh41JTfrK1cbqY8whpGCFzBl45LN028g0njLCYm0d7XxSaQQ==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "4.0.5", + "@vitest/utils": "4.0.8", "pathe": "^2.0.3" }, "funding": { @@ -2846,14 +2840,14 @@ } }, "node_modules/@vitest/snapshot": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.0.5.tgz", - "integrity": "sha512-jfmSAeR6xYNEvcD+/RxFGA1bzpqHtkVhgxo2cxXia+Q3xX7m6GpZij07rz+WyQcA/xEGn4eIS1OItkMyWsGBmQ==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.0.8.tgz", + "integrity": "sha512-Nar9OTU03KGiubrIOFhcfHg8FYaRaNT+bh5VUlNz8stFhCZPNrJvmZkhsr1jtaYvuefYFwK2Hwrq026u4uPWCw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.0.5", - "magic-string": "^0.30.19", + "@vitest/pretty-format": "4.0.8", + "magic-string": "^0.30.21", "pathe": "^2.0.3" }, "funding": { @@ -2861,9 +2855,9 @@ } }, "node_modules/@vitest/spy": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.0.5.tgz", - "integrity": "sha512-TUmVQpAQign7r8+EnZsgTF3vY9BdGofTUge1rGNbnHn2IN3FChiQoT9lrPz7A7AVUZJU2LAZXl4v66HhsNMhoA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.0.8.tgz", + "integrity": "sha512-nvGVqUunyCgZH7kmo+Ord4WgZ7lN0sOULYXUOYuHr55dvg9YvMz3izfB189Pgp28w0vWFbEEfNc/c3VTrqrXeA==", "dev": true, "license": "MIT", "funding": { @@ -2871,13 +2865,13 @@ } }, "node_modules/@vitest/ui": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-4.0.5.tgz", - "integrity": "sha512-msuwwWsWSKKOid91osirrm0hDUFojT9wde4GSefCj7BHz9SrXbFJSbrrKKEow0AmGhQi/k2FxIWnVifioWbMVg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-4.0.8.tgz", + "integrity": "sha512-F9jI5rSstNknPlTlPN2gcc4gpbaagowuRzw/OJzl368dvPun668Q182S8Q8P9PITgGCl5LAKXpzuue106eM4wA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "4.0.5", + "@vitest/utils": "4.0.8", "fflate": "^0.8.2", "flatted": "^3.3.3", "pathe": "^2.0.3", @@ -2889,17 +2883,17 @@ "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "vitest": "4.0.5" + "vitest": "4.0.8" } }, "node_modules/@vitest/utils": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.0.5.tgz", - "integrity": "sha512-V5RndUgCB5/AfNvK9zxGCrRs99IrPYtMTIdUzJMMFs9nrmE5JXExIEfjVtUteyTRiLfCm+dCRMHf/Uu7Mm8/dg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.0.8.tgz", + "integrity": "sha512-pdk2phO5NDvEFfUTxcTP8RFYjVj/kfLSPIN5ebP2Mu9kcIMeAQTbknqcFEyBcC4z2pJlJI9aS5UQjcYfhmKAow==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.0.5", + "@vitest/pretty-format": "4.0.8", "tinyrainbow": "^3.0.3" }, "funding": { @@ -3081,9 +3075,9 @@ } }, "node_modules/ast-v8-to-istanbul": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.7.tgz", - "integrity": "sha512-kr1Hy6YRZBkGQSb6puP+D6FQ59Cx4m0siYhAxygMCAgadiWQ6oxAxQXHOMvJx67SJ63jRoVIIg5eXzUbbct1ww==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.8.tgz", + "integrity": "sha512-szgSZqUxI5T8mLKvS7WTjF9is+MVbOeLADU73IseOcrqhxr/VAvy6wfoVE39KnKzA7JRhjF5eUagNlHwvZPlKQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3322,9 +3316,9 @@ } }, "node_modules/chai": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.0.tgz", - "integrity": "sha512-aUTnJc/JipRzJrNADXVvpVqi6CO0dn3nx4EVPxijri+fj3LUUDyZQOgVeW54Ob3Y1Xh9Iz8f+CgaCl8v0mn9bA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.1.tgz", + "integrity": "sha512-p4Z49OGG5W/WBCPSS/dH3jQ73kD6tiMmUM+bckNK6Jr5JHMG3k9bg/BvKR8lKmtVBKmOiuVaV2ws8s9oSbwysg==", "dev": true, "license": "MIT", "engines": { @@ -3509,9 +3503,9 @@ } }, "node_modules/default-browser": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz", - "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.3.0.tgz", + "integrity": "sha512-Qq68+VkJlc8tjnPV1i7HtbIn7ohmjZa88qUvHMIK0ZKUXMCuV45cT7cEXALPUmeXCe0q1DWQkQTemHVaLIFSrg==", "dev": true, "license": "MIT", "dependencies": { @@ -3597,6 +3591,16 @@ "node": ">= 0.8" } }, + "node_modules/diff": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.2.tgz", + "integrity": "sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -3726,9 +3730,9 @@ } }, "node_modules/esbuild": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.11.tgz", - "integrity": "sha512-KohQwyzrKTQmhXDW1PjCv3Tyspn9n5GcY2RTDqeORIdIJY8yKIF7sTSopFmn/wpMPW4rdPXI0UE5LJLuq3bx0Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -3739,32 +3743,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.11", - "@esbuild/android-arm": "0.25.11", - "@esbuild/android-arm64": "0.25.11", - "@esbuild/android-x64": "0.25.11", - "@esbuild/darwin-arm64": "0.25.11", - "@esbuild/darwin-x64": "0.25.11", - "@esbuild/freebsd-arm64": "0.25.11", - "@esbuild/freebsd-x64": "0.25.11", - "@esbuild/linux-arm": "0.25.11", - "@esbuild/linux-arm64": "0.25.11", - "@esbuild/linux-ia32": "0.25.11", - "@esbuild/linux-loong64": "0.25.11", - "@esbuild/linux-mips64el": "0.25.11", - "@esbuild/linux-ppc64": "0.25.11", - "@esbuild/linux-riscv64": "0.25.11", - "@esbuild/linux-s390x": "0.25.11", - "@esbuild/linux-x64": "0.25.11", - "@esbuild/netbsd-arm64": "0.25.11", - "@esbuild/netbsd-x64": "0.25.11", - "@esbuild/openbsd-arm64": "0.25.11", - "@esbuild/openbsd-x64": "0.25.11", - "@esbuild/openharmony-arm64": "0.25.11", - "@esbuild/sunos-x64": "0.25.11", - "@esbuild/win32-arm64": "0.25.11", - "@esbuild/win32-ia32": "0.25.11", - "@esbuild/win32-x64": "0.25.11" + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" } }, "node_modules/escalade": { @@ -3896,9 +3900,9 @@ "dev": true }, "node_modules/fast-xml-parser": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.0.tgz", - "integrity": "sha512-gkWGshjYcQCF+6qtlrqBqELqNqnt4CxruY6UVAWWnqb3DQ6qaNFEIKqzYep1XzHLM/QtrHVCxyPOtTk4LTQ7Aw==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.1.tgz", + "integrity": "sha512-jbNkWiv2Ec1A7wuuxk0br0d0aTMUtQ4IkL+l/i1r9PRf6pLXjDgsBsWwO+UyczmQlnehi4Tbc8/KIvxGQe+I/A==", "dev": true, "funding": [ { @@ -4186,21 +4190,21 @@ } }, "node_modules/globby": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-14.1.0.tgz", - "integrity": "sha512-0Ia46fDOaT7k4og1PDW4YbodWWr3scS2vAr2lTbsplOt2WkKp0vQbkI9wKis/T5LV/dqPjO3bpS/z6GTJB82LA==", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-15.0.0.tgz", + "integrity": "sha512-oB4vkQGqlMl682wL1IlWd02tXCbquGWM4voPEI85QmNKCaw8zGTm1f1rubFgkg3Eli2PtKlFgrnmUqasbQWlkw==", "dev": true, "license": "MIT", "dependencies": { - "@sindresorhus/merge-streams": "^2.1.0", + "@sindresorhus/merge-streams": "^4.0.0", "fast-glob": "^3.3.3", - "ignore": "^7.0.3", + "ignore": "^7.0.5", "path-type": "^6.0.0", "slash": "^5.1.0", "unicorn-magic": "^0.3.0" }, "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4376,9 +4380,9 @@ } }, "node_modules/ignore": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.3.tgz", - "integrity": "sha512-bAH5jbK/F3T3Jls4I0SO1hmPR0dKU0a7+SY6n1yzRtG54FLO8d6w/nxLFX2Nb7dBu6cCWXPaAME6cYqFUMmuCA==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, "license": "MIT", "engines": { @@ -4904,9 +4908,10 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -5069,15 +5074,15 @@ } }, "node_modules/magicast": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz", - "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.1.tgz", + "integrity": "sha512-xrHS24IxaLrvuo613F719wvOIv9xPHFWQHuvGUBmPnCA/3MQxKI3b+r7n1jAoDHmsbC5bRhTZYR77invLAxVnw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.25.4", - "@babel/types": "^7.25.4", - "source-map-js": "^1.2.0" + "@babel/parser": "^7.28.5", + "@babel/types": "^7.28.5", + "source-map-js": "^1.2.1" } }, "node_modules/make-dir": { @@ -5211,112 +5216,18 @@ } }, "node_modules/minizlib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz", - "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", "dev": true, "license": "MIT", "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" + "minipass": "^7.1.2" }, "engines": { "node": ">= 18" } }, - "node_modules/minizlib/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minizlib/node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/minizlib/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/minizlib/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minizlib/node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minizlib/node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/mkdirp": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", @@ -6067,9 +5978,9 @@ } }, "node_modules/rollup": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.5.tgz", - "integrity": "sha512-3GuObel8h7Kqdjt0gxkEzaifHTqLVW56Y/bjN7PSQtkKr0w3V/QYSdt6QWYtd7A1xUtYQigtdUfgj1RvWVtorw==", + "version": "4.53.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.2.tgz", + "integrity": "sha512-MHngMYwGJVi6Fmnk6ISmnk7JAHRNF0UkuucA0CUW3N3a4KnONPEZz+vUanQP/ZC/iY1Qkf3bwPWzyY84wEks1g==", "dev": true, "license": "MIT", "dependencies": { @@ -6083,28 +5994,28 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.52.5", - "@rollup/rollup-android-arm64": "4.52.5", - "@rollup/rollup-darwin-arm64": "4.52.5", - "@rollup/rollup-darwin-x64": "4.52.5", - "@rollup/rollup-freebsd-arm64": "4.52.5", - "@rollup/rollup-freebsd-x64": "4.52.5", - "@rollup/rollup-linux-arm-gnueabihf": "4.52.5", - "@rollup/rollup-linux-arm-musleabihf": "4.52.5", - "@rollup/rollup-linux-arm64-gnu": "4.52.5", - "@rollup/rollup-linux-arm64-musl": "4.52.5", - "@rollup/rollup-linux-loong64-gnu": "4.52.5", - "@rollup/rollup-linux-ppc64-gnu": "4.52.5", - "@rollup/rollup-linux-riscv64-gnu": "4.52.5", - "@rollup/rollup-linux-riscv64-musl": "4.52.5", - "@rollup/rollup-linux-s390x-gnu": "4.52.5", - "@rollup/rollup-linux-x64-gnu": "4.52.5", - "@rollup/rollup-linux-x64-musl": "4.52.5", - "@rollup/rollup-openharmony-arm64": "4.52.5", - "@rollup/rollup-win32-arm64-msvc": "4.52.5", - "@rollup/rollup-win32-ia32-msvc": "4.52.5", - "@rollup/rollup-win32-x64-gnu": "4.52.5", - "@rollup/rollup-win32-x64-msvc": "4.52.5", + "@rollup/rollup-android-arm-eabi": "4.53.2", + "@rollup/rollup-android-arm64": "4.53.2", + "@rollup/rollup-darwin-arm64": "4.53.2", + "@rollup/rollup-darwin-x64": "4.53.2", + "@rollup/rollup-freebsd-arm64": "4.53.2", + "@rollup/rollup-freebsd-x64": "4.53.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.53.2", + "@rollup/rollup-linux-arm-musleabihf": "4.53.2", + "@rollup/rollup-linux-arm64-gnu": "4.53.2", + "@rollup/rollup-linux-arm64-musl": "4.53.2", + "@rollup/rollup-linux-loong64-gnu": "4.53.2", + "@rollup/rollup-linux-ppc64-gnu": "4.53.2", + "@rollup/rollup-linux-riscv64-gnu": "4.53.2", + "@rollup/rollup-linux-riscv64-musl": "4.53.2", + "@rollup/rollup-linux-s390x-gnu": "4.53.2", + "@rollup/rollup-linux-x64-gnu": "4.53.2", + "@rollup/rollup-linux-x64-musl": "4.53.2", + "@rollup/rollup-openharmony-arm64": "4.53.2", + "@rollup/rollup-win32-arm64-msvc": "4.53.2", + "@rollup/rollup-win32-ia32-msvc": "4.53.2", + "@rollup/rollup-win32-x64-gnu": "4.53.2", + "@rollup/rollup-win32-x64-msvc": "4.53.2", "fsevents": "~2.3.2" } }, @@ -6209,11 +6120,11 @@ "license": "MIT" }, "node_modules/sax": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", - "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.3.tgz", + "integrity": "sha512-yqYn1JhPczigF94DMS+shiDMjDowYO6y9+wB/4WgO0Y19jWYk0lQ4tuG5KI7kj4FTp1wxPj5IFfcrz/s1c3jjQ==", "dev": true, - "license": "ISC" + "license": "BlueOak-1.0.0" }, "node_modules/semver": { "version": "7.7.2", @@ -6665,39 +6576,22 @@ } }, "node_modules/tar": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", - "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz", + "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", "minipass": "^7.1.2", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", + "minizlib": "^3.1.0", "yallist": "^5.0.0" }, "engines": { "node": ">=18" } }, - "node_modules/tar/node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/tar/node_modules/yallist": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", @@ -7064,9 +6958,9 @@ } }, "node_modules/vite": { - "version": "7.1.12", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.12.tgz", - "integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.2.tgz", + "integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==", "dev": true, "license": "MIT", "dependencies": { @@ -7170,26 +7064,26 @@ } }, "node_modules/vitest": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.0.5.tgz", - "integrity": "sha512-4H+J28MI5oeYgGg3h5BFSkQ1g/2GKK1IR8oorH3a6EQQbb7CwjbnyBjH4PGxw9/6vpwAPNzaeUMp4Js4WJmdXQ==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.0.8.tgz", + "integrity": "sha512-urzu3NCEV0Qa0Y2PwvBtRgmNtxhj5t5ULw7cuKhIHh3OrkKTLlut0lnBOv9qe5OvbkMH2g38G7KPDCTpIytBVg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "4.0.5", - "@vitest/mocker": "4.0.5", - "@vitest/pretty-format": "4.0.5", - "@vitest/runner": "4.0.5", - "@vitest/snapshot": "4.0.5", - "@vitest/spy": "4.0.5", - "@vitest/utils": "4.0.5", + "@vitest/expect": "4.0.8", + "@vitest/mocker": "4.0.8", + "@vitest/pretty-format": "4.0.8", + "@vitest/runner": "4.0.8", + "@vitest/snapshot": "4.0.8", + "@vitest/spy": "4.0.8", + "@vitest/utils": "4.0.8", "debug": "^4.4.3", "es-module-lexer": "^1.7.0", "expect-type": "^1.2.2", - "magic-string": "^0.30.19", + "magic-string": "^0.30.21", "pathe": "^2.0.3", "picomatch": "^4.0.3", - "std-env": "^3.9.0", + "std-env": "^3.10.0", "tinybench": "^2.9.0", "tinyexec": "^0.3.2", "tinyglobby": "^0.2.15", @@ -7210,10 +7104,10 @@ "@edge-runtime/vm": "*", "@types/debug": "^4.1.12", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "4.0.5", - "@vitest/browser-preview": "4.0.5", - "@vitest/browser-webdriverio": "4.0.5", - "@vitest/ui": "4.0.5", + "@vitest/browser-playwright": "4.0.8", + "@vitest/browser-preview": "4.0.8", + "@vitest/browser-webdriverio": "4.0.8", + "@vitest/ui": "4.0.8", "happy-dom": "*", "jsdom": "*" }, diff --git a/packages/http-client-java/package.json b/packages/http-client-java/package.json index 9d6e1637180..b2036796555 100644 --- a/packages/http-client-java/package.json +++ b/packages/http-client-java/package.json @@ -1,6 +1,6 @@ { "name": "@typespec/http-client-java", - "version": "0.5.0", + "version": "0.5.1", "description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding", "keywords": [ "TypeSpec" @@ -49,51 +49,51 @@ "generator/http-client-generator/target/classes/PerfAutomation.jfc" ], "peerDependencies": { - "@azure-tools/typespec-autorest": ">=0.61.1 <1.0.0", - "@azure-tools/typespec-azure-core": ">=0.61.0 <1.0.0", - "@azure-tools/typespec-azure-resource-manager": ">=0.61.1 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.61.3 <1.0.0", - "@typespec/compiler": "^1.5.0", - "@typespec/events": ">=0.75.0 <1.0.0", - "@typespec/http": "^1.5.0", - "@typespec/openapi": "^1.5.0", - "@typespec/rest": ">=0.75.0 <1.0.0", - "@typespec/sse": ">=0.75.0 <1.0.0", - "@typespec/streams": ">=0.75.0 <1.0.0", - "@typespec/versioning": ">=0.75.0 <1.0.0", - "@typespec/xml": ">=0.75.0 <1.0.0" + "@azure-tools/typespec-autorest": ">=0.62.0 <1.0.0", + "@azure-tools/typespec-azure-core": ">=0.62.0 <1.0.0", + "@azure-tools/typespec-azure-resource-manager": ">=0.62.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.62.0 <1.0.0", + "@typespec/compiler": "^1.6.0", + "@typespec/events": ">=0.76.0 <1.0.0", + "@typespec/http": "^1.6.0", + "@typespec/openapi": "^1.6.0", + "@typespec/rest": ">=0.76.0 <1.0.0", + "@typespec/sse": ">=0.76.0 <1.0.0", + "@typespec/streams": ">=0.76.0 <1.0.0", + "@typespec/versioning": ">=0.76.0 <1.0.0", + "@typespec/xml": ">=0.76.0 <1.0.0" }, "dependencies": { "@autorest/codemodel": "~4.20.1", - "js-yaml": "~4.1.0", + "js-yaml": "~4.1.1", "lodash": "~4.17.21" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.61.1", - "@azure-tools/typespec-azure-core": "0.61.0", - "@azure-tools/typespec-azure-resource-manager": "0.61.1", - "@azure-tools/typespec-azure-rulesets": "0.61.0", - "@azure-tools/typespec-client-generator-core": "0.61.3", - "@microsoft/api-extractor": "^7.53.3", - "@microsoft/api-extractor-model": "^7.31.3", + "@azure-tools/typespec-autorest": "0.62.0", + "@azure-tools/typespec-azure-core": "0.62.0", + "@azure-tools/typespec-azure-resource-manager": "0.62.0", + "@azure-tools/typespec-azure-rulesets": "0.62.0", + "@azure-tools/typespec-client-generator-core": "0.62.0", + "@microsoft/api-extractor": "^7.55.0", + "@microsoft/api-extractor-model": "^7.32.0", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.20", - "@types/node": "~24.9.2", - "@typespec/compiler": "1.5.0", - "@typespec/events": "0.75.0", - "@typespec/http": "1.5.0", - "@typespec/openapi": "1.5.0", - "@typespec/rest": "0.75.0", - "@typespec/spector": "0.1.0-alpha.19", - "@typespec/sse": "0.75.0", - "@typespec/streams": "0.75.0", - "@typespec/versioning": "0.75.0", - "@typespec/xml": "0.75.0", - "@vitest/coverage-v8": "^4.0.5", - "@vitest/ui": "^4.0.5", + "@types/node": "~24.10.1", + "@typespec/compiler": "1.6.0", + "@typespec/events": "0.76.0", + "@typespec/http": "1.6.0", + "@typespec/openapi": "1.6.0", + "@typespec/rest": "0.76.0", + "@typespec/spector": "0.1.0-alpha.20", + "@typespec/sse": "0.76.0", + "@typespec/streams": "0.76.0", + "@typespec/versioning": "0.76.0", + "@typespec/xml": "0.76.0", + "@vitest/coverage-v8": "^4.0.8", + "@vitest/ui": "^4.0.8", "c8": "~10.1.3", "rimraf": "~6.1.0", "typescript": "~5.9.3", - "vitest": "^4.0.5" + "vitest": "^4.0.8" } }