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 649091a54ae..c11c0a1a842 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.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.6.0.tgz", + "@typespec/spector": "0.1.0-alpha.21", + "@typespec/spec-api": "0.1.0-alpha.11", + "@typespec/http-specs": "0.1.0-alpha.29", + "@typespec/json-schema": "1.7.0", + "@typespec/http-client-java": "file:../../typespec-http-client-java-0.6.1.tgz", "@typespec/http-client-java-tests": "file:" }, "overrides": { - "@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.1", - "@azure-tools/typespec-autorest": "0.62.0" + "@typespec/compiler": "1.7.0", + "@typespec/http": "1.7.0", + "@typespec/rest": "0.77.0", + "@typespec/versioning": "0.77.0", + "@typespec/openapi": "1.7.0", + "@typespec/xml": "0.77.0", + "@typespec/events": "0.77.0", + "@typespec/sse": "0.77.0", + "@typespec/streams": "0.77.0", + "@azure-tools/typespec-azure-core": "0.63.0", + "@azure-tools/typespec-client-generator-core": "0.63.0", + "@azure-tools/typespec-azure-resource-manager": "0.63.0", + "@azure-tools/typespec-autorest": "0.63.0" }, "private": true } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/DocumentationClientBuilder.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/DocumentationClientBuilder.java new file mode 100644 index 00000000000..b7f23508991 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/DocumentationClientBuilder.java @@ -0,0 +1,249 @@ +package documentation; + +import documentation.implementation.DocumentationClientImpl; +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.annotations.ServiceClientBuilder; +import io.clientcore.core.http.client.HttpClient; +import io.clientcore.core.http.models.ProxyOptions; +import io.clientcore.core.http.pipeline.HttpInstrumentationOptions; +import io.clientcore.core.http.pipeline.HttpInstrumentationPolicy; +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.http.pipeline.HttpPipelineBuilder; +import io.clientcore.core.http.pipeline.HttpPipelinePolicy; +import io.clientcore.core.http.pipeline.HttpRedirectOptions; +import io.clientcore.core.http.pipeline.HttpRedirectPolicy; +import io.clientcore.core.http.pipeline.HttpRetryOptions; +import io.clientcore.core.http.pipeline.HttpRetryPolicy; +import io.clientcore.core.instrumentation.Instrumentation; +import io.clientcore.core.instrumentation.SdkInstrumentationOptions; +import io.clientcore.core.traits.ConfigurationTrait; +import io.clientcore.core.traits.EndpointTrait; +import io.clientcore.core.traits.HttpTrait; +import io.clientcore.core.traits.ProxyTrait; +import io.clientcore.core.utils.CoreUtils; +import io.clientcore.core.utils.configuration.Configuration; +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 DocumentationClient type. + */ +@ServiceClientBuilder(serviceClients = { ListsClient.class, TextFormattingClient.class }) +public final class DocumentationClientBuilder + implements HttpTrait, ProxyTrait, + ConfigurationTrait, EndpointTrait { + @Metadata(properties = { MetadataProperties.GENERATED }) + private static final String SDK_NAME = "name"; + + @Metadata(properties = { MetadataProperties.GENERATED }) + private static final String SDK_VERSION = "version"; + + @Metadata(properties = { MetadataProperties.GENERATED }) + private static final Map PROPERTIES = CoreUtils.getProperties("documentation.properties"); + + @Metadata(properties = { MetadataProperties.GENERATED }) + private final List pipelinePolicies; + + /** + * Create an instance of the DocumentationClientBuilder. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public DocumentationClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP client used to send the request. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpClient httpClient; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The retry options to configure retry policy for failed requests. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpRetryOptions retryOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder httpRetryOptions(HttpRetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder addHttpPipelinePolicy(HttpPipelinePolicy customPolicy) { + Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null."); + pipelinePolicies.add(customPolicy); + return this; + } + + /* + * The redirect options to configure redirect policy + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpRedirectOptions redirectOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder httpRedirectOptions(HttpRedirectOptions redirectOptions) { + this.redirectOptions = redirectOptions; + return this; + } + + /* + * The instrumentation configuration for HTTP requests and responses. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpInstrumentationOptions httpInstrumentationOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder + httpInstrumentationOptions(HttpInstrumentationOptions httpInstrumentationOptions) { + this.httpInstrumentationOptions = httpInstrumentationOptions; + return this; + } + + /* + * The proxy options used during construction of the service client. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private ProxyOptions proxyOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder proxyOptions(ProxyOptions proxyOptions) { + this.proxyOptions = proxyOptions; + return this; + } + + /* + * The configuration store that is used during construction of the service client. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private Configuration configuration; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The service endpoint + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private String endpoint; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public DocumentationClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Builds an instance of DocumentationClientImpl with the provided parameters. + * + * @return an instance of DocumentationClientImpl. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private DocumentationClientImpl buildInnerClient() { + this.validateClient(); + String localEndpoint = (endpoint != null) ? endpoint : "http://localhost:3000"; + HttpInstrumentationOptions localHttpInstrumentationOptions = this.httpInstrumentationOptions == null + ? new HttpInstrumentationOptions() + : this.httpInstrumentationOptions; + SdkInstrumentationOptions sdkInstrumentationOptions + = new SdkInstrumentationOptions(PROPERTIES.getOrDefault(SDK_NAME, "UnknownName")) + .setSdkVersion(PROPERTIES.get(SDK_VERSION)) + .setEndpoint(localEndpoint); + Instrumentation instrumentation + = Instrumentation.create(localHttpInstrumentationOptions, sdkInstrumentationOptions); + DocumentationClientImpl client + = new DocumentationClientImpl(createHttpPipeline(), instrumentation, localEndpoint); + return client; + } + + @Metadata(properties = { MetadataProperties.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. + } + + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpPipeline createHttpPipeline() { + Configuration buildConfiguration + = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; + HttpInstrumentationOptions localHttpInstrumentationOptions = this.httpInstrumentationOptions == null + ? new HttpInstrumentationOptions() + : this.httpInstrumentationOptions; + HttpPipelineBuilder httpPipelineBuilder = new HttpPipelineBuilder(); + List policies = new ArrayList<>(); + policies.add(redirectOptions == null ? new HttpRedirectPolicy() : new HttpRedirectPolicy(redirectOptions)); + policies.add(retryOptions == null ? new HttpRetryPolicy() : new HttpRetryPolicy(retryOptions)); + this.pipelinePolicies.stream().forEach(p -> policies.add(p)); + policies.add(new HttpInstrumentationPolicy(localHttpInstrumentationOptions)); + policies.forEach(httpPipelineBuilder::addPolicy); + return httpPipelineBuilder.httpClient(httpClient).build(); + } + + /** + * Builds an instance of ListsClient class. + * + * @return an instance of ListsClient. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public ListsClient buildListsClient() { + DocumentationClientImpl innerClient = buildInnerClient(); + return new ListsClient(innerClient.getLists(), innerClient.getInstrumentation()); + } + + /** + * Builds an instance of TextFormattingClient class. + * + * @return an instance of TextFormattingClient. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public TextFormattingClient buildTextFormattingClient() { + DocumentationClientImpl innerClient = buildInnerClient(); + return new TextFormattingClient(innerClient.getTextFormattings(), innerClient.getInstrumentation()); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/ListsClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/ListsClient.java new file mode 100644 index 00000000000..9beabb61a6a --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/ListsClient.java @@ -0,0 +1,155 @@ +package documentation; + +import documentation.implementation.ListsImpl; +import documentation.lists.BulletPointsModel; +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.annotations.ReturnType; +import io.clientcore.core.annotations.ServiceClient; +import io.clientcore.core.annotations.ServiceMethod; +import io.clientcore.core.http.models.HttpResponseException; +import io.clientcore.core.http.models.RequestContext; +import io.clientcore.core.http.models.Response; +import io.clientcore.core.instrumentation.Instrumentation; + +/** + * Initializes a new instance of the synchronous DocumentationClient type. + */ +@ServiceClient(builder = DocumentationClientBuilder.class) +public final class ListsClient { + @Metadata(properties = { MetadataProperties.GENERATED }) + private final ListsImpl serviceClient; + + private final Instrumentation instrumentation; + + /** + * Initializes an instance of ListsClient class. + * + * @param serviceClient the service client implementation. + * @param instrumentation the instrumentation instance. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + ListsClient(ListsImpl serviceClient, Instrumentation instrumentation) { + this.serviceClient = serviceClient; + this.instrumentation = instrumentation; + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response bulletPointsOpWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.Lists.bulletPointsOp", requestContext, + updatedContext -> this.serviceClient.bulletPointsOpWithResponse(updatedContext)); + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 bulletPointsOp() { + bulletPointsOpWithResponse(RequestContext.none()); + } + + /** + * The bulletPointsModel 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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response bulletPointsModelWithResponse(BulletPointsModel input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.Lists.bulletPointsModel", requestContext, + updatedContext -> this.serviceClient.bulletPointsModelWithResponse(input, updatedContext)); + } + + /** + * The bulletPointsModel 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 bulletPointsModel(BulletPointsModel input) { + bulletPointsModelWithResponse(input, RequestContext.none()); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response numberedWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.Lists.numbered", requestContext, + updatedContext -> this.serviceClient.numberedWithResponse(updatedContext)); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 numbered() { + numberedWithResponse(RequestContext.none()); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/TextFormattingClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/TextFormattingClient.java new file mode 100644 index 00000000000..efaffa55e63 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/TextFormattingClient.java @@ -0,0 +1,133 @@ +package documentation; + +import documentation.implementation.TextFormattingsImpl; +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.annotations.ReturnType; +import io.clientcore.core.annotations.ServiceClient; +import io.clientcore.core.annotations.ServiceMethod; +import io.clientcore.core.http.models.HttpResponseException; +import io.clientcore.core.http.models.RequestContext; +import io.clientcore.core.http.models.Response; +import io.clientcore.core.instrumentation.Instrumentation; + +/** + * Initializes a new instance of the synchronous DocumentationClient type. + */ +@ServiceClient(builder = DocumentationClientBuilder.class) +public final class TextFormattingClient { + @Metadata(properties = { MetadataProperties.GENERATED }) + private final TextFormattingsImpl serviceClient; + + private final Instrumentation instrumentation; + + /** + * Initializes an instance of TextFormattingClient class. + * + * @param serviceClient the service client implementation. + * @param instrumentation the instrumentation instance. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + TextFormattingClient(TextFormattingsImpl serviceClient, Instrumentation instrumentation) { + this.serviceClient = serviceClient; + this.instrumentation = instrumentation; + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response boldTextWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.TextFormatting.boldText", requestContext, + updatedContext -> this.serviceClient.boldTextWithResponse(updatedContext)); + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 boldText() { + boldTextWithResponse(RequestContext.none()); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response italicTextWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.TextFormatting.italicText", requestContext, + updatedContext -> this.serviceClient.italicTextWithResponse(updatedContext)); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 italicText() { + italicTextWithResponse(RequestContext.none()); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response combinedFormattingWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.TextFormatting.combinedFormatting", + requestContext, updatedContext -> this.serviceClient.combinedFormattingWithResponse(updatedContext)); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 combinedFormatting() { + combinedFormattingWithResponse(RequestContext.none()); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/DocumentationClientImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/DocumentationClientImpl.java new file mode 100644 index 00000000000..e65576af6fb --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/DocumentationClientImpl.java @@ -0,0 +1,94 @@ +package documentation.implementation; + +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.instrumentation.Instrumentation; + +/** + * Initializes a new instance of the DocumentationClient type. + */ +public final class DocumentationClientImpl { + /** + * 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 instance of instrumentation to report telemetry. + */ + private final Instrumentation instrumentation; + + /** + * Gets The instance of instrumentation to report telemetry. + * + * @return the instrumentation value. + */ + public Instrumentation getInstrumentation() { + return this.instrumentation; + } + + /** + * The ListsImpl object to access its operations. + */ + private final ListsImpl lists; + + /** + * Gets the ListsImpl object to access its operations. + * + * @return the ListsImpl object. + */ + public ListsImpl getLists() { + return this.lists; + } + + /** + * The TextFormattingsImpl object to access its operations. + */ + private final TextFormattingsImpl textFormattings; + + /** + * Gets the TextFormattingsImpl object to access its operations. + * + * @return the TextFormattingsImpl object. + */ + public TextFormattingsImpl getTextFormattings() { + return this.textFormattings; + } + + /** + * Initializes an instance of DocumentationClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param instrumentation The instance of instrumentation to report telemetry. + * @param endpoint Service host. + */ + public DocumentationClientImpl(HttpPipeline httpPipeline, Instrumentation instrumentation, String endpoint) { + this.httpPipeline = httpPipeline; + this.instrumentation = instrumentation; + this.endpoint = endpoint; + this.lists = new ListsImpl(this); + this.textFormattings = new TextFormattingsImpl(this); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/ListsImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/ListsImpl.java new file mode 100644 index 00000000000..d10752503fe --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/ListsImpl.java @@ -0,0 +1,163 @@ +package documentation.implementation; + +import documentation.lists.BulletPointsModel; +import documentation.lists.implementation.BulletPointsModelRequest; +import io.clientcore.core.annotations.ReturnType; +import io.clientcore.core.annotations.ServiceInterface; +import io.clientcore.core.annotations.ServiceMethod; +import io.clientcore.core.http.annotations.BodyParam; +import io.clientcore.core.http.annotations.HeaderParam; +import io.clientcore.core.http.annotations.HostParam; +import io.clientcore.core.http.annotations.HttpRequestInformation; +import io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail; +import io.clientcore.core.http.models.HttpMethod; +import io.clientcore.core.http.models.HttpResponseException; +import io.clientcore.core.http.models.RequestContext; +import io.clientcore.core.http.models.Response; +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.instrumentation.Instrumentation; +import java.lang.reflect.InvocationTargetException; + +/** + * An instance of this class provides access to all the operations defined in Lists. + */ +public final class ListsImpl { + /** + * The proxy service used to perform REST calls. + */ + private final ListsService service; + + /** + * The service client containing this operation class. + */ + private final DocumentationClientImpl client; + + /** + * The instance of instrumentation to report telemetry. + */ + private final Instrumentation instrumentation; + + /** + * Initializes an instance of ListsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ListsImpl(DocumentationClientImpl client) { + this.service = ListsService.getNewInstance(client.getHttpPipeline()); + this.client = client; + this.instrumentation = client.getInstrumentation(); + } + + /** + * The interface defining all the services for DocumentationClientLists to be used by the proxy service to perform + * REST calls. + */ + @ServiceInterface(name = "DocumentationClientLists", host = "{endpoint}") + public interface ListsService { + static ListsService getNewInstance(HttpPipeline pipeline) { + try { + Class clazz = Class.forName("documentation.implementation.ListsServiceImpl"); + return (ListsService) clazz.getMethod("getNewInstance", HttpPipeline.class).invoke(null, pipeline); + } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException + | InvocationTargetException e) { + throw new RuntimeException(e); + } + + } + + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/documentation/lists/bullet-points/op", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response bulletPointsOp(@HostParam("endpoint") String endpoint, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/documentation/lists/bullet-points/model", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response bulletPointsModel(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BulletPointsModelRequest bulletPointsModelRequest, + RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/documentation/lists/numbered", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response numbered(@HostParam("endpoint") String endpoint, RequestContext requestContext); + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response bulletPointsOpWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.Lists.bulletPointsOp", requestContext, + updatedContext -> { + return service.bulletPointsOp(this.client.getEndpoint(), updatedContext); + }); + } + + /** + * The bulletPointsModel 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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response bulletPointsModelWithResponse(BulletPointsModel input, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.Lists.bulletPointsModel", requestContext, + updatedContext -> { + final String contentType = "application/json"; + BulletPointsModelRequest bulletPointsModelRequest = new BulletPointsModelRequest(input); + return service.bulletPointsModel(this.client.getEndpoint(), contentType, bulletPointsModelRequest, + updatedContext); + }); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response numberedWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.Lists.numbered", requestContext, + updatedContext -> { + return service.numbered(this.client.getEndpoint(), updatedContext); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/TextFormattingsImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/TextFormattingsImpl.java new file mode 100644 index 00000000000..3b3076f04f9 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/TextFormattingsImpl.java @@ -0,0 +1,144 @@ +package documentation.implementation; + +import io.clientcore.core.annotations.ReturnType; +import io.clientcore.core.annotations.ServiceInterface; +import io.clientcore.core.annotations.ServiceMethod; +import io.clientcore.core.http.annotations.HostParam; +import io.clientcore.core.http.annotations.HttpRequestInformation; +import io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail; +import io.clientcore.core.http.models.HttpMethod; +import io.clientcore.core.http.models.HttpResponseException; +import io.clientcore.core.http.models.RequestContext; +import io.clientcore.core.http.models.Response; +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.instrumentation.Instrumentation; +import java.lang.reflect.InvocationTargetException; + +/** + * An instance of this class provides access to all the operations defined in TextFormattings. + */ +public final class TextFormattingsImpl { + /** + * The proxy service used to perform REST calls. + */ + private final TextFormattingsService service; + + /** + * The service client containing this operation class. + */ + private final DocumentationClientImpl client; + + /** + * The instance of instrumentation to report telemetry. + */ + private final Instrumentation instrumentation; + + /** + * Initializes an instance of TextFormattingsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + TextFormattingsImpl(DocumentationClientImpl client) { + this.service = TextFormattingsService.getNewInstance(client.getHttpPipeline()); + this.client = client; + this.instrumentation = client.getInstrumentation(); + } + + /** + * The interface defining all the services for DocumentationClientTextFormattings to be used by the proxy service to + * perform REST calls. + */ + @ServiceInterface(name = "DocumentationClientTextFormattings", host = "{endpoint}") + public interface TextFormattingsService { + static TextFormattingsService getNewInstance(HttpPipeline pipeline) { + try { + Class clazz = Class.forName("documentation.implementation.TextFormattingsServiceImpl"); + return (TextFormattingsService) clazz.getMethod("getNewInstance", HttpPipeline.class) + .invoke(null, pipeline); + } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException + | InvocationTargetException e) { + throw new RuntimeException(e); + } + + } + + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/documentation/text-formatting/bold", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response boldText(@HostParam("endpoint") String endpoint, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/documentation/text-formatting/italic", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response italicText(@HostParam("endpoint") String endpoint, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.GET, + path = "/documentation/text-formatting/combined", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response combinedFormatting(@HostParam("endpoint") String endpoint, RequestContext requestContext); + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response boldTextWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.TextFormatting.boldText", requestContext, + updatedContext -> { + return service.boldText(this.client.getEndpoint(), updatedContext); + }); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response italicTextWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.TextFormatting.italicText", requestContext, + updatedContext -> { + return service.italicText(this.client.getEndpoint(), updatedContext); + }); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response combinedFormattingWithResponse(RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Documentation.TextFormatting.combinedFormatting", + requestContext, updatedContext -> { + return service.combinedFormatting(this.client.getEndpoint(), updatedContext); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/package-info.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/package-info.java new file mode 100644 index 00000000000..9c2d02632a3 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/implementation/package-info.java @@ -0,0 +1,5 @@ +/** + * Package containing the implementations for Documentation. + * Illustrates documentation generation and formatting features. + */ +package documentation.implementation; diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/BulletPointsEnum.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/BulletPointsEnum.java new file mode 100644 index 00000000000..e4bc0c552db --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/BulletPointsEnum.java @@ -0,0 +1,85 @@ +package documentation.lists; + +/** + * This tests really long bullet points in enum documentation to see how wrapping and formatting are handled. This + * should wrap around correctly and maintain proper indentation for each line. + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the + * bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + */ +public enum BulletPointsEnum { + /** + * Simple bullet point. This line is intentionally long to test text wrapping in bullet points within enum + * documentation comments. It should properly indent the wrapped lines. + * - One: one. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + * - Two: two. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + */ + SIMPLE("Simple"), + + /** + * Bullet point with **bold text**. This line is intentionally long to test text wrapping in bullet points within + * enum documentation comments. It should properly indent the wrapped lines. + * - **One**: one. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + * - **Two**: two. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + */ + BOLD("Bold"), + + /** + * Bullet point with *italic text*. This line is intentionally long to test text wrapping in bullet points within + * enum documentation comments. It should properly indent the wrapped lines. + * - *One*: one. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + * - *Two*: two. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + */ + ITALIC("Italic"); + + /** + * The actual serialized value for a BulletPointsEnum instance. + */ + private final String value; + + BulletPointsEnum(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a BulletPointsEnum instance. + * + * @param value the serialized value to parse. + * @return the parsed BulletPointsEnum object, or null if unable to parse. + */ + public static BulletPointsEnum fromString(String value) { + if (value == null) { + return null; + } + BulletPointsEnum[] items = BulletPointsEnum.values(); + for (BulletPointsEnum item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return this.value; + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/BulletPointsModel.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/BulletPointsModel.java new file mode 100644 index 00000000000..d16d55ea88c --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/BulletPointsModel.java @@ -0,0 +1,113 @@ +package documentation.lists; + +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; + +/** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the + * bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class BulletPointsModel implements JsonSerializable { + /* + * This property uses an enum with bullet point documentation. The enum documentation includes various formatting + * styles to test rendering. The styles are: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple + * - Bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point** + * - *Italic bullet point* + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final BulletPointsEnum prop; + + /** + * Creates an instance of BulletPointsModel class. + * + * @param prop the prop value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public BulletPointsModel(BulletPointsEnum prop) { + this.prop = prop; + } + + /** + * Get the prop property: This property uses an enum with bullet point documentation. The enum documentation + * includes various formatting styles to test rendering. The styles are: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple + * - Bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point** + * - *Italic bullet point*. + * + * @return the prop value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public BulletPointsEnum getProp() { + return this.prop; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("prop", this.prop == null ? null : this.prop.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BulletPointsModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BulletPointsModel 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 BulletPointsModel. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static BulletPointsModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BulletPointsEnum prop = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("prop".equals(fieldName)) { + prop = BulletPointsEnum.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + return new BulletPointsModel(prop); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/implementation/BulletPointsModelRequest.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/implementation/BulletPointsModelRequest.java new file mode 100644 index 00000000000..6cc38d35fd8 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/implementation/BulletPointsModelRequest.java @@ -0,0 +1,80 @@ +package documentation.lists.implementation; + +import documentation.lists.BulletPointsModel; +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 BulletPointsModelRequest model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class BulletPointsModelRequest implements JsonSerializable { + /* + * The input property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final BulletPointsModel input; + + /** + * Creates an instance of BulletPointsModelRequest class. + * + * @param input the input value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public BulletPointsModelRequest(BulletPointsModel input) { + this.input = input; + } + + /** + * Get the input property: The input property. + * + * @return the input value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public BulletPointsModel getInput() { + return this.input; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("input", this.input); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BulletPointsModelRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BulletPointsModelRequest 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 BulletPointsModelRequest. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static BulletPointsModelRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BulletPointsModel input = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("input".equals(fieldName)) { + input = BulletPointsModel.fromJson(reader); + } else { + reader.skipChildren(); + } + } + return new BulletPointsModelRequest(input); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/implementation/package-info.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/implementation/package-info.java new file mode 100644 index 00000000000..8a392f51cdb --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/implementation/package-info.java @@ -0,0 +1,5 @@ +/** + * Package containing the data models for Documentation. + * Illustrates documentation generation and formatting features. + */ +package documentation.lists.implementation; diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/package-info.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/package-info.java new file mode 100644 index 00000000000..fc9c8edd3c5 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/lists/package-info.java @@ -0,0 +1,5 @@ +/** + * Package containing the data models for Documentation. + * Illustrates documentation generation and formatting features. + */ +package documentation.lists; diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/package-info.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/package-info.java new file mode 100644 index 00000000000..c26939e1ae5 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/documentation/package-info.java @@ -0,0 +1,5 @@ +/** + * Package containing the classes for Documentation. + * Illustrates documentation generation and formatting features. + */ +package documentation; diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/ArrayClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/ArrayClient.java new file mode 100644 index 00000000000..98178901867 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/ArrayClient.java @@ -0,0 +1,167 @@ +package encode.array; + +import encode.array.implementation.PropertiesImpl; +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.annotations.ReturnType; +import io.clientcore.core.annotations.ServiceClient; +import io.clientcore.core.annotations.ServiceMethod; +import io.clientcore.core.http.models.HttpResponseException; +import io.clientcore.core.http.models.RequestContext; +import io.clientcore.core.http.models.Response; +import io.clientcore.core.instrumentation.Instrumentation; + +/** + * Initializes a new instance of the synchronous ArrayClient type. + */ +@ServiceClient(builder = ArrayClientBuilder.class) +public final class ArrayClient { + @Metadata(properties = { MetadataProperties.GENERATED }) + private final PropertiesImpl serviceClient; + + private final Instrumentation instrumentation; + + /** + * Initializes an instance of ArrayClient class. + * + * @param serviceClient the service client implementation. + * @param instrumentation the instrumentation instance. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + ArrayClient(PropertiesImpl serviceClient, Instrumentation instrumentation) { + this.serviceClient = serviceClient; + this.instrumentation = instrumentation; + } + + /** + * The commaDelimited 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 body along with {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response commaDelimitedWithResponse(CommaDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.commaDelimited", requestContext, + updatedContext -> this.serviceClient.commaDelimitedWithResponse(body, updatedContext)); + } + + /** + * The commaDelimited 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 CommaDelimitedArrayProperty commaDelimited(CommaDelimitedArrayProperty body) { + return commaDelimitedWithResponse(body, RequestContext.none()).getValue(); + } + + /** + * The spaceDelimited 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 body along with {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response spaceDelimitedWithResponse(SpaceDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.spaceDelimited", requestContext, + updatedContext -> this.serviceClient.spaceDelimitedWithResponse(body, updatedContext)); + } + + /** + * The spaceDelimited 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 SpaceDelimitedArrayProperty spaceDelimited(SpaceDelimitedArrayProperty body) { + return spaceDelimitedWithResponse(body, RequestContext.none()).getValue(); + } + + /** + * The pipeDelimited 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 body along with {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response pipeDelimitedWithResponse(PipeDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.pipeDelimited", requestContext, + updatedContext -> this.serviceClient.pipeDelimitedWithResponse(body, updatedContext)); + } + + /** + * The pipeDelimited 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 PipeDelimitedArrayProperty pipeDelimited(PipeDelimitedArrayProperty body) { + return pipeDelimitedWithResponse(body, RequestContext.none()).getValue(); + } + + /** + * The newlineDelimited 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 body along with {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response newlineDelimitedWithResponse(NewlineDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.newlineDelimited", requestContext, + updatedContext -> this.serviceClient.newlineDelimitedWithResponse(body, updatedContext)); + } + + /** + * The newlineDelimited 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 NewlineDelimitedArrayProperty newlineDelimited(NewlineDelimitedArrayProperty body) { + return newlineDelimitedWithResponse(body, RequestContext.none()).getValue(); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/ArrayClientBuilder.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/ArrayClientBuilder.java new file mode 100644 index 00000000000..7f91963354e --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/ArrayClientBuilder.java @@ -0,0 +1,235 @@ +package encode.array; + +import encode.array.implementation.ArrayClientImpl; +import io.clientcore.core.annotations.Metadata; +import io.clientcore.core.annotations.MetadataProperties; +import io.clientcore.core.annotations.ServiceClientBuilder; +import io.clientcore.core.http.client.HttpClient; +import io.clientcore.core.http.models.ProxyOptions; +import io.clientcore.core.http.pipeline.HttpInstrumentationOptions; +import io.clientcore.core.http.pipeline.HttpInstrumentationPolicy; +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.http.pipeline.HttpPipelineBuilder; +import io.clientcore.core.http.pipeline.HttpPipelinePolicy; +import io.clientcore.core.http.pipeline.HttpRedirectOptions; +import io.clientcore.core.http.pipeline.HttpRedirectPolicy; +import io.clientcore.core.http.pipeline.HttpRetryOptions; +import io.clientcore.core.http.pipeline.HttpRetryPolicy; +import io.clientcore.core.instrumentation.Instrumentation; +import io.clientcore.core.instrumentation.SdkInstrumentationOptions; +import io.clientcore.core.traits.ConfigurationTrait; +import io.clientcore.core.traits.EndpointTrait; +import io.clientcore.core.traits.HttpTrait; +import io.clientcore.core.traits.ProxyTrait; +import io.clientcore.core.utils.CoreUtils; +import io.clientcore.core.utils.configuration.Configuration; +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 ArrayClient type. + */ +@ServiceClientBuilder(serviceClients = { ArrayClient.class }) +public final class ArrayClientBuilder implements HttpTrait, ProxyTrait, + ConfigurationTrait, EndpointTrait { + @Metadata(properties = { MetadataProperties.GENERATED }) + private static final String SDK_NAME = "name"; + + @Metadata(properties = { MetadataProperties.GENERATED }) + private static final String SDK_VERSION = "version"; + + @Metadata(properties = { MetadataProperties.GENERATED }) + private static final Map PROPERTIES = CoreUtils.getProperties("encode-array.properties"); + + @Metadata(properties = { MetadataProperties.GENERATED }) + private final List pipelinePolicies; + + /** + * Create an instance of the ArrayClientBuilder. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public ArrayClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP client used to send the request. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpClient httpClient; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The retry options to configure retry policy for failed requests. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpRetryOptions retryOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder httpRetryOptions(HttpRetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder addHttpPipelinePolicy(HttpPipelinePolicy customPolicy) { + Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null."); + pipelinePolicies.add(customPolicy); + return this; + } + + /* + * The redirect options to configure redirect policy + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpRedirectOptions redirectOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder httpRedirectOptions(HttpRedirectOptions redirectOptions) { + this.redirectOptions = redirectOptions; + return this; + } + + /* + * The instrumentation configuration for HTTP requests and responses. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpInstrumentationOptions httpInstrumentationOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder httpInstrumentationOptions(HttpInstrumentationOptions httpInstrumentationOptions) { + this.httpInstrumentationOptions = httpInstrumentationOptions; + return this; + } + + /* + * The proxy options used during construction of the service client. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private ProxyOptions proxyOptions; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder proxyOptions(ProxyOptions proxyOptions) { + this.proxyOptions = proxyOptions; + return this; + } + + /* + * The configuration store that is used during construction of the service client. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private Configuration configuration; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The service endpoint + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private String endpoint; + + /** + * {@inheritDoc}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public ArrayClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Builds an instance of ArrayClientImpl with the provided parameters. + * + * @return an instance of ArrayClientImpl. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private ArrayClientImpl buildInnerClient() { + this.validateClient(); + String localEndpoint = (endpoint != null) ? endpoint : "http://localhost:3000"; + HttpInstrumentationOptions localHttpInstrumentationOptions = this.httpInstrumentationOptions == null + ? new HttpInstrumentationOptions() + : this.httpInstrumentationOptions; + SdkInstrumentationOptions sdkInstrumentationOptions + = new SdkInstrumentationOptions(PROPERTIES.getOrDefault(SDK_NAME, "UnknownName")) + .setSdkVersion(PROPERTIES.get(SDK_VERSION)) + .setEndpoint(localEndpoint); + Instrumentation instrumentation + = Instrumentation.create(localHttpInstrumentationOptions, sdkInstrumentationOptions); + ArrayClientImpl client = new ArrayClientImpl(createHttpPipeline(), instrumentation, localEndpoint); + return client; + } + + @Metadata(properties = { MetadataProperties.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. + } + + @Metadata(properties = { MetadataProperties.GENERATED }) + private HttpPipeline createHttpPipeline() { + Configuration buildConfiguration + = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; + HttpInstrumentationOptions localHttpInstrumentationOptions = this.httpInstrumentationOptions == null + ? new HttpInstrumentationOptions() + : this.httpInstrumentationOptions; + HttpPipelineBuilder httpPipelineBuilder = new HttpPipelineBuilder(); + List policies = new ArrayList<>(); + policies.add(redirectOptions == null ? new HttpRedirectPolicy() : new HttpRedirectPolicy(redirectOptions)); + policies.add(retryOptions == null ? new HttpRetryPolicy() : new HttpRetryPolicy(retryOptions)); + this.pipelinePolicies.stream().forEach(p -> policies.add(p)); + policies.add(new HttpInstrumentationPolicy(localHttpInstrumentationOptions)); + policies.forEach(httpPipelineBuilder::addPolicy); + return httpPipelineBuilder.httpClient(httpClient).build(); + } + + /** + * Builds an instance of ArrayClient class. + * + * @return an instance of ArrayClient. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public ArrayClient buildArrayClient() { + ArrayClientImpl innerClient = buildInnerClient(); + return new ArrayClient(innerClient.getProperties(), innerClient.getInstrumentation()); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/CommaDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/CommaDelimitedArrayProperty.java new file mode 100644 index 00000000000..76d0e3a5e47 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/CommaDelimitedArrayProperty.java @@ -0,0 +1,80 @@ +package encode.array; + +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.util.List; + +/** + * The CommaDelimitedArrayProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class CommaDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final List value; + + /** + * Creates an instance of CommaDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public CommaDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CommaDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CommaDelimitedArrayProperty 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 CommaDelimitedArrayProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static CommaDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new CommaDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/NewlineDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/NewlineDelimitedArrayProperty.java new file mode 100644 index 00000000000..9c4e02945fc --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/NewlineDelimitedArrayProperty.java @@ -0,0 +1,80 @@ +package encode.array; + +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.util.List; + +/** + * The NewlineDelimitedArrayProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class NewlineDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final List value; + + /** + * Creates an instance of NewlineDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public NewlineDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NewlineDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NewlineDelimitedArrayProperty 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 NewlineDelimitedArrayProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static NewlineDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new NewlineDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/PipeDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/PipeDelimitedArrayProperty.java new file mode 100644 index 00000000000..591c83021e5 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/PipeDelimitedArrayProperty.java @@ -0,0 +1,80 @@ +package encode.array; + +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.util.List; + +/** + * The PipeDelimitedArrayProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class PipeDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final List value; + + /** + * Creates an instance of PipeDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public PipeDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PipeDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PipeDelimitedArrayProperty 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 PipeDelimitedArrayProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static PipeDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new PipeDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/SpaceDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/SpaceDelimitedArrayProperty.java new file mode 100644 index 00000000000..5b98f94f20a --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/SpaceDelimitedArrayProperty.java @@ -0,0 +1,80 @@ +package encode.array; + +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.util.List; + +/** + * The SpaceDelimitedArrayProperty model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class SpaceDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final List value; + + /** + * Creates an instance of SpaceDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public SpaceDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SpaceDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SpaceDelimitedArrayProperty 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 SpaceDelimitedArrayProperty. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static SpaceDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new SpaceDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/ArrayClientImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/ArrayClientImpl.java new file mode 100644 index 00000000000..3594e1a6fd6 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/ArrayClientImpl.java @@ -0,0 +1,79 @@ +package encode.array.implementation; + +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.instrumentation.Instrumentation; + +/** + * Initializes a new instance of the ArrayClient type. + */ +public final class ArrayClientImpl { + /** + * 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 instance of instrumentation to report telemetry. + */ + private final Instrumentation instrumentation; + + /** + * Gets The instance of instrumentation to report telemetry. + * + * @return the instrumentation value. + */ + public Instrumentation getInstrumentation() { + return this.instrumentation; + } + + /** + * The PropertiesImpl object to access its operations. + */ + private final PropertiesImpl properties; + + /** + * Gets the PropertiesImpl object to access its operations. + * + * @return the PropertiesImpl object. + */ + public PropertiesImpl getProperties() { + return this.properties; + } + + /** + * Initializes an instance of ArrayClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param instrumentation The instance of instrumentation to report telemetry. + * @param endpoint Service host. + */ + public ArrayClientImpl(HttpPipeline httpPipeline, Instrumentation instrumentation, String endpoint) { + this.httpPipeline = httpPipeline; + this.instrumentation = instrumentation; + this.endpoint = endpoint; + this.properties = new PropertiesImpl(this); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/PropertiesImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/PropertiesImpl.java new file mode 100644 index 00000000000..c87416a9952 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/PropertiesImpl.java @@ -0,0 +1,190 @@ +package encode.array.implementation; + +import encode.array.CommaDelimitedArrayProperty; +import encode.array.NewlineDelimitedArrayProperty; +import encode.array.PipeDelimitedArrayProperty; +import encode.array.SpaceDelimitedArrayProperty; +import io.clientcore.core.annotations.ReturnType; +import io.clientcore.core.annotations.ServiceInterface; +import io.clientcore.core.annotations.ServiceMethod; +import io.clientcore.core.http.annotations.BodyParam; +import io.clientcore.core.http.annotations.HeaderParam; +import io.clientcore.core.http.annotations.HostParam; +import io.clientcore.core.http.annotations.HttpRequestInformation; +import io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail; +import io.clientcore.core.http.models.HttpMethod; +import io.clientcore.core.http.models.HttpResponseException; +import io.clientcore.core.http.models.RequestContext; +import io.clientcore.core.http.models.Response; +import io.clientcore.core.http.pipeline.HttpPipeline; +import io.clientcore.core.instrumentation.Instrumentation; +import java.lang.reflect.InvocationTargetException; + +/** + * An instance of this class provides access to all the operations defined in Properties. + */ +public final class PropertiesImpl { + /** + * The proxy service used to perform REST calls. + */ + private final PropertiesService service; + + /** + * The service client containing this operation class. + */ + private final ArrayClientImpl client; + + /** + * The instance of instrumentation to report telemetry. + */ + private final Instrumentation instrumentation; + + /** + * Initializes an instance of PropertiesImpl. + * + * @param client the instance of the service client containing this operation class. + */ + PropertiesImpl(ArrayClientImpl client) { + this.service = PropertiesService.getNewInstance(client.getHttpPipeline()); + this.client = client; + this.instrumentation = client.getInstrumentation(); + } + + /** + * The interface defining all the services for ArrayClientProperties to be used by the proxy service to perform REST + * calls. + */ + @ServiceInterface(name = "ArrayClientProperties", host = "{endpoint}") + public interface PropertiesService { + static PropertiesService getNewInstance(HttpPipeline pipeline) { + try { + Class clazz = Class.forName("encode.array.implementation.PropertiesServiceImpl"); + return (PropertiesService) clazz.getMethod("getNewInstance", HttpPipeline.class).invoke(null, pipeline); + } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException + | InvocationTargetException e) { + throw new RuntimeException(e); + } + + } + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/array/property/comma-delimited", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response commaDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") CommaDelimitedArrayProperty body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/array/property/space-delimited", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response spaceDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") SpaceDelimitedArrayProperty body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/array/property/pipe-delimited", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response pipeDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PipeDelimitedArrayProperty body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/encode/array/property/newline-delimited", + expectedStatusCodes = { 200 }) + @UnexpectedResponseExceptionDetail + Response newlineDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") NewlineDelimitedArrayProperty body, RequestContext requestContext); + } + + /** + * The commaDelimited 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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response commaDelimitedWithResponse(CommaDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.commaDelimited", requestContext, + updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.commaDelimited(this.client.getEndpoint(), contentType, accept, body, updatedContext); + }); + } + + /** + * The spaceDelimited 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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response spaceDelimitedWithResponse(SpaceDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.spaceDelimited", requestContext, + updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.spaceDelimited(this.client.getEndpoint(), contentType, accept, body, updatedContext); + }); + } + + /** + * The pipeDelimited 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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response pipeDelimitedWithResponse(PipeDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.pipeDelimited", requestContext, + updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.pipeDelimited(this.client.getEndpoint(), contentType, accept, body, updatedContext); + }); + } + + /** + * The newlineDelimited 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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response newlineDelimitedWithResponse(NewlineDelimitedArrayProperty body, + RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("Encode.Array.Property.newlineDelimited", requestContext, + updatedContext -> { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.newlineDelimited(this.client.getEndpoint(), contentType, accept, body, updatedContext); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/package-info.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/package-info.java new file mode 100644 index 00000000000..3ef73b3879e --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/implementation/package-info.java @@ -0,0 +1,5 @@ +/** + * Package containing the implementations for Array. + * Test for encode decorator on array. + */ +package encode.array.implementation; diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/package-info.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/package-info.java new file mode 100644 index 00000000000..3d3dfef05bb --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/encode/array/package-info.java @@ -0,0 +1,5 @@ +/** + * Package containing the classes for Array. + * Test for encode decorator on array. + */ +package encode.array; diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/ModelPropertiesClient.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/ModelPropertiesClient.java index 31fd6614a82..d52c323c8f6 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/ModelPropertiesClient.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/ModelPropertiesClient.java @@ -10,6 +10,7 @@ import io.clientcore.core.http.models.Response; import io.clientcore.core.instrumentation.Instrumentation; import specialwords.implementation.ModelPropertiesImpl; +import specialwords.modelproperties.DictMethods; import specialwords.modelproperties.SameAsModel; /** @@ -64,4 +65,35 @@ public Response sameAsModelWithResponse(SameAsModel body, RequestContext r public void sameAsModel(SameAsModel body) { sameAsModelWithResponse(body, RequestContext.none()); } + + /** + * The dictMethods 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 {@link Response}. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public Response dictMethodsWithResponse(DictMethods body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("SpecialWords.ModelProperties.dictMethods", requestContext, + updatedContext -> this.serviceClient.dictMethodsWithResponse(body, updatedContext)); + } + + /** + * The dictMethods 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. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @ServiceMethod(returns = ReturnType.SINGLE) + public void dictMethods(DictMethods body) { + dictMethodsWithResponse(body, RequestContext.none()); + } } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java index 07dfadaa958..b7c55e030d1 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java @@ -15,6 +15,7 @@ import io.clientcore.core.http.pipeline.HttpPipeline; import io.clientcore.core.instrumentation.Instrumentation; import java.lang.reflect.InvocationTargetException; +import specialwords.modelproperties.DictMethods; import specialwords.modelproperties.SameAsModel; /** @@ -73,6 +74,15 @@ static ModelPropertiesService getNewInstance(HttpPipeline pipeline) { Response sameAsModel(@HostParam("endpoint") String endpoint, @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") SameAsModel body, RequestContext requestContext); + + @HttpRequestInformation( + method = HttpMethod.POST, + path = "/special-words/model-properties/dict-methods", + expectedStatusCodes = { 204 }) + @UnexpectedResponseExceptionDetail + Response dictMethods(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") DictMethods body, + RequestContext requestContext); } /** @@ -93,4 +103,23 @@ public Response sameAsModelWithResponse(SameAsModel body, RequestContext r return service.sameAsModel(this.client.getEndpoint(), contentType, body, updatedContext); }); } + + /** + * The dictMethods 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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response dictMethodsWithResponse(DictMethods body, RequestContext requestContext) { + return this.instrumentation.instrumentWithResponse("SpecialWords.ModelProperties.dictMethods", requestContext, + updatedContext -> { + final String contentType = "application/json"; + return service.dictMethods(this.client.getEndpoint(), contentType, body, updatedContext); + }); + } } diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/modelproperties/DictMethods.java b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/modelproperties/DictMethods.java new file mode 100644 index 00000000000..3808e98b525 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/java/specialwords/modelproperties/DictMethods.java @@ -0,0 +1,278 @@ +package specialwords.modelproperties; + +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 DictMethods model. + */ +@Metadata(properties = { MetadataProperties.IMMUTABLE }) +public final class DictMethods implements JsonSerializable { + /* + * The keys property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String keys; + + /* + * The items property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String items; + + /* + * The values property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String values; + + /* + * The popitem property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String popitem; + + /* + * The clear property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String clear; + + /* + * The update property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String update; + + /* + * The setdefault property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String setdefault; + + /* + * The pop property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String pop; + + /* + * The get property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String get; + + /* + * The copy property. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + private final String copy; + + /** + * Creates an instance of DictMethods class. + * + * @param keys the keys value to set. + * @param items the items value to set. + * @param values the values value to set. + * @param popitem the popitem value to set. + * @param clear the clear value to set. + * @param update the update value to set. + * @param setdefault the setdefault value to set. + * @param pop the pop value to set. + * @param get the get value to set. + * @param copy the copy value to set. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public DictMethods(String keys, String items, String values, String popitem, String clear, String update, + String setdefault, String pop, String get, String copy) { + this.keys = keys; + this.items = items; + this.values = values; + this.popitem = popitem; + this.clear = clear; + this.update = update; + this.setdefault = setdefault; + this.pop = pop; + this.get = get; + this.copy = copy; + } + + /** + * Get the keys property: The keys property. + * + * @return the keys value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getKeys() { + return this.keys; + } + + /** + * Get the items property: The items property. + * + * @return the items value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getItems() { + return this.items; + } + + /** + * Get the values property: The values property. + * + * @return the values value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getValues() { + return this.values; + } + + /** + * Get the popitem property: The popitem property. + * + * @return the popitem value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getPopitem() { + return this.popitem; + } + + /** + * Get the clear property: The clear property. + * + * @return the clear value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getClear() { + return this.clear; + } + + /** + * Get the update property: The update property. + * + * @return the update value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getUpdate() { + return this.update; + } + + /** + * Get the setdefault property: The setdefault property. + * + * @return the setdefault value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getSetdefault() { + return this.setdefault; + } + + /** + * Get the pop property: The pop property. + * + * @return the pop value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getPop() { + return this.pop; + } + + /** + * Get the get property: The get property. + * + * @return the get value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getGet() { + return this.get; + } + + /** + * Get the copy property: The copy property. + * + * @return the copy value. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public String getCopy() { + return this.copy; + } + + /** + * {@inheritDoc} + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("keys", this.keys); + jsonWriter.writeStringField("items", this.items); + jsonWriter.writeStringField("values", this.values); + jsonWriter.writeStringField("popitem", this.popitem); + jsonWriter.writeStringField("clear", this.clear); + jsonWriter.writeStringField("update", this.update); + jsonWriter.writeStringField("setdefault", this.setdefault); + jsonWriter.writeStringField("pop", this.pop); + jsonWriter.writeStringField("get", this.get); + jsonWriter.writeStringField("copy", this.copy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DictMethods from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DictMethods 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 DictMethods. + */ + @Metadata(properties = { MetadataProperties.GENERATED }) + public static DictMethods fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String keys = null; + String items = null; + String values = null; + String popitem = null; + String clear = null; + String update = null; + String setdefault = null; + String pop = null; + String get = null; + String copy = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keys".equals(fieldName)) { + keys = reader.getString(); + } else if ("items".equals(fieldName)) { + items = reader.getString(); + } else if ("values".equals(fieldName)) { + values = reader.getString(); + } else if ("popitem".equals(fieldName)) { + popitem = reader.getString(); + } else if ("clear".equals(fieldName)) { + clear = reader.getString(); + } else if ("update".equals(fieldName)) { + update = reader.getString(); + } else if ("setdefault".equals(fieldName)) { + setdefault = reader.getString(); + } else if ("pop".equals(fieldName)) { + pop = reader.getString(); + } else if ("get".equals(fieldName)) { + get = reader.getString(); + } else if ("copy".equals(fieldName)) { + copy = reader.getString(); + } else { + reader.skipChildren(); + } + } + return new DictMethods(keys, items, values, popitem, clear, update, setdefault, pop, get, copy); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/documentation_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/documentation_apiview_properties.json new file mode 100644 index 00000000000..4e7018f5979 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/documentation_apiview_properties.json @@ -0,0 +1,11 @@ +{ + "flavor": "generic", + "CrossLanguageDefinitionId": { + "documentation.DocumentationClientBuilder": "Documentation", + "documentation.ListsClient": "Documentation.Lists", + "documentation.TextFormattingClient": "Documentation.TextFormatting", + "documentation.lists.BulletPointsEnum": "Documentation.Lists.BulletPointsEnum", + "documentation.lists.BulletPointsModel": "Documentation.Lists.BulletPointsModel", + "documentation.lists.implementation.BulletPointsModelRequest": "Documentation.Lists.bulletPointsModel.Request.anonymous" + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/documentation_metadata.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/documentation_metadata.json new file mode 100644 index 00000000000..e80af789b53 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/documentation_metadata.json @@ -0,0 +1 @@ +{"flavor":"generic","crossLanguageDefinitions":{"documentation.DocumentationClientBuilder":"Documentation","documentation.ListsClient":"Documentation.Lists","documentation.TextFormattingClient":"Documentation.TextFormatting","documentation.lists.BulletPointsEnum":"Documentation.Lists.BulletPointsEnum","documentation.lists.BulletPointsModel":"Documentation.Lists.BulletPointsModel","documentation.lists.implementation.BulletPointsModelRequest":"Documentation.Lists.bulletPointsModel.Request.anonymous"},"generatedFiles":["src/main/java/documentation/DocumentationClientBuilder.java","src/main/java/documentation/ListsClient.java","src/main/java/documentation/TextFormattingClient.java","src/main/java/documentation/implementation/DocumentationClientImpl.java","src/main/java/documentation/implementation/ListsImpl.java","src/main/java/documentation/implementation/TextFormattingsImpl.java","src/main/java/documentation/implementation/package-info.java","src/main/java/documentation/lists/BulletPointsEnum.java","src/main/java/documentation/lists/BulletPointsModel.java","src/main/java/documentation/lists/implementation/BulletPointsModelRequest.java","src/main/java/documentation/lists/implementation/package-info.java","src/main/java/documentation/lists/package-info.java","src/main/java/documentation/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-clientcore-test/src/main/resources/META-INF/encode-array_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-array_apiview_properties.json new file mode 100644 index 00000000000..196e528b2b2 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-array_apiview_properties.json @@ -0,0 +1,11 @@ +{ + "flavor": "generic", + "CrossLanguageDefinitionId": { + "encode.array.ArrayClient": "Encode.Array.Property", + "encode.array.ArrayClientBuilder": "Encode.Array", + "encode.array.CommaDelimitedArrayProperty": "Encode.Array.CommaDelimitedArrayProperty", + "encode.array.NewlineDelimitedArrayProperty": "Encode.Array.NewlineDelimitedArrayProperty", + "encode.array.PipeDelimitedArrayProperty": "Encode.Array.PipeDelimitedArrayProperty", + "encode.array.SpaceDelimitedArrayProperty": "Encode.Array.SpaceDelimitedArrayProperty" + } +} diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-array_metadata.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-array_metadata.json new file mode 100644 index 00000000000..7ded8c90498 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/encode-array_metadata.json @@ -0,0 +1 @@ +{"flavor":"generic","crossLanguageDefinitions":{"encode.array.ArrayClient":"Encode.Array.Property","encode.array.ArrayClientBuilder":"Encode.Array","encode.array.CommaDelimitedArrayProperty":"Encode.Array.CommaDelimitedArrayProperty","encode.array.NewlineDelimitedArrayProperty":"Encode.Array.NewlineDelimitedArrayProperty","encode.array.PipeDelimitedArrayProperty":"Encode.Array.PipeDelimitedArrayProperty","encode.array.SpaceDelimitedArrayProperty":"Encode.Array.SpaceDelimitedArrayProperty"},"generatedFiles":["src/main/java/encode/array/ArrayClient.java","src/main/java/encode/array/ArrayClientBuilder.java","src/main/java/encode/array/CommaDelimitedArrayProperty.java","src/main/java/encode/array/NewlineDelimitedArrayProperty.java","src/main/java/encode/array/PipeDelimitedArrayProperty.java","src/main/java/encode/array/SpaceDelimitedArrayProperty.java","src/main/java/encode/array/implementation/ArrayClientImpl.java","src/main/java/encode/array/implementation/PropertiesImpl.java","src/main/java/encode/array/implementation/package-info.java","src/main/java/encode/array/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-clientcore-test/src/main/resources/META-INF/specialwords_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_apiview_properties.json index 5fcefb54893..d5c92b3c161 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_apiview_properties.json +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_apiview_properties.json @@ -6,6 +6,7 @@ "specialwords.OperationsClient": "SpecialWords.Operations", "specialwords.ParametersClient": "SpecialWords.Parameters", "specialwords.SpecialWordsClientBuilder": "SpecialWords", + "specialwords.modelproperties.DictMethods": "SpecialWords.ModelProperties.DictMethods", "specialwords.modelproperties.SameAsModel": "SpecialWords.ModelProperties.SameAsModel", "specialwords.models.And": "SpecialWords.Models.and", "specialwords.models.As": "SpecialWords.Models.as", diff --git a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_metadata.json b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_metadata.json index 4c7a8d845e7..5378276e7d3 100644 --- a/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_metadata.json +++ b/packages/http-client-java/generator/http-client-generator-clientcore-test/src/main/resources/META-INF/specialwords_metadata.json @@ -1 +1 @@ -{"flavor":"generic","crossLanguageDefinitions":{"specialwords.ModelPropertiesClient":"SpecialWords.ModelProperties","specialwords.ModelsClient":"SpecialWords.Models","specialwords.OperationsClient":"SpecialWords.Operations","specialwords.ParametersClient":"SpecialWords.Parameters","specialwords.SpecialWordsClientBuilder":"SpecialWords","specialwords.modelproperties.SameAsModel":"SpecialWords.ModelProperties.SameAsModel","specialwords.models.And":"SpecialWords.Models.and","specialwords.models.As":"SpecialWords.Models.as","specialwords.models.Assert":"SpecialWords.Models.assert","specialwords.models.Async":"SpecialWords.Models.async","specialwords.models.Await":"SpecialWords.Models.await","specialwords.models.Break":"SpecialWords.Models.break","specialwords.models.ClassModel":"SpecialWords.Models.class","specialwords.models.Constructor":"SpecialWords.Models.constructor","specialwords.models.Continue":"SpecialWords.Models.continue","specialwords.models.Def":"SpecialWords.Models.def","specialwords.models.Del":"SpecialWords.Models.del","specialwords.models.Elif":"SpecialWords.Models.elif","specialwords.models.Else":"SpecialWords.Models.else","specialwords.models.Except":"SpecialWords.Models.except","specialwords.models.Exec":"SpecialWords.Models.exec","specialwords.models.Finally":"SpecialWords.Models.finally","specialwords.models.For":"SpecialWords.Models.for","specialwords.models.From":"SpecialWords.Models.from","specialwords.models.Global":"SpecialWords.Models.global","specialwords.models.If":"SpecialWords.Models.if","specialwords.models.Import":"SpecialWords.Models.import","specialwords.models.In":"SpecialWords.Models.in","specialwords.models.Is":"SpecialWords.Models.is","specialwords.models.Lambda":"SpecialWords.Models.lambda","specialwords.models.Not":"SpecialWords.Models.not","specialwords.models.Or":"SpecialWords.Models.or","specialwords.models.Pass":"SpecialWords.Models.pass","specialwords.models.Raise":"SpecialWords.Models.raise","specialwords.models.Return":"SpecialWords.Models.return","specialwords.models.Try":"SpecialWords.Models.try","specialwords.models.While":"SpecialWords.Models.while","specialwords.models.With":"SpecialWords.Models.with","specialwords.models.Yield":"SpecialWords.Models.yield"},"generatedFiles":["src/main/java/module-info.java","src/main/java/specialwords/ModelPropertiesClient.java","src/main/java/specialwords/ModelsClient.java","src/main/java/specialwords/OperationsClient.java","src/main/java/specialwords/ParametersClient.java","src/main/java/specialwords/SpecialWordsClientBuilder.java","src/main/java/specialwords/implementation/ModelPropertiesImpl.java","src/main/java/specialwords/implementation/ModelsImpl.java","src/main/java/specialwords/implementation/OperationsImpl.java","src/main/java/specialwords/implementation/ParametersImpl.java","src/main/java/specialwords/implementation/SpecialWordsClientImpl.java","src/main/java/specialwords/implementation/package-info.java","src/main/java/specialwords/modelproperties/SameAsModel.java","src/main/java/specialwords/modelproperties/package-info.java","src/main/java/specialwords/models/And.java","src/main/java/specialwords/models/As.java","src/main/java/specialwords/models/Assert.java","src/main/java/specialwords/models/Async.java","src/main/java/specialwords/models/Await.java","src/main/java/specialwords/models/Break.java","src/main/java/specialwords/models/ClassModel.java","src/main/java/specialwords/models/Constructor.java","src/main/java/specialwords/models/Continue.java","src/main/java/specialwords/models/Def.java","src/main/java/specialwords/models/Del.java","src/main/java/specialwords/models/Elif.java","src/main/java/specialwords/models/Else.java","src/main/java/specialwords/models/Except.java","src/main/java/specialwords/models/Exec.java","src/main/java/specialwords/models/Finally.java","src/main/java/specialwords/models/For.java","src/main/java/specialwords/models/From.java","src/main/java/specialwords/models/Global.java","src/main/java/specialwords/models/If.java","src/main/java/specialwords/models/Import.java","src/main/java/specialwords/models/In.java","src/main/java/specialwords/models/Is.java","src/main/java/specialwords/models/Lambda.java","src/main/java/specialwords/models/Not.java","src/main/java/specialwords/models/Or.java","src/main/java/specialwords/models/Pass.java","src/main/java/specialwords/models/Raise.java","src/main/java/specialwords/models/Return.java","src/main/java/specialwords/models/Try.java","src/main/java/specialwords/models/While.java","src/main/java/specialwords/models/With.java","src/main/java/specialwords/models/Yield.java","src/main/java/specialwords/models/package-info.java","src/main/java/specialwords/package-info.java"]} \ No newline at end of file +{"flavor":"generic","crossLanguageDefinitions":{"specialwords.ModelPropertiesClient":"SpecialWords.ModelProperties","specialwords.ModelsClient":"SpecialWords.Models","specialwords.OperationsClient":"SpecialWords.Operations","specialwords.ParametersClient":"SpecialWords.Parameters","specialwords.SpecialWordsClientBuilder":"SpecialWords","specialwords.modelproperties.DictMethods":"SpecialWords.ModelProperties.DictMethods","specialwords.modelproperties.SameAsModel":"SpecialWords.ModelProperties.SameAsModel","specialwords.models.And":"SpecialWords.Models.and","specialwords.models.As":"SpecialWords.Models.as","specialwords.models.Assert":"SpecialWords.Models.assert","specialwords.models.Async":"SpecialWords.Models.async","specialwords.models.Await":"SpecialWords.Models.await","specialwords.models.Break":"SpecialWords.Models.break","specialwords.models.ClassModel":"SpecialWords.Models.class","specialwords.models.Constructor":"SpecialWords.Models.constructor","specialwords.models.Continue":"SpecialWords.Models.continue","specialwords.models.Def":"SpecialWords.Models.def","specialwords.models.Del":"SpecialWords.Models.del","specialwords.models.Elif":"SpecialWords.Models.elif","specialwords.models.Else":"SpecialWords.Models.else","specialwords.models.Except":"SpecialWords.Models.except","specialwords.models.Exec":"SpecialWords.Models.exec","specialwords.models.Finally":"SpecialWords.Models.finally","specialwords.models.For":"SpecialWords.Models.for","specialwords.models.From":"SpecialWords.Models.from","specialwords.models.Global":"SpecialWords.Models.global","specialwords.models.If":"SpecialWords.Models.if","specialwords.models.Import":"SpecialWords.Models.import","specialwords.models.In":"SpecialWords.Models.in","specialwords.models.Is":"SpecialWords.Models.is","specialwords.models.Lambda":"SpecialWords.Models.lambda","specialwords.models.Not":"SpecialWords.Models.not","specialwords.models.Or":"SpecialWords.Models.or","specialwords.models.Pass":"SpecialWords.Models.pass","specialwords.models.Raise":"SpecialWords.Models.raise","specialwords.models.Return":"SpecialWords.Models.return","specialwords.models.Try":"SpecialWords.Models.try","specialwords.models.While":"SpecialWords.Models.while","specialwords.models.With":"SpecialWords.Models.with","specialwords.models.Yield":"SpecialWords.Models.yield"},"generatedFiles":["src/main/java/module-info.java","src/main/java/specialwords/ModelPropertiesClient.java","src/main/java/specialwords/ModelsClient.java","src/main/java/specialwords/OperationsClient.java","src/main/java/specialwords/ParametersClient.java","src/main/java/specialwords/SpecialWordsClientBuilder.java","src/main/java/specialwords/implementation/ModelPropertiesImpl.java","src/main/java/specialwords/implementation/ModelsImpl.java","src/main/java/specialwords/implementation/OperationsImpl.java","src/main/java/specialwords/implementation/ParametersImpl.java","src/main/java/specialwords/implementation/SpecialWordsClientImpl.java","src/main/java/specialwords/implementation/package-info.java","src/main/java/specialwords/modelproperties/DictMethods.java","src/main/java/specialwords/modelproperties/SameAsModel.java","src/main/java/specialwords/modelproperties/package-info.java","src/main/java/specialwords/models/And.java","src/main/java/specialwords/models/As.java","src/main/java/specialwords/models/Assert.java","src/main/java/specialwords/models/Async.java","src/main/java/specialwords/models/Await.java","src/main/java/specialwords/models/Break.java","src/main/java/specialwords/models/ClassModel.java","src/main/java/specialwords/models/Constructor.java","src/main/java/specialwords/models/Continue.java","src/main/java/specialwords/models/Def.java","src/main/java/specialwords/models/Del.java","src/main/java/specialwords/models/Elif.java","src/main/java/specialwords/models/Else.java","src/main/java/specialwords/models/Except.java","src/main/java/specialwords/models/Exec.java","src/main/java/specialwords/models/Finally.java","src/main/java/specialwords/models/For.java","src/main/java/specialwords/models/From.java","src/main/java/specialwords/models/Global.java","src/main/java/specialwords/models/If.java","src/main/java/specialwords/models/Import.java","src/main/java/specialwords/models/In.java","src/main/java/specialwords/models/Is.java","src/main/java/specialwords/models/Lambda.java","src/main/java/specialwords/models/Not.java","src/main/java/specialwords/models/Or.java","src/main/java/specialwords/models/Pass.java","src/main/java/specialwords/models/Raise.java","src/main/java/specialwords/models/Return.java","src/main/java/specialwords/models/Try.java","src/main/java/specialwords/models/While.java","src/main/java/specialwords/models/With.java","src/main/java/specialwords/models/Yield.java","src/main/java/specialwords/models/package-info.java","src/main/java/specialwords/package-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 9b649a5d783..1285ccb6134 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.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.6.0.tgz", + "@typespec/spector": "0.1.0-alpha.21", + "@typespec/spec-api": "0.1.0-alpha.11", + "@typespec/http-specs": "0.1.0-alpha.29", + "@azure-tools/azure-http-specs": "0.1.0-alpha.33", + "@typespec/http-client-java": "file:../../typespec-http-client-java-0.6.1.tgz", "@typespec/http-client-java-tests": "file:" }, "overrides": { - "@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.1", - "@azure-tools/typespec-autorest": "0.62.0" + "@typespec/compiler": "1.7.0", + "@typespec/http": "1.7.0", + "@typespec/rest": "0.77.0", + "@typespec/versioning": "0.77.0", + "@typespec/openapi": "1.7.0", + "@typespec/xml": "0.77.0", + "@typespec/events": "0.77.0", + "@typespec/sse": "0.77.0", + "@typespec/streams": "0.77.0", + "@azure-tools/typespec-azure-core": "0.63.0", + "@azure-tools/typespec-client-generator-core": "0.63.0", + "@azure-tools/typespec-azure-resource-manager": "0.63.0", + "@azure-tools/typespec-autorest": "0.63.0" }, "private": true } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/DocumentationClientBuilder.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/DocumentationClientBuilder.java new file mode 100644 index 00000000000..66fcf8f2936 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/DocumentationClientBuilder.java @@ -0,0 +1,312 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation; + +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 documentation.implementation.DocumentationClientImpl; +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 DocumentationClient type. + */ +@ServiceClientBuilder( + serviceClients = { + ListsClient.class, + TextFormattingClient.class, + ListsAsyncClient.class, + TextFormattingAsyncClient.class }) +public final class DocumentationClientBuilder 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("documentation.properties"); + + @Generated + private final List pipelinePolicies; + + /** + * Create an instance of the DocumentationClientBuilder. + */ + @Generated + public DocumentationClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP client used to send the request. + */ + @Generated + private HttpClient httpClient; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public DocumentationClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The HTTP pipeline to send requests through. + */ + @Generated + private HttpPipeline pipeline; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public DocumentationClientBuilder 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 DocumentationClientBuilder 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 DocumentationClientBuilder 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 DocumentationClientBuilder retryOptions(RetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public DocumentationClientBuilder 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 DocumentationClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The service endpoint + */ + @Generated + private String endpoint; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public DocumentationClientBuilder 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 DocumentationClientBuilder. + */ + @Generated + public DocumentationClientBuilder retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Builds an instance of DocumentationClientImpl with the provided parameters. + * + * @return an instance of DocumentationClientImpl. + */ + @Generated + private DocumentationClientImpl buildInnerClient() { + this.validateClient(); + HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); + String localEndpoint = (endpoint != null) ? endpoint : "http://localhost:3000"; + DocumentationClientImpl client = new DocumentationClientImpl(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 ListsAsyncClient class. + * + * @return an instance of ListsAsyncClient. + */ + @Generated + public ListsAsyncClient buildListsAsyncClient() { + return new ListsAsyncClient(buildInnerClient().getLists()); + } + + /** + * Builds an instance of TextFormattingAsyncClient class. + * + * @return an instance of TextFormattingAsyncClient. + */ + @Generated + public TextFormattingAsyncClient buildTextFormattingAsyncClient() { + return new TextFormattingAsyncClient(buildInnerClient().getTextFormattings()); + } + + /** + * Builds an instance of ListsClient class. + * + * @return an instance of ListsClient. + */ + @Generated + public ListsClient buildListsClient() { + return new ListsClient(buildInnerClient().getLists()); + } + + /** + * Builds an instance of TextFormattingClient class. + * + * @return an instance of TextFormattingClient. + */ + @Generated + public TextFormattingClient buildTextFormattingClient() { + return new TextFormattingClient(buildInnerClient().getTextFormattings()); + } + + private static final ClientLogger LOGGER = new ClientLogger(DocumentationClientBuilder.class); +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/ListsAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/ListsAsyncClient.java new file mode 100644 index 00000000000..9be33080835 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/ListsAsyncClient.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation; + +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.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.FluxUtil; +import documentation.implementation.ListsImpl; +import documentation.lists.implementation.models.BulletPointsModelRequest; +import documentation.lists.models.BulletPointsModel; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the asynchronous DocumentationClient type. + */ +@ServiceClient(builder = DocumentationClientBuilder.class, isAsync = true) +public final class ListsAsyncClient { + @Generated + private final ListsImpl serviceClient; + + /** + * Initializes an instance of ListsAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + ListsAsyncClient(ListsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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> bulletPointsOpWithResponse(RequestOptions requestOptions) { + return this.serviceClient.bulletPointsOpWithResponseAsync(requestOptions); + } + + /** + * The bulletPointsModel operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     input (Required): {
+     *         prop: String(Simple/Bold/Italic) (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @param bulletPointsModelRequest The bulletPointsModelRequest 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> bulletPointsModelWithResponse(BinaryData bulletPointsModelRequest, + RequestOptions requestOptions) { + return this.serviceClient.bulletPointsModelWithResponseAsync(bulletPointsModelRequest, requestOptions); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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> numberedWithResponse(RequestOptions requestOptions) { + return this.serviceClient.numberedWithResponseAsync(requestOptions); + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 bulletPointsOp() { + // Generated convenience method for bulletPointsOpWithResponse + RequestOptions requestOptions = new RequestOptions(); + return bulletPointsOpWithResponse(requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * The bulletPointsModel 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 bulletPointsModel(BulletPointsModel input) { + // Generated convenience method for bulletPointsModelWithResponse + RequestOptions requestOptions = new RequestOptions(); + BulletPointsModelRequest bulletPointsModelRequestObj = new BulletPointsModelRequest(input); + BinaryData bulletPointsModelRequest = BinaryData.fromObject(bulletPointsModelRequestObj); + return bulletPointsModelWithResponse(bulletPointsModelRequest, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 numbered() { + // Generated convenience method for numberedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return numberedWithResponse(requestOptions).flatMap(FluxUtil::toMono); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/ListsClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/ListsClient.java new file mode 100644 index 00000000000..8d609982a08 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/ListsClient.java @@ -0,0 +1,187 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation; + +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.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import documentation.implementation.ListsImpl; +import documentation.lists.implementation.models.BulletPointsModelRequest; +import documentation.lists.models.BulletPointsModel; + +/** + * Initializes a new instance of the synchronous DocumentationClient type. + */ +@ServiceClient(builder = DocumentationClientBuilder.class) +public final class ListsClient { + @Generated + private final ListsImpl serviceClient; + + /** + * Initializes an instance of ListsClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + ListsClient(ListsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 bulletPointsOpWithResponse(RequestOptions requestOptions) { + return this.serviceClient.bulletPointsOpWithResponse(requestOptions); + } + + /** + * The bulletPointsModel operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     input (Required): {
+     *         prop: String(Simple/Bold/Italic) (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @param bulletPointsModelRequest The bulletPointsModelRequest 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 bulletPointsModelWithResponse(BinaryData bulletPointsModelRequest, + RequestOptions requestOptions) { + return this.serviceClient.bulletPointsModelWithResponse(bulletPointsModelRequest, requestOptions); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 numberedWithResponse(RequestOptions requestOptions) { + return this.serviceClient.numberedWithResponse(requestOptions); + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 bulletPointsOp() { + // Generated convenience method for bulletPointsOpWithResponse + RequestOptions requestOptions = new RequestOptions(); + bulletPointsOpWithResponse(requestOptions).getValue(); + } + + /** + * The bulletPointsModel 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 bulletPointsModel(BulletPointsModel input) { + // Generated convenience method for bulletPointsModelWithResponse + RequestOptions requestOptions = new RequestOptions(); + BulletPointsModelRequest bulletPointsModelRequestObj = new BulletPointsModelRequest(input); + BinaryData bulletPointsModelRequest = BinaryData.fromObject(bulletPointsModelRequestObj); + bulletPointsModelWithResponse(bulletPointsModelRequest, requestOptions).getValue(); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 numbered() { + // Generated convenience method for numberedWithResponse + RequestOptions requestOptions = new RequestOptions(); + numberedWithResponse(requestOptions).getValue(); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/TextFormattingAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/TextFormattingAsyncClient.java new file mode 100644 index 00000000000..333f94325bd --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/TextFormattingAsyncClient.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation; + +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.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.FluxUtil; +import documentation.implementation.TextFormattingsImpl; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the asynchronous DocumentationClient type. + */ +@ServiceClient(builder = DocumentationClientBuilder.class, isAsync = true) +public final class TextFormattingAsyncClient { + @Generated + private final TextFormattingsImpl serviceClient; + + /** + * Initializes an instance of TextFormattingAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + TextFormattingAsyncClient(TextFormattingsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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> boldTextWithResponse(RequestOptions requestOptions) { + return this.serviceClient.boldTextWithResponseAsync(requestOptions); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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> italicTextWithResponse(RequestOptions requestOptions) { + return this.serviceClient.italicTextWithResponseAsync(requestOptions); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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> combinedFormattingWithResponse(RequestOptions requestOptions) { + return this.serviceClient.combinedFormattingWithResponseAsync(requestOptions); + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 boldText() { + // Generated convenience method for boldTextWithResponse + RequestOptions requestOptions = new RequestOptions(); + return boldTextWithResponse(requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 italicText() { + // Generated convenience method for italicTextWithResponse + RequestOptions requestOptions = new RequestOptions(); + return italicTextWithResponse(requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 combinedFormatting() { + // Generated convenience method for combinedFormattingWithResponse + RequestOptions requestOptions = new RequestOptions(); + return combinedFormattingWithResponse(requestOptions).flatMap(FluxUtil::toMono); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/TextFormattingClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/TextFormattingClient.java new file mode 100644 index 00000000000..da0f8a3fbf6 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/TextFormattingClient.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation; + +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.RequestOptions; +import com.azure.core.http.rest.Response; +import documentation.implementation.TextFormattingsImpl; + +/** + * Initializes a new instance of the synchronous DocumentationClient type. + */ +@ServiceClient(builder = DocumentationClientBuilder.class) +public final class TextFormattingClient { + @Generated + private final TextFormattingsImpl serviceClient; + + /** + * Initializes an instance of TextFormattingClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + TextFormattingClient(TextFormattingsImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 boldTextWithResponse(RequestOptions requestOptions) { + return this.serviceClient.boldTextWithResponse(requestOptions); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 italicTextWithResponse(RequestOptions requestOptions) { + return this.serviceClient.italicTextWithResponse(requestOptions); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 combinedFormattingWithResponse(RequestOptions requestOptions) { + return this.serviceClient.combinedFormattingWithResponse(requestOptions); + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 boldText() { + // Generated convenience method for boldTextWithResponse + RequestOptions requestOptions = new RequestOptions(); + boldTextWithResponse(requestOptions).getValue(); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 italicText() { + // Generated convenience method for italicTextWithResponse + RequestOptions requestOptions = new RequestOptions(); + italicTextWithResponse(requestOptions).getValue(); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 combinedFormatting() { + // Generated convenience method for combinedFormattingWithResponse + RequestOptions requestOptions = new RequestOptions(); + combinedFormattingWithResponse(requestOptions).getValue(); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/DocumentationClientImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/DocumentationClientImpl.java new file mode 100644 index 00000000000..e856209854a --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/DocumentationClientImpl.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation.implementation; + +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.util.serializer.JacksonAdapter; +import com.azure.core.util.serializer.SerializerAdapter; + +/** + * Initializes a new instance of the DocumentationClient type. + */ +public final class DocumentationClientImpl { + /** + * 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; + } + + /** + * The ListsImpl object to access its operations. + */ + private final ListsImpl lists; + + /** + * Gets the ListsImpl object to access its operations. + * + * @return the ListsImpl object. + */ + public ListsImpl getLists() { + return this.lists; + } + + /** + * The TextFormattingsImpl object to access its operations. + */ + private final TextFormattingsImpl textFormattings; + + /** + * Gets the TextFormattingsImpl object to access its operations. + * + * @return the TextFormattingsImpl object. + */ + public TextFormattingsImpl getTextFormattings() { + return this.textFormattings; + } + + /** + * Initializes an instance of DocumentationClient client. + * + * @param endpoint Service host. + */ + public DocumentationClientImpl(String endpoint) { + this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(), + JacksonAdapter.createDefaultSerializerAdapter(), endpoint); + } + + /** + * Initializes an instance of DocumentationClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param endpoint Service host. + */ + public DocumentationClientImpl(HttpPipeline httpPipeline, String endpoint) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint); + } + + /** + * Initializes an instance of DocumentationClient 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 DocumentationClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint) { + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.endpoint = endpoint; + this.lists = new ListsImpl(this); + this.textFormattings = new TextFormattingsImpl(this); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/ListsImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/ListsImpl.java new file mode 100644 index 00000000000..300720a0e38 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/ListsImpl.java @@ -0,0 +1,272 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +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.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 reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in Lists. + */ +public final class ListsImpl { + /** + * The proxy service used to perform REST calls. + */ + private final ListsService service; + + /** + * The service client containing this operation class. + */ + private final DocumentationClientImpl client; + + /** + * Initializes an instance of ListsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ListsImpl(DocumentationClientImpl client) { + this.service = RestProxy.create(ListsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DocumentationClientLists to be used by the proxy service to perform + * REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DocumentationClientLists") + public interface ListsService { + @Get("/documentation/lists/bullet-points/op") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> bulletPointsOp(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/lists/bullet-points/op") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response bulletPointsOpSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Post("/documentation/lists/bullet-points/model") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> bulletPointsModel(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData bulletPointsModelRequest, RequestOptions requestOptions, + Context context); + + @Post("/documentation/lists/bullet-points/model") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response bulletPointsModelSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData bulletPointsModelRequest, RequestOptions requestOptions, + Context context); + + @Get("/documentation/lists/numbered") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> numbered(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/lists/numbered") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response numberedSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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> bulletPointsOpWithResponseAsync(RequestOptions requestOptions) { + return FluxUtil + .withContext(context -> service.bulletPointsOp(this.client.getEndpoint(), requestOptions, context)); + } + + /** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting + * is preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how + * the bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + * + * @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 bulletPointsOpWithResponse(RequestOptions requestOptions) { + return service.bulletPointsOpSync(this.client.getEndpoint(), requestOptions, Context.NONE); + } + + /** + * The bulletPointsModel operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     input (Required): {
+     *         prop: String(Simple/Bold/Italic) (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @param bulletPointsModelRequest The bulletPointsModelRequest 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> bulletPointsModelWithResponseAsync(BinaryData bulletPointsModelRequest, + RequestOptions requestOptions) { + final String contentType = "application/json"; + return FluxUtil.withContext(context -> service.bulletPointsModel(this.client.getEndpoint(), contentType, + bulletPointsModelRequest, requestOptions, context)); + } + + /** + * The bulletPointsModel operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     input (Required): {
+     *         prop: String(Simple/Bold/Italic) (Required)
+     *     }
+     * }
+     * }
+     * 
+ * + * @param bulletPointsModelRequest The bulletPointsModelRequest 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 bulletPointsModelWithResponse(BinaryData bulletPointsModelRequest, + RequestOptions requestOptions) { + final String contentType = "application/json"; + return service.bulletPointsModelSync(this.client.getEndpoint(), contentType, bulletPointsModelRequest, + requestOptions, Context.NONE); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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> numberedWithResponseAsync(RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.numbered(this.client.getEndpoint(), requestOptions, context)); + } + + /** + * Steps to follow: + * 1. First step with **important** note + * 2. Second step with *emphasis* + * 3. Third step combining **bold** and *italic* + * 4. **Final step**: Review all steps for *accuracy*. + * + * @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 numberedWithResponse(RequestOptions requestOptions) { + return service.numberedSync(this.client.getEndpoint(), requestOptions, Context.NONE); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/TextFormattingsImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/TextFormattingsImpl.java new file mode 100644 index 00000000000..714c5ca8436 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/TextFormattingsImpl.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +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.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in TextFormattings. + */ +public final class TextFormattingsImpl { + /** + * The proxy service used to perform REST calls. + */ + private final TextFormattingsService service; + + /** + * The service client containing this operation class. + */ + private final DocumentationClientImpl client; + + /** + * Initializes an instance of TextFormattingsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + TextFormattingsImpl(DocumentationClientImpl client) { + this.service + = RestProxy.create(TextFormattingsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DocumentationClientTextFormattings to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DocumentationClientTextFormattings") + public interface TextFormattingsService { + @Get("/documentation/text-formatting/bold") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> boldText(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/text-formatting/bold") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response boldTextSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/text-formatting/italic") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> italicText(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/text-formatting/italic") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response italicTextSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/text-formatting/combined") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> combinedFormatting(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + + @Get("/documentation/text-formatting/combined") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response combinedFormattingSync(@HostParam("endpoint") String endpoint, RequestOptions requestOptions, + Context context); + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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> boldTextWithResponseAsync(RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.boldText(this.client.getEndpoint(), requestOptions, context)); + } + + /** + * This is **bold text** in the middle of a sentence. + * This is a sentence with **multiple bold** sections and **another bold** section. + * **This entire sentence is bold.**. + * + * @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 boldTextWithResponse(RequestOptions requestOptions) { + return service.boldTextSync(this.client.getEndpoint(), requestOptions, Context.NONE); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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> italicTextWithResponseAsync(RequestOptions requestOptions) { + return FluxUtil.withContext(context -> service.italicText(this.client.getEndpoint(), requestOptions, context)); + } + + /** + * This is *italic text* in the middle of a sentence. + * This is a sentence with *multiple italic* sections and *another italic* section. + * *This entire sentence is italic.*. + * + * @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 italicTextWithResponse(RequestOptions requestOptions) { + return service.italicTextSync(this.client.getEndpoint(), requestOptions, Context.NONE); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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> combinedFormattingWithResponseAsync(RequestOptions requestOptions) { + return FluxUtil + .withContext(context -> service.combinedFormatting(this.client.getEndpoint(), requestOptions, context)); + } + + /** + * This sentence has **bold**, *italic*, and ***bold italic*** text. + * You can also combine them like **bold with *italic inside* bold**. + * Or *italic with **bold inside** italic*. + * This is a sentence with **bold**, *italic*, and ***bold italic*** text. + * + * @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 combinedFormattingWithResponse(RequestOptions requestOptions) { + return service.combinedFormattingSync(this.client.getEndpoint(), requestOptions, Context.NONE); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/implementation/package-info.java new file mode 100644 index 00000000000..cf5c015aeea --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/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 Documentation. + * Illustrates documentation generation and formatting features. + * + */ +package documentation.implementation; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/implementation/models/BulletPointsModelRequest.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/implementation/models/BulletPointsModelRequest.java new file mode 100644 index 00000000000..33c31b8319a --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/implementation/models/BulletPointsModelRequest.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 documentation.lists.implementation.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 documentation.lists.models.BulletPointsModel; +import java.io.IOException; + +/** + * The BulletPointsModelRequest model. + */ +@Immutable +public final class BulletPointsModelRequest implements JsonSerializable { + /* + * The input property. + */ + @Generated + private final BulletPointsModel input; + + /** + * Creates an instance of BulletPointsModelRequest class. + * + * @param input the input value to set. + */ + @Generated + public BulletPointsModelRequest(BulletPointsModel input) { + this.input = input; + } + + /** + * Get the input property: The input property. + * + * @return the input value. + */ + @Generated + public BulletPointsModel getInput() { + return this.input; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("input", this.input); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BulletPointsModelRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BulletPointsModelRequest 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 BulletPointsModelRequest. + */ + @Generated + public static BulletPointsModelRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BulletPointsModel input = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("input".equals(fieldName)) { + input = BulletPointsModel.fromJson(reader); + } else { + reader.skipChildren(); + } + } + return new BulletPointsModelRequest(input); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/implementation/models/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/implementation/models/package-info.java new file mode 100644 index 00000000000..14161731cbc --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/implementation/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 Documentation. + * Illustrates documentation generation and formatting features. + * + */ +package documentation.lists.implementation.models; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/BulletPointsEnum.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/BulletPointsEnum.java new file mode 100644 index 00000000000..cc5f71d6248 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/BulletPointsEnum.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 documentation.lists.models; + +/** + * This tests really long bullet points in enum documentation to see how wrapping and formatting are handled. This + * should wrap around correctly and maintain proper indentation for each line. + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the + * bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + */ +public enum BulletPointsEnum { + /** + * Simple bullet point. This line is intentionally long to test text wrapping in bullet points within enum + * documentation comments. It should properly indent the wrapped lines. + * - One: one. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + * - Two: two. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + */ + SIMPLE("Simple"), + + /** + * Bullet point with **bold text**. This line is intentionally long to test text wrapping in bullet points within + * enum documentation comments. It should properly indent the wrapped lines. + * - **One**: one. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + * - **Two**: two. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + */ + BOLD("Bold"), + + /** + * Bullet point with *italic text*. This line is intentionally long to test text wrapping in bullet points within + * enum documentation comments. It should properly indent the wrapped lines. + * - *One*: one. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + * - *Two*: two. This line is intentionally long to test text wrapping in bullet points within enum documentation + * comments. It should properly indent the wrapped lines. + */ + ITALIC("Italic"); + + /** + * The actual serialized value for a BulletPointsEnum instance. + */ + private final String value; + + BulletPointsEnum(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a BulletPointsEnum instance. + * + * @param value the serialized value to parse. + * @return the parsed BulletPointsEnum object, or null if unable to parse. + */ + public static BulletPointsEnum fromString(String value) { + if (value == null) { + return null; + } + BulletPointsEnum[] items = BulletPointsEnum.values(); + for (BulletPointsEnum item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return this.value; + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/BulletPointsModel.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/BulletPointsModel.java new file mode 100644 index 00000000000..7d67f328555 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/BulletPointsModel.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation.lists.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; + +/** + * This tests: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple lines in the generated documentation. + * - Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the + * bold formatting is maintained across wrapped lines. + * - *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that + * italic formatting is correctly applied even when the text spans multiple lines. + */ +@Immutable +public final class BulletPointsModel implements JsonSerializable { + /* + * This property uses an enum with bullet point documentation. The enum documentation includes various formatting + * styles to test rendering. The styles are: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple + * - Bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point** + * - *Italic bullet point* + */ + @Generated + private final BulletPointsEnum prop; + + /** + * Creates an instance of BulletPointsModel class. + * + * @param prop the prop value to set. + */ + @Generated + public BulletPointsModel(BulletPointsEnum prop) { + this.prop = prop; + } + + /** + * Get the prop property: This property uses an enum with bullet point documentation. The enum documentation + * includes various formatting styles to test rendering. The styles are: + * - Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet + * points within documentation comments. It should properly indent the wrapped lines. + * - Bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is + * preserved when the text wraps onto multiple + * - Bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the + * wrapping and formatting are correctly applied in the output. + * - Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic + * formatting and is long enough to test the wrapping behavior in such cases. + * - **Bold bullet point** + * - *Italic bullet point*. + * + * @return the prop value. + */ + @Generated + public BulletPointsEnum getProp() { + return this.prop; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("prop", this.prop == null ? null : this.prop.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BulletPointsModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BulletPointsModel 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 BulletPointsModel. + */ + @Generated + public static BulletPointsModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BulletPointsEnum prop = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("prop".equals(fieldName)) { + prop = BulletPointsEnum.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + return new BulletPointsModel(prop); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/models/package-info.java new file mode 100644 index 00000000000..18b20f6214a --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/lists/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 Documentation. + * Illustrates documentation generation and formatting features. + * + */ +package documentation.lists.models; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/package-info.java new file mode 100644 index 00000000000..c1de9ece111 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/documentation/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 Documentation. + * Illustrates documentation generation and formatting features. + * + */ +package documentation; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayAsyncClient.java new file mode 100644 index 00000000000..c1f61049463 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayAsyncClient.java @@ -0,0 +1,287 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.array; + +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.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.FluxUtil; +import encode.array.implementation.PropertiesImpl; +import encode.array.models.CommaDelimitedArrayProperty; +import encode.array.models.NewlineDelimitedArrayProperty; +import encode.array.models.PipeDelimitedArrayProperty; +import encode.array.models.SpaceDelimitedArrayProperty; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the asynchronous ArrayClient type. + */ +@ServiceClient(builder = ArrayClientBuilder.class, isAsync = true) +public final class ArrayAsyncClient { + @Generated + private final PropertiesImpl serviceClient; + + /** + * Initializes an instance of ArrayAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + ArrayAsyncClient(PropertiesImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * The commaDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> commaDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.commaDelimitedWithResponseAsync(body, requestOptions); + } + + /** + * The spaceDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> spaceDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.spaceDelimitedWithResponseAsync(body, requestOptions); + } + + /** + * The pipeDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> pipeDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.pipeDelimitedWithResponseAsync(body, requestOptions); + } + + /** + * The newlineDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> newlineDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.newlineDelimitedWithResponseAsync(body, requestOptions); + } + + /** + * The commaDelimited 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 commaDelimited(CommaDelimitedArrayProperty body) { + // Generated convenience method for commaDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return commaDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(CommaDelimitedArrayProperty.class)); + } + + /** + * The spaceDelimited 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 spaceDelimited(SpaceDelimitedArrayProperty body) { + // Generated convenience method for spaceDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return spaceDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(SpaceDelimitedArrayProperty.class)); + } + + /** + * The pipeDelimited 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 pipeDelimited(PipeDelimitedArrayProperty body) { + // Generated convenience method for pipeDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return pipeDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(PipeDelimitedArrayProperty.class)); + } + + /** + * The newlineDelimited 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 newlineDelimited(NewlineDelimitedArrayProperty body) { + // Generated convenience method for newlineDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return newlineDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(NewlineDelimitedArrayProperty.class)); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayClient.java new file mode 100644 index 00000000000..eba503c660f --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayClient.java @@ -0,0 +1,285 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.array; + +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.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import encode.array.implementation.PropertiesImpl; +import encode.array.models.CommaDelimitedArrayProperty; +import encode.array.models.NewlineDelimitedArrayProperty; +import encode.array.models.PipeDelimitedArrayProperty; +import encode.array.models.SpaceDelimitedArrayProperty; + +/** + * Initializes a new instance of the synchronous ArrayClient type. + */ +@ServiceClient(builder = ArrayClientBuilder.class) +public final class ArrayClient { + @Generated + private final PropertiesImpl serviceClient; + + /** + * Initializes an instance of ArrayClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + ArrayClient(PropertiesImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * The commaDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 commaDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.commaDelimitedWithResponse(body, requestOptions); + } + + /** + * The spaceDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 spaceDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.spaceDelimitedWithResponse(body, requestOptions); + } + + /** + * The pipeDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 pipeDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.pipeDelimitedWithResponse(body, requestOptions); + } + + /** + * The newlineDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 newlineDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.newlineDelimitedWithResponse(body, requestOptions); + } + + /** + * The commaDelimited 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 CommaDelimitedArrayProperty commaDelimited(CommaDelimitedArrayProperty body) { + // Generated convenience method for commaDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return commaDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(CommaDelimitedArrayProperty.class); + } + + /** + * The spaceDelimited 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 SpaceDelimitedArrayProperty spaceDelimited(SpaceDelimitedArrayProperty body) { + // Generated convenience method for spaceDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return spaceDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(SpaceDelimitedArrayProperty.class); + } + + /** + * The pipeDelimited 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 PipeDelimitedArrayProperty pipeDelimited(PipeDelimitedArrayProperty body) { + // Generated convenience method for pipeDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return pipeDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(PipeDelimitedArrayProperty.class); + } + + /** + * The newlineDelimited 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 NewlineDelimitedArrayProperty newlineDelimited(NewlineDelimitedArrayProperty body) { + // Generated convenience method for newlineDelimitedWithResponse + RequestOptions requestOptions = new RequestOptions(); + return newlineDelimitedWithResponse(BinaryData.fromObject(body), requestOptions).getValue() + .toObject(NewlineDelimitedArrayProperty.class); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayClientBuilder.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayClientBuilder.java new file mode 100644 index 00000000000..e2ea5c59755 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/ArrayClientBuilder.java @@ -0,0 +1,287 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.array; + +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 encode.array.implementation.ArrayClientImpl; +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 ArrayClient type. + */ +@ServiceClientBuilder(serviceClients = { ArrayClient.class, ArrayAsyncClient.class }) +public final class ArrayClientBuilder 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("encode-array.properties"); + + @Generated + private final List pipelinePolicies; + + /** + * Create an instance of the ArrayClientBuilder. + */ + @Generated + public ArrayClientBuilder() { + this.pipelinePolicies = new ArrayList<>(); + } + + /* + * The HTTP client used to send the request. + */ + @Generated + private HttpClient httpClient; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public ArrayClientBuilder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /* + * The HTTP pipeline to send requests through. + */ + @Generated + private HttpPipeline pipeline; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public ArrayClientBuilder 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 ArrayClientBuilder 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 ArrayClientBuilder 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 ArrayClientBuilder retryOptions(RetryOptions retryOptions) { + this.retryOptions = retryOptions; + return this; + } + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public ArrayClientBuilder 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 ArrayClientBuilder configuration(Configuration configuration) { + this.configuration = configuration; + return this; + } + + /* + * The service endpoint + */ + @Generated + private String endpoint; + + /** + * {@inheritDoc}. + */ + @Generated + @Override + public ArrayClientBuilder 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 ArrayClientBuilder. + */ + @Generated + public ArrayClientBuilder retryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Builds an instance of ArrayClientImpl with the provided parameters. + * + * @return an instance of ArrayClientImpl. + */ + @Generated + private ArrayClientImpl buildInnerClient() { + this.validateClient(); + HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); + String localEndpoint = (endpoint != null) ? endpoint : "http://localhost:3000"; + ArrayClientImpl client + = new ArrayClientImpl(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 ArrayAsyncClient class. + * + * @return an instance of ArrayAsyncClient. + */ + @Generated + public ArrayAsyncClient buildAsyncClient() { + return new ArrayAsyncClient(buildInnerClient().getProperties()); + } + + /** + * Builds an instance of ArrayClient class. + * + * @return an instance of ArrayClient. + */ + @Generated + public ArrayClient buildClient() { + return new ArrayClient(buildInnerClient().getProperties()); + } + + private static final ClientLogger LOGGER = new ClientLogger(ArrayClientBuilder.class); +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/ArrayClientImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/ArrayClientImpl.java new file mode 100644 index 00000000000..14b21d0341a --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/ArrayClientImpl.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.array.implementation; + +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.util.serializer.JacksonAdapter; +import com.azure.core.util.serializer.SerializerAdapter; + +/** + * Initializes a new instance of the ArrayClient type. + */ +public final class ArrayClientImpl { + /** + * 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; + } + + /** + * The PropertiesImpl object to access its operations. + */ + private final PropertiesImpl properties; + + /** + * Gets the PropertiesImpl object to access its operations. + * + * @return the PropertiesImpl object. + */ + public PropertiesImpl getProperties() { + return this.properties; + } + + /** + * Initializes an instance of ArrayClient client. + * + * @param endpoint Service host. + */ + public ArrayClientImpl(String endpoint) { + this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(), + JacksonAdapter.createDefaultSerializerAdapter(), endpoint); + } + + /** + * Initializes an instance of ArrayClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param endpoint Service host. + */ + public ArrayClientImpl(HttpPipeline httpPipeline, String endpoint) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint); + } + + /** + * Initializes an instance of ArrayClient 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 ArrayClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint) { + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.endpoint = endpoint; + this.properties = new PropertiesImpl(this); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/PropertiesImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/PropertiesImpl.java new file mode 100644 index 00000000000..ee142d68512 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/PropertiesImpl.java @@ -0,0 +1,478 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package encode.array.implementation; + +import com.azure.core.annotation.BodyParam; +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.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.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 reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in Properties. + */ +public final class PropertiesImpl { + /** + * The proxy service used to perform REST calls. + */ + private final PropertiesService service; + + /** + * The service client containing this operation class. + */ + private final ArrayClientImpl client; + + /** + * Initializes an instance of PropertiesImpl. + * + * @param client the instance of the service client containing this operation class. + */ + PropertiesImpl(ArrayClientImpl client) { + this.service + = RestProxy.create(PropertiesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ArrayClientProperties to be used by the proxy service to perform REST + * calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ArrayClientProperties") + public interface PropertiesService { + @Post("/encode/array/property/comma-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> commaDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/comma-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response commaDelimitedSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/space-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> spaceDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/space-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response spaceDelimitedSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/pipe-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> pipeDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/pipe-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response pipeDelimitedSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/newline-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> newlineDelimited(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/encode/array/property/newline-delimited") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response newlineDelimitedSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + } + + /** + * The commaDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> commaDelimitedWithResponseAsync(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.commaDelimited(this.client.getEndpoint(), contentType, accept, + body, requestOptions, context)); + } + + /** + * The commaDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 commaDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.commaDelimitedSync(this.client.getEndpoint(), contentType, accept, body, requestOptions, + Context.NONE); + } + + /** + * The spaceDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> spaceDelimitedWithResponseAsync(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.spaceDelimited(this.client.getEndpoint(), contentType, accept, + body, requestOptions, context)); + } + + /** + * The spaceDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 spaceDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.spaceDelimitedSync(this.client.getEndpoint(), contentType, accept, body, requestOptions, + Context.NONE); + } + + /** + * The pipeDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> pipeDelimitedWithResponseAsync(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.pipeDelimited(this.client.getEndpoint(), contentType, accept, + body, requestOptions, context)); + } + + /** + * The pipeDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 pipeDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.pipeDelimitedSync(this.client.getEndpoint(), contentType, accept, body, requestOptions, + Context.NONE); + } + + /** + * The newlineDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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> newlineDelimitedWithResponseAsync(BinaryData body, + RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.newlineDelimited(this.client.getEndpoint(), contentType, accept, + body, requestOptions, context)); + } + + /** + * The newlineDelimited operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (Required)
+     *     ]
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     value (Required): [
+     *         String (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 newlineDelimitedWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.newlineDelimitedSync(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/array/implementation/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/implementation/package-info.java new file mode 100644 index 00000000000..57c9ca5eac9 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/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 Array. + * Test for encode decorator on array. + * + */ +package encode.array.implementation; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/CommaDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/CommaDelimitedArrayProperty.java new file mode 100644 index 00000000000..1e3a6406b61 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/CommaDelimitedArrayProperty.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.array.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.util.List; + +/** + * The CommaDelimitedArrayProperty model. + */ +@Immutable +public final class CommaDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final List value; + + /** + * Creates an instance of CommaDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Generated + public CommaDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CommaDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CommaDelimitedArrayProperty 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 CommaDelimitedArrayProperty. + */ + @Generated + public static CommaDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new CommaDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/NewlineDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/NewlineDelimitedArrayProperty.java new file mode 100644 index 00000000000..605c2f10f09 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/NewlineDelimitedArrayProperty.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.array.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.util.List; + +/** + * The NewlineDelimitedArrayProperty model. + */ +@Immutable +public final class NewlineDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final List value; + + /** + * Creates an instance of NewlineDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Generated + public NewlineDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NewlineDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NewlineDelimitedArrayProperty 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 NewlineDelimitedArrayProperty. + */ + @Generated + public static NewlineDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new NewlineDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/PipeDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/PipeDelimitedArrayProperty.java new file mode 100644 index 00000000000..6f9b85082c1 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/PipeDelimitedArrayProperty.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.array.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.util.List; + +/** + * The PipeDelimitedArrayProperty model. + */ +@Immutable +public final class PipeDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final List value; + + /** + * Creates an instance of PipeDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Generated + public PipeDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PipeDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PipeDelimitedArrayProperty 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 PipeDelimitedArrayProperty. + */ + @Generated + public static PipeDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new PipeDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/SpaceDelimitedArrayProperty.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/SpaceDelimitedArrayProperty.java new file mode 100644 index 00000000000..8a0d3181c2e --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/SpaceDelimitedArrayProperty.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.array.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.util.List; + +/** + * The SpaceDelimitedArrayProperty model. + */ +@Immutable +public final class SpaceDelimitedArrayProperty implements JsonSerializable { + /* + * The value property. + */ + @Generated + private final List value; + + /** + * Creates an instance of SpaceDelimitedArrayProperty class. + * + * @param value the value value to set. + */ + @Generated + public SpaceDelimitedArrayProperty(List value) { + this.value = value; + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + @Generated + public List getValue() { + return this.value; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SpaceDelimitedArrayProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SpaceDelimitedArrayProperty 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 SpaceDelimitedArrayProperty. + */ + @Generated + public static SpaceDelimitedArrayProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + List value = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + value = reader.readArray(reader1 -> reader1.getString()); + } else { + reader.skipChildren(); + } + } + return new SpaceDelimitedArrayProperty(value); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/models/package-info.java new file mode 100644 index 00000000000..7db692b7214 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/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 Array. + * Test for encode decorator on array. + * + */ +package encode.array.models; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/package-info.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/package-info.java new file mode 100644 index 00000000000..0167f7cae0c --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/encode/array/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 Array. + * Test for encode decorator on array. + * + */ +package encode.array; diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesAsyncClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesAsyncClient.java index 52defbfeae1..e8922e855b9 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesAsyncClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesAsyncClient.java @@ -18,6 +18,7 @@ import com.azure.core.util.FluxUtil; import reactor.core.publisher.Mono; import specialwords.implementation.ModelPropertiesImpl; +import specialwords.modelproperties.models.DictMethods; import specialwords.modelproperties.models.SameAsModel; /** @@ -64,6 +65,41 @@ public Mono> sameAsModelWithResponse(BinaryData body, RequestOpti return this.serviceClient.sameAsModelWithResponseAsync(body, requestOptions); } + /** + * The dictMethods operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     keys: String (Required)
+     *     items: String (Required)
+     *     values: String (Required)
+     *     popitem: String (Required)
+     *     clear: String (Required)
+     *     update: String (Required)
+     *     setdefault: String (Required)
+     *     pop: String (Required)
+     *     get: String (Required)
+     *     copy: String (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 {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> dictMethodsWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.dictMethodsWithResponseAsync(body, requestOptions); + } + /** * The sameAsModel operation. * @@ -83,4 +119,24 @@ public Mono sameAsModel(SameAsModel body) { RequestOptions requestOptions = new RequestOptions(); return sameAsModelWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono); } + + /** + * The dictMethods 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 A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono dictMethods(DictMethods body) { + // Generated convenience method for dictMethodsWithResponse + RequestOptions requestOptions = new RequestOptions(); + return dictMethodsWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono); + } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesClient.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesClient.java index 29314fdb99e..1374bc9f693 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesClient.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/ModelPropertiesClient.java @@ -16,6 +16,7 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import specialwords.implementation.ModelPropertiesImpl; +import specialwords.modelproperties.models.DictMethods; import specialwords.modelproperties.models.SameAsModel; /** @@ -62,6 +63,41 @@ public Response sameAsModelWithResponse(BinaryData body, RequestOptions re return this.serviceClient.sameAsModelWithResponse(body, requestOptions); } + /** + * The dictMethods operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     keys: String (Required)
+     *     items: String (Required)
+     *     values: String (Required)
+     *     popitem: String (Required)
+     *     clear: String (Required)
+     *     update: String (Required)
+     *     setdefault: String (Required)
+     *     pop: String (Required)
+     *     get: String (Required)
+     *     copy: String (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 {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Response dictMethodsWithResponse(BinaryData body, RequestOptions requestOptions) { + return this.serviceClient.dictMethodsWithResponse(body, requestOptions); + } + /** * The sameAsModel operation. * @@ -80,4 +116,23 @@ public void sameAsModel(SameAsModel body) { RequestOptions requestOptions = new RequestOptions(); sameAsModelWithResponse(BinaryData.fromObject(body), requestOptions).getValue(); } + + /** + * The dictMethods 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. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public void dictMethods(DictMethods body) { + // Generated convenience method for dictMethodsWithResponse + RequestOptions requestOptions = new RequestOptions(); + dictMethodsWithResponse(BinaryData.fromObject(body), requestOptions).getValue(); + } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java index 0967331146a..f8d2e28261c 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/implementation/ModelPropertiesImpl.java @@ -77,6 +77,26 @@ Mono> sameAsModel(@HostParam("endpoint") String endpoint, Response sameAsModelSync(@HostParam("endpoint") String endpoint, @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body, RequestOptions requestOptions, Context context); + + @Post("/special-words/model-properties/dict-methods") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> dictMethods(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body, + RequestOptions requestOptions, Context context); + + @Post("/special-words/model-properties/dict-methods") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response dictMethodsSync(@HostParam("endpoint") String endpoint, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData body, + RequestOptions requestOptions, Context context); } /** @@ -131,4 +151,75 @@ public Response sameAsModelWithResponse(BinaryData body, RequestOptions re final String contentType = "application/json"; return service.sameAsModelSync(this.client.getEndpoint(), contentType, body, requestOptions, Context.NONE); } + + /** + * The dictMethods operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     keys: String (Required)
+     *     items: String (Required)
+     *     values: String (Required)
+     *     popitem: String (Required)
+     *     clear: String (Required)
+     *     update: String (Required)
+     *     setdefault: String (Required)
+     *     pop: String (Required)
+     *     get: String (Required)
+     *     copy: String (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 {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> dictMethodsWithResponseAsync(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + return FluxUtil.withContext( + context -> service.dictMethods(this.client.getEndpoint(), contentType, body, requestOptions, context)); + } + + /** + * The dictMethods operation. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     keys: String (Required)
+     *     items: String (Required)
+     *     values: String (Required)
+     *     popitem: String (Required)
+     *     clear: String (Required)
+     *     update: String (Required)
+     *     setdefault: String (Required)
+     *     pop: String (Required)
+     *     get: String (Required)
+     *     copy: String (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 {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response dictMethodsWithResponse(BinaryData body, RequestOptions requestOptions) { + final String contentType = "application/json"; + return service.dictMethodsSync(this.client.getEndpoint(), contentType, body, requestOptions, Context.NONE); + } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/modelproperties/models/DictMethods.java b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/modelproperties/models/DictMethods.java new file mode 100644 index 00000000000..fd5b55c5f65 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/java/specialwords/modelproperties/models/DictMethods.java @@ -0,0 +1,282 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package specialwords.modelproperties.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 DictMethods model. + */ +@Immutable +public final class DictMethods implements JsonSerializable { + /* + * The keys property. + */ + @Generated + private final String keys; + + /* + * The items property. + */ + @Generated + private final String items; + + /* + * The values property. + */ + @Generated + private final String values; + + /* + * The popitem property. + */ + @Generated + private final String popitem; + + /* + * The clear property. + */ + @Generated + private final String clear; + + /* + * The update property. + */ + @Generated + private final String update; + + /* + * The setdefault property. + */ + @Generated + private final String setdefault; + + /* + * The pop property. + */ + @Generated + private final String pop; + + /* + * The get property. + */ + @Generated + private final String get; + + /* + * The copy property. + */ + @Generated + private final String copy; + + /** + * Creates an instance of DictMethods class. + * + * @param keys the keys value to set. + * @param items the items value to set. + * @param values the values value to set. + * @param popitem the popitem value to set. + * @param clear the clear value to set. + * @param update the update value to set. + * @param setdefault the setdefault value to set. + * @param pop the pop value to set. + * @param get the get value to set. + * @param copy the copy value to set. + */ + @Generated + public DictMethods(String keys, String items, String values, String popitem, String clear, String update, + String setdefault, String pop, String get, String copy) { + this.keys = keys; + this.items = items; + this.values = values; + this.popitem = popitem; + this.clear = clear; + this.update = update; + this.setdefault = setdefault; + this.pop = pop; + this.get = get; + this.copy = copy; + } + + /** + * Get the keys property: The keys property. + * + * @return the keys value. + */ + @Generated + public String getKeys() { + return this.keys; + } + + /** + * Get the items property: The items property. + * + * @return the items value. + */ + @Generated + public String getItems() { + return this.items; + } + + /** + * Get the values property: The values property. + * + * @return the values value. + */ + @Generated + public String getValues() { + return this.values; + } + + /** + * Get the popitem property: The popitem property. + * + * @return the popitem value. + */ + @Generated + public String getPopitem() { + return this.popitem; + } + + /** + * Get the clear property: The clear property. + * + * @return the clear value. + */ + @Generated + public String getClear() { + return this.clear; + } + + /** + * Get the update property: The update property. + * + * @return the update value. + */ + @Generated + public String getUpdate() { + return this.update; + } + + /** + * Get the setdefault property: The setdefault property. + * + * @return the setdefault value. + */ + @Generated + public String getSetdefault() { + return this.setdefault; + } + + /** + * Get the pop property: The pop property. + * + * @return the pop value. + */ + @Generated + public String getPop() { + return this.pop; + } + + /** + * Get the get property: The get property. + * + * @return the get value. + */ + @Generated + public String getGet() { + return this.get; + } + + /** + * Get the copy property: The copy property. + * + * @return the copy value. + */ + @Generated + public String getCopy() { + return this.copy; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("keys", this.keys); + jsonWriter.writeStringField("items", this.items); + jsonWriter.writeStringField("values", this.values); + jsonWriter.writeStringField("popitem", this.popitem); + jsonWriter.writeStringField("clear", this.clear); + jsonWriter.writeStringField("update", this.update); + jsonWriter.writeStringField("setdefault", this.setdefault); + jsonWriter.writeStringField("pop", this.pop); + jsonWriter.writeStringField("get", this.get); + jsonWriter.writeStringField("copy", this.copy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DictMethods from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DictMethods 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 DictMethods. + */ + @Generated + public static DictMethods fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String keys = null; + String items = null; + String values = null; + String popitem = null; + String clear = null; + String update = null; + String setdefault = null; + String pop = null; + String get = null; + String copy = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keys".equals(fieldName)) { + keys = reader.getString(); + } else if ("items".equals(fieldName)) { + items = reader.getString(); + } else if ("values".equals(fieldName)) { + values = reader.getString(); + } else if ("popitem".equals(fieldName)) { + popitem = reader.getString(); + } else if ("clear".equals(fieldName)) { + clear = reader.getString(); + } else if ("update".equals(fieldName)) { + update = reader.getString(); + } else if ("setdefault".equals(fieldName)) { + setdefault = reader.getString(); + } else if ("pop".equals(fieldName)) { + pop = reader.getString(); + } else if ("get".equals(fieldName)) { + get = reader.getString(); + } else if ("copy".equals(fieldName)) { + copy = reader.getString(); + } else { + reader.skipChildren(); + } + } + return new DictMethods(keys, items, values, popitem, clear, update, setdefault, pop, get, copy); + }); + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_apiview_properties.json index c14dc0e9935..c7da87b4bf0 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_apiview_properties.json +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_apiview_properties.json @@ -1,85 +1,85 @@ { "flavor": "Azure", "CrossLanguageDefinitionId": { - "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam", - "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBody": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody", - "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBodyWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody", - "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery", - "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery", - "azure.clientgenerator.core.clientinitialization.HeaderParamClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam", - "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBody": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody", - "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBodyWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody", - "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery", - "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery", - "azure.clientgenerator.core.clientinitialization.HeaderParamClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam", - "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams", - "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBody": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody", - "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBodyWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody", - "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MixedParamsClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams", - "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBody": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody", - "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBodyWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody", - "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MixedParamsClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams", - "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams", - "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBody": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody", - "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBodyWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody", - "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MultipleParamsClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams", - "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBody": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody", - "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBodyWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody", - "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery", - "azure.clientgenerator.core.clientinitialization.MultipleParamsClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams", - "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias", - "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedName": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName", - "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedNameWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName", - "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalName": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName", - "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalNameWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName", - "azure.clientgenerator.core.clientinitialization.ParamAliasClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias", - "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedName": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName", - "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedNameWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName", - "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalName": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName", - "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalNameWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName", - "azure.clientgenerator.core.clientinitialization.ParamAliasClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery", - "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery", - "azure.clientgenerator.core.clientinitialization.PathParamClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam", - "azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamClient.getStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone", - "azure.clientgenerator.core.clientinitialization.PathParamClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery", - "azure.clientgenerator.core.clientinitialization.PathParamClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery", - "azure.clientgenerator.core.clientinitialization.PathParamClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam", + "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam", + "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBody": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody", + "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBodyWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody", + "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery", + "azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery", + "azure.clientgenerator.core.clientinitialization.HeaderParamClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam", + "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBody": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody", + "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBodyWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody", + "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery", + "azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery", + "azure.clientgenerator.core.clientinitialization.HeaderParamClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam", + "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams", + "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBody": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody", + "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBodyWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody", + "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MixedParamsClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams", + "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBody": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody", + "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBodyWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody", + "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MixedParamsClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams", + "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams", + "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBody": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody", + "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBodyWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody", + "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MultipleParamsClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams", + "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBody": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody", + "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBodyWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody", + "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery", + "azure.clientgenerator.core.clientinitialization.MultipleParamsClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams", + "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias", + "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedName": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName", + "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedNameWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName", + "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalName": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName", + "azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalNameWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName", + "azure.clientgenerator.core.clientinitialization.ParamAliasClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias", + "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedName": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName", + "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedNameWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName", + "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalName": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName", + "azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalNameWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName", + "azure.clientgenerator.core.clientinitialization.ParamAliasClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery", + "azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery", + "azure.clientgenerator.core.clientinitialization.PathParamClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam", + "azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamClient.getStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone", + "azure.clientgenerator.core.clientinitialization.PathParamClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery", + "azure.clientgenerator.core.clientinitialization.PathParamClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery", + "azure.clientgenerator.core.clientinitialization.PathParamClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam", "azure.clientgenerator.core.clientinitialization.models.BlobProperties": "Service.BlobProperties", "azure.clientgenerator.core.clientinitialization.models.Input": "Service.Input", - "azure.clientgenerator.core.clientinitialization.models.WithBodyRequest": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.withBody.Request.anonymous", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandalone": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQuery": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQueryWithResponse": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery", - "azure.clientgenerator.core.clientinitialization.parentclient.ChildClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient", - "azure.clientgenerator.core.clientinitialization.parentclient.ParentAsyncClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient", - "azure.clientgenerator.core.clientinitialization.parentclient.ParentClient": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient", - "azure.clientgenerator.core.clientinitialization.parentclient.ParentClientBuilder": "_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient" + "azure.clientgenerator.core.clientinitialization.models.WithBodyRequest": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.withBody.Request.anonymous", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandaloneWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQuery": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQueryWithResponse": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery", + "azure.clientgenerator.core.clientinitialization.parentclient.ChildClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient", + "azure.clientgenerator.core.clientinitialization.parentclient.ParentAsyncClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient", + "azure.clientgenerator.core.clientinitialization.parentclient.ParentClient": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient", + "azure.clientgenerator.core.clientinitialization.parentclient.ParentClientBuilder": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient" } } diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_metadata.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_metadata.json index ee82536275c..8b2cc8b5ed8 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_metadata.json +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/azure-clientgenerator-core-clientinitialization_metadata.json @@ -1 +1 @@ -{"flavor":"Azure","crossLanguageDefinitions":{"azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBody":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBodyWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBody":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBodyWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.HeaderParam","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBody":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBodyWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBody":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBodyWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MixedParams","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBody":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBodyWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBody":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBodyWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.MultipleParams","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedName":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedNameWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalName":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalNameWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedName":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedNameWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalName":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalNameWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParamAlias","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam","azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.getStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.PathParam","azure.clientgenerator.core.clientinitialization.models.BlobProperties":"Service.BlobProperties","azure.clientgenerator.core.clientinitialization.models.Input":"Service.Input","azure.clientgenerator.core.clientinitialization.models.WithBodyRequest":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.withBody.Request.anonymous","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandalone":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQuery":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQueryWithResponse":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient.ChildClient","azure.clientgenerator.core.clientinitialization.parentclient.ParentAsyncClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient","azure.clientgenerator.core.clientinitialization.parentclient.ParentClient":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient","azure.clientgenerator.core.clientinitialization.parentclient.ParentClientBuilder":"_Specs_.Azure.ClientGeneratorCore.ClientInitialization.ParentClient"},"generatedFiles":["src/main/java/azure/clientgenerator/core/clientinitialization/HeaderParamAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/HeaderParamClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/HeaderParamClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/MixedParamsAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MixedParamsClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MixedParamsClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/MultipleParamsAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MultipleParamsClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MultipleParamsClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/ParamAliasAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/ParamAliasClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/ParamAliasClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/PathParamAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/PathParamClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/PathParamClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/ChildClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/HeaderParamClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/MixedParamsClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/MultipleParamsClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/ParamAliasClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/ParentClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/PathParamClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/package-info.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/BlobProperties.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/Input.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/WithBodyRequest.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/package-info.java","src/main/java/azure/clientgenerator/core/clientinitialization/package-info.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ChildAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ChildClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ChildClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ParentAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ParentClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ParentClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"Azure","crossLanguageDefinitions":{"azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBody":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withBodyWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBody":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withBodyWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withBody","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam.withQuery","azure.clientgenerator.core.clientinitialization.HeaderParamClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.HeaderParam","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBody":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withBodyWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBody":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withBodyWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withBody","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams.withQuery","azure.clientgenerator.core.clientinitialization.MixedParamsClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MixedParams","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBody":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withBodyWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBody":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withBodyWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withBody","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams.withQuery","azure.clientgenerator.core.clientinitialization.MultipleParamsClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.MultipleParams","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedName":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withAliasedNameWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalName":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasAsyncClient.withOriginalNameWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedName":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withAliasedNameWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withAliasedName","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalName":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasClient.withOriginalNameWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias.withOriginalName","azure.clientgenerator.core.clientinitialization.ParamAliasClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParamAlias","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam","azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.deleteStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.getStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.getStandalone","azure.clientgenerator.core.clientinitialization.PathParamClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam.withQuery","azure.clientgenerator.core.clientinitialization.PathParamClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.PathParam","azure.clientgenerator.core.clientinitialization.models.BlobProperties":"Service.BlobProperties","azure.clientgenerator.core.clientinitialization.models.Input":"Service.Input","azure.clientgenerator.core.clientinitialization.models.WithBodyRequest":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.withBody.Request.anonymous","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildAsyncClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.deleteStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.deleteStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandalone":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.getStandaloneWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.getStandalone","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQuery":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildClient.withQueryWithResponse":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient.withQuery","azure.clientgenerator.core.clientinitialization.parentclient.ChildClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient.ChildClient","azure.clientgenerator.core.clientinitialization.parentclient.ParentAsyncClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient","azure.clientgenerator.core.clientinitialization.parentclient.ParentClient":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient","azure.clientgenerator.core.clientinitialization.parentclient.ParentClientBuilder":"_Specs_.Azure.ClientGenerator.Core.ClientInitialization.ParentClient"},"generatedFiles":["src/main/java/azure/clientgenerator/core/clientinitialization/HeaderParamAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/HeaderParamClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/HeaderParamClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/MixedParamsAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MixedParamsClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MixedParamsClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/MultipleParamsAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MultipleParamsClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/MultipleParamsClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/ParamAliasAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/ParamAliasClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/ParamAliasClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/PathParamAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/PathParamClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/PathParamClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/ChildClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/HeaderParamClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/MixedParamsClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/MultipleParamsClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/ParamAliasClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/ParentClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/PathParamClientImpl.java","src/main/java/azure/clientgenerator/core/clientinitialization/implementation/package-info.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/BlobProperties.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/Input.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/WithBodyRequest.java","src/main/java/azure/clientgenerator/core/clientinitialization/models/package-info.java","src/main/java/azure/clientgenerator/core/clientinitialization/package-info.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ChildAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ChildClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ChildClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ParentAsyncClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ParentClient.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/ParentClientBuilder.java","src/main/java/azure/clientgenerator/core/clientinitialization/parentclient/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/documentation_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/documentation_apiview_properties.json new file mode 100644 index 00000000000..d2aa92134d7 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/documentation_apiview_properties.json @@ -0,0 +1,37 @@ +{ + "flavor": "Azure", + "CrossLanguageDefinitionId": { + "documentation.DocumentationClientBuilder": "Documentation", + "documentation.ListsAsyncClient": "Documentation.Lists", + "documentation.ListsAsyncClient.bulletPointsModel": "Documentation.Lists.bulletPointsModel", + "documentation.ListsAsyncClient.bulletPointsModelWithResponse": "Documentation.Lists.bulletPointsModel", + "documentation.ListsAsyncClient.bulletPointsOp": "Documentation.Lists.bulletPointsOp", + "documentation.ListsAsyncClient.bulletPointsOpWithResponse": "Documentation.Lists.bulletPointsOp", + "documentation.ListsAsyncClient.numbered": "Documentation.Lists.numbered", + "documentation.ListsAsyncClient.numberedWithResponse": "Documentation.Lists.numbered", + "documentation.ListsClient": "Documentation.Lists", + "documentation.ListsClient.bulletPointsModel": "Documentation.Lists.bulletPointsModel", + "documentation.ListsClient.bulletPointsModelWithResponse": "Documentation.Lists.bulletPointsModel", + "documentation.ListsClient.bulletPointsOp": "Documentation.Lists.bulletPointsOp", + "documentation.ListsClient.bulletPointsOpWithResponse": "Documentation.Lists.bulletPointsOp", + "documentation.ListsClient.numbered": "Documentation.Lists.numbered", + "documentation.ListsClient.numberedWithResponse": "Documentation.Lists.numbered", + "documentation.TextFormattingAsyncClient": "Documentation.TextFormatting", + "documentation.TextFormattingAsyncClient.boldText": "Documentation.TextFormatting.boldText", + "documentation.TextFormattingAsyncClient.boldTextWithResponse": "Documentation.TextFormatting.boldText", + "documentation.TextFormattingAsyncClient.combinedFormatting": "Documentation.TextFormatting.combinedFormatting", + "documentation.TextFormattingAsyncClient.combinedFormattingWithResponse": "Documentation.TextFormatting.combinedFormatting", + "documentation.TextFormattingAsyncClient.italicText": "Documentation.TextFormatting.italicText", + "documentation.TextFormattingAsyncClient.italicTextWithResponse": "Documentation.TextFormatting.italicText", + "documentation.TextFormattingClient": "Documentation.TextFormatting", + "documentation.TextFormattingClient.boldText": "Documentation.TextFormatting.boldText", + "documentation.TextFormattingClient.boldTextWithResponse": "Documentation.TextFormatting.boldText", + "documentation.TextFormattingClient.combinedFormatting": "Documentation.TextFormatting.combinedFormatting", + "documentation.TextFormattingClient.combinedFormattingWithResponse": "Documentation.TextFormatting.combinedFormatting", + "documentation.TextFormattingClient.italicText": "Documentation.TextFormatting.italicText", + "documentation.TextFormattingClient.italicTextWithResponse": "Documentation.TextFormatting.italicText", + "documentation.lists.implementation.models.BulletPointsModelRequest": "Documentation.Lists.bulletPointsModel.Request.anonymous", + "documentation.lists.models.BulletPointsEnum": "Documentation.Lists.BulletPointsEnum", + "documentation.lists.models.BulletPointsModel": "Documentation.Lists.BulletPointsModel" + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/documentation_metadata.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/documentation_metadata.json new file mode 100644 index 00000000000..8e1a954c7f1 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/documentation_metadata.json @@ -0,0 +1 @@ +{"flavor":"Azure","crossLanguageDefinitions":{"documentation.DocumentationClientBuilder":"Documentation","documentation.ListsAsyncClient":"Documentation.Lists","documentation.ListsAsyncClient.bulletPointsModel":"Documentation.Lists.bulletPointsModel","documentation.ListsAsyncClient.bulletPointsModelWithResponse":"Documentation.Lists.bulletPointsModel","documentation.ListsAsyncClient.bulletPointsOp":"Documentation.Lists.bulletPointsOp","documentation.ListsAsyncClient.bulletPointsOpWithResponse":"Documentation.Lists.bulletPointsOp","documentation.ListsAsyncClient.numbered":"Documentation.Lists.numbered","documentation.ListsAsyncClient.numberedWithResponse":"Documentation.Lists.numbered","documentation.ListsClient":"Documentation.Lists","documentation.ListsClient.bulletPointsModel":"Documentation.Lists.bulletPointsModel","documentation.ListsClient.bulletPointsModelWithResponse":"Documentation.Lists.bulletPointsModel","documentation.ListsClient.bulletPointsOp":"Documentation.Lists.bulletPointsOp","documentation.ListsClient.bulletPointsOpWithResponse":"Documentation.Lists.bulletPointsOp","documentation.ListsClient.numbered":"Documentation.Lists.numbered","documentation.ListsClient.numberedWithResponse":"Documentation.Lists.numbered","documentation.TextFormattingAsyncClient":"Documentation.TextFormatting","documentation.TextFormattingAsyncClient.boldText":"Documentation.TextFormatting.boldText","documentation.TextFormattingAsyncClient.boldTextWithResponse":"Documentation.TextFormatting.boldText","documentation.TextFormattingAsyncClient.combinedFormatting":"Documentation.TextFormatting.combinedFormatting","documentation.TextFormattingAsyncClient.combinedFormattingWithResponse":"Documentation.TextFormatting.combinedFormatting","documentation.TextFormattingAsyncClient.italicText":"Documentation.TextFormatting.italicText","documentation.TextFormattingAsyncClient.italicTextWithResponse":"Documentation.TextFormatting.italicText","documentation.TextFormattingClient":"Documentation.TextFormatting","documentation.TextFormattingClient.boldText":"Documentation.TextFormatting.boldText","documentation.TextFormattingClient.boldTextWithResponse":"Documentation.TextFormatting.boldText","documentation.TextFormattingClient.combinedFormatting":"Documentation.TextFormatting.combinedFormatting","documentation.TextFormattingClient.combinedFormattingWithResponse":"Documentation.TextFormatting.combinedFormatting","documentation.TextFormattingClient.italicText":"Documentation.TextFormatting.italicText","documentation.TextFormattingClient.italicTextWithResponse":"Documentation.TextFormatting.italicText","documentation.lists.implementation.models.BulletPointsModelRequest":"Documentation.Lists.bulletPointsModel.Request.anonymous","documentation.lists.models.BulletPointsEnum":"Documentation.Lists.BulletPointsEnum","documentation.lists.models.BulletPointsModel":"Documentation.Lists.BulletPointsModel"},"generatedFiles":["src/main/java/documentation/DocumentationClientBuilder.java","src/main/java/documentation/ListsAsyncClient.java","src/main/java/documentation/ListsClient.java","src/main/java/documentation/TextFormattingAsyncClient.java","src/main/java/documentation/TextFormattingClient.java","src/main/java/documentation/implementation/DocumentationClientImpl.java","src/main/java/documentation/implementation/ListsImpl.java","src/main/java/documentation/implementation/TextFormattingsImpl.java","src/main/java/documentation/implementation/package-info.java","src/main/java/documentation/lists/implementation/models/BulletPointsModelRequest.java","src/main/java/documentation/lists/implementation/models/package-info.java","src/main/java/documentation/lists/models/BulletPointsEnum.java","src/main/java/documentation/lists/models/BulletPointsModel.java","src/main/java/documentation/lists/models/package-info.java","src/main/java/documentation/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-array_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-array_apiview_properties.json new file mode 100644 index 00000000000..47a20deb2f2 --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-array_apiview_properties.json @@ -0,0 +1,28 @@ +{ + "flavor": "Azure", + "CrossLanguageDefinitionId": { + "encode.array.ArrayAsyncClient": "Encode.Array.Property", + "encode.array.ArrayAsyncClient.commaDelimited": "Encode.Array.Property.commaDelimited", + "encode.array.ArrayAsyncClient.commaDelimitedWithResponse": "Encode.Array.Property.commaDelimited", + "encode.array.ArrayAsyncClient.newlineDelimited": "Encode.Array.Property.newlineDelimited", + "encode.array.ArrayAsyncClient.newlineDelimitedWithResponse": "Encode.Array.Property.newlineDelimited", + "encode.array.ArrayAsyncClient.pipeDelimited": "Encode.Array.Property.pipeDelimited", + "encode.array.ArrayAsyncClient.pipeDelimitedWithResponse": "Encode.Array.Property.pipeDelimited", + "encode.array.ArrayAsyncClient.spaceDelimited": "Encode.Array.Property.spaceDelimited", + "encode.array.ArrayAsyncClient.spaceDelimitedWithResponse": "Encode.Array.Property.spaceDelimited", + "encode.array.ArrayClient": "Encode.Array.Property", + "encode.array.ArrayClient.commaDelimited": "Encode.Array.Property.commaDelimited", + "encode.array.ArrayClient.commaDelimitedWithResponse": "Encode.Array.Property.commaDelimited", + "encode.array.ArrayClient.newlineDelimited": "Encode.Array.Property.newlineDelimited", + "encode.array.ArrayClient.newlineDelimitedWithResponse": "Encode.Array.Property.newlineDelimited", + "encode.array.ArrayClient.pipeDelimited": "Encode.Array.Property.pipeDelimited", + "encode.array.ArrayClient.pipeDelimitedWithResponse": "Encode.Array.Property.pipeDelimited", + "encode.array.ArrayClient.spaceDelimited": "Encode.Array.Property.spaceDelimited", + "encode.array.ArrayClient.spaceDelimitedWithResponse": "Encode.Array.Property.spaceDelimited", + "encode.array.ArrayClientBuilder": "Encode.Array", + "encode.array.models.CommaDelimitedArrayProperty": "Encode.Array.CommaDelimitedArrayProperty", + "encode.array.models.NewlineDelimitedArrayProperty": "Encode.Array.NewlineDelimitedArrayProperty", + "encode.array.models.PipeDelimitedArrayProperty": "Encode.Array.PipeDelimitedArrayProperty", + "encode.array.models.SpaceDelimitedArrayProperty": "Encode.Array.SpaceDelimitedArrayProperty" + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-array_metadata.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-array_metadata.json new file mode 100644 index 00000000000..a094a17ad8f --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/encode-array_metadata.json @@ -0,0 +1 @@ +{"flavor":"Azure","crossLanguageDefinitions":{"encode.array.ArrayAsyncClient":"Encode.Array.Property","encode.array.ArrayAsyncClient.commaDelimited":"Encode.Array.Property.commaDelimited","encode.array.ArrayAsyncClient.commaDelimitedWithResponse":"Encode.Array.Property.commaDelimited","encode.array.ArrayAsyncClient.newlineDelimited":"Encode.Array.Property.newlineDelimited","encode.array.ArrayAsyncClient.newlineDelimitedWithResponse":"Encode.Array.Property.newlineDelimited","encode.array.ArrayAsyncClient.pipeDelimited":"Encode.Array.Property.pipeDelimited","encode.array.ArrayAsyncClient.pipeDelimitedWithResponse":"Encode.Array.Property.pipeDelimited","encode.array.ArrayAsyncClient.spaceDelimited":"Encode.Array.Property.spaceDelimited","encode.array.ArrayAsyncClient.spaceDelimitedWithResponse":"Encode.Array.Property.spaceDelimited","encode.array.ArrayClient":"Encode.Array.Property","encode.array.ArrayClient.commaDelimited":"Encode.Array.Property.commaDelimited","encode.array.ArrayClient.commaDelimitedWithResponse":"Encode.Array.Property.commaDelimited","encode.array.ArrayClient.newlineDelimited":"Encode.Array.Property.newlineDelimited","encode.array.ArrayClient.newlineDelimitedWithResponse":"Encode.Array.Property.newlineDelimited","encode.array.ArrayClient.pipeDelimited":"Encode.Array.Property.pipeDelimited","encode.array.ArrayClient.pipeDelimitedWithResponse":"Encode.Array.Property.pipeDelimited","encode.array.ArrayClient.spaceDelimited":"Encode.Array.Property.spaceDelimited","encode.array.ArrayClient.spaceDelimitedWithResponse":"Encode.Array.Property.spaceDelimited","encode.array.ArrayClientBuilder":"Encode.Array","encode.array.models.CommaDelimitedArrayProperty":"Encode.Array.CommaDelimitedArrayProperty","encode.array.models.NewlineDelimitedArrayProperty":"Encode.Array.NewlineDelimitedArrayProperty","encode.array.models.PipeDelimitedArrayProperty":"Encode.Array.PipeDelimitedArrayProperty","encode.array.models.SpaceDelimitedArrayProperty":"Encode.Array.SpaceDelimitedArrayProperty"},"generatedFiles":["src/main/java/encode/array/ArrayAsyncClient.java","src/main/java/encode/array/ArrayClient.java","src/main/java/encode/array/ArrayClientBuilder.java","src/main/java/encode/array/implementation/ArrayClientImpl.java","src/main/java/encode/array/implementation/PropertiesImpl.java","src/main/java/encode/array/implementation/package-info.java","src/main/java/encode/array/models/CommaDelimitedArrayProperty.java","src/main/java/encode/array/models/NewlineDelimitedArrayProperty.java","src/main/java/encode/array/models/PipeDelimitedArrayProperty.java","src/main/java/encode/array/models/SpaceDelimitedArrayProperty.java","src/main/java/encode/array/models/package-info.java","src/main/java/encode/array/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/specialwords_apiview_properties.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_apiview_properties.json index b90bd80766c..8884bf558b4 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_apiview_properties.json +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_apiview_properties.json @@ -2,9 +2,13 @@ "flavor": "Azure", "CrossLanguageDefinitionId": { "specialwords.ModelPropertiesAsyncClient": "SpecialWords.ModelProperties", + "specialwords.ModelPropertiesAsyncClient.dictMethods": "SpecialWords.ModelProperties.dictMethods", + "specialwords.ModelPropertiesAsyncClient.dictMethodsWithResponse": "SpecialWords.ModelProperties.dictMethods", "specialwords.ModelPropertiesAsyncClient.sameAsModel": "SpecialWords.ModelProperties.sameAsModel", "specialwords.ModelPropertiesAsyncClient.sameAsModelWithResponse": "SpecialWords.ModelProperties.sameAsModel", "specialwords.ModelPropertiesClient": "SpecialWords.ModelProperties", + "specialwords.ModelPropertiesClient.dictMethods": "SpecialWords.ModelProperties.dictMethods", + "specialwords.ModelPropertiesClient.dictMethodsWithResponse": "SpecialWords.ModelProperties.dictMethods", "specialwords.ModelPropertiesClient.sameAsModel": "SpecialWords.ModelProperties.sameAsModel", "specialwords.ModelPropertiesClient.sameAsModelWithResponse": "SpecialWords.ModelProperties.sameAsModel", "specialwords.ModelsAsyncClient": "SpecialWords.Models", @@ -410,6 +414,7 @@ "specialwords.ParametersClient.withYield": "SpecialWords.Parameters.withYield", "specialwords.ParametersClient.withYieldWithResponse": "SpecialWords.Parameters.withYield", "specialwords.SpecialWordsClientBuilder": "SpecialWords", + "specialwords.modelproperties.models.DictMethods": "SpecialWords.ModelProperties.DictMethods", "specialwords.modelproperties.models.SameAsModel": "SpecialWords.ModelProperties.SameAsModel", "specialwords.models.models.And": "SpecialWords.Models.and", "specialwords.models.models.As": "SpecialWords.Models.as", diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_metadata.json b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_metadata.json index b903c2970dd..b15d6bfff0e 100644 --- a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_metadata.json +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/META-INF/specialwords_metadata.json @@ -1 +1 @@ -{"flavor":"Azure","crossLanguageDefinitions":{"specialwords.ModelPropertiesAsyncClient":"SpecialWords.ModelProperties","specialwords.ModelPropertiesAsyncClient.sameAsModel":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelPropertiesAsyncClient.sameAsModelWithResponse":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelPropertiesClient":"SpecialWords.ModelProperties","specialwords.ModelPropertiesClient.sameAsModel":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelPropertiesClient.sameAsModelWithResponse":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelsAsyncClient":"SpecialWords.Models","specialwords.ModelsAsyncClient.withAnd":"SpecialWords.Models.withAnd","specialwords.ModelsAsyncClient.withAndWithResponse":"SpecialWords.Models.withAnd","specialwords.ModelsAsyncClient.withAs":"SpecialWords.Models.withAs","specialwords.ModelsAsyncClient.withAsWithResponse":"SpecialWords.Models.withAs","specialwords.ModelsAsyncClient.withAssert":"SpecialWords.Models.withAssert","specialwords.ModelsAsyncClient.withAssertWithResponse":"SpecialWords.Models.withAssert","specialwords.ModelsAsyncClient.withAsyncWithResponse":"SpecialWords.Models.withAsync","specialwords.ModelsAsyncClient.withAwait":"SpecialWords.Models.withAwait","specialwords.ModelsAsyncClient.withAwaitWithResponse":"SpecialWords.Models.withAwait","specialwords.ModelsAsyncClient.withBreak":"SpecialWords.Models.withBreak","specialwords.ModelsAsyncClient.withBreakWithResponse":"SpecialWords.Models.withBreak","specialwords.ModelsAsyncClient.withClass":"SpecialWords.Models.withClass","specialwords.ModelsAsyncClient.withClassWithResponse":"SpecialWords.Models.withClass","specialwords.ModelsAsyncClient.withConstructor":"SpecialWords.Models.withConstructor","specialwords.ModelsAsyncClient.withConstructorWithResponse":"SpecialWords.Models.withConstructor","specialwords.ModelsAsyncClient.withContinue":"SpecialWords.Models.withContinue","specialwords.ModelsAsyncClient.withContinueWithResponse":"SpecialWords.Models.withContinue","specialwords.ModelsAsyncClient.withDef":"SpecialWords.Models.withDef","specialwords.ModelsAsyncClient.withDefWithResponse":"SpecialWords.Models.withDef","specialwords.ModelsAsyncClient.withDel":"SpecialWords.Models.withDel","specialwords.ModelsAsyncClient.withDelWithResponse":"SpecialWords.Models.withDel","specialwords.ModelsAsyncClient.withElif":"SpecialWords.Models.withElif","specialwords.ModelsAsyncClient.withElifWithResponse":"SpecialWords.Models.withElif","specialwords.ModelsAsyncClient.withElse":"SpecialWords.Models.withElse","specialwords.ModelsAsyncClient.withElseWithResponse":"SpecialWords.Models.withElse","specialwords.ModelsAsyncClient.withExcept":"SpecialWords.Models.withExcept","specialwords.ModelsAsyncClient.withExceptWithResponse":"SpecialWords.Models.withExcept","specialwords.ModelsAsyncClient.withExec":"SpecialWords.Models.withExec","specialwords.ModelsAsyncClient.withExecWithResponse":"SpecialWords.Models.withExec","specialwords.ModelsAsyncClient.withFinally":"SpecialWords.Models.withFinally","specialwords.ModelsAsyncClient.withFinallyWithResponse":"SpecialWords.Models.withFinally","specialwords.ModelsAsyncClient.withFor":"SpecialWords.Models.withFor","specialwords.ModelsAsyncClient.withForWithResponse":"SpecialWords.Models.withFor","specialwords.ModelsAsyncClient.withFrom":"SpecialWords.Models.withFrom","specialwords.ModelsAsyncClient.withFromWithResponse":"SpecialWords.Models.withFrom","specialwords.ModelsAsyncClient.withGlobal":"SpecialWords.Models.withGlobal","specialwords.ModelsAsyncClient.withGlobalWithResponse":"SpecialWords.Models.withGlobal","specialwords.ModelsAsyncClient.withIf":"SpecialWords.Models.withIf","specialwords.ModelsAsyncClient.withIfWithResponse":"SpecialWords.Models.withIf","specialwords.ModelsAsyncClient.withImport":"SpecialWords.Models.withImport","specialwords.ModelsAsyncClient.withImportWithResponse":"SpecialWords.Models.withImport","specialwords.ModelsAsyncClient.withIn":"SpecialWords.Models.withIn","specialwords.ModelsAsyncClient.withInWithResponse":"SpecialWords.Models.withIn","specialwords.ModelsAsyncClient.withIs":"SpecialWords.Models.withIs","specialwords.ModelsAsyncClient.withIsWithResponse":"SpecialWords.Models.withIs","specialwords.ModelsAsyncClient.withLambda":"SpecialWords.Models.withLambda","specialwords.ModelsAsyncClient.withLambdaWithResponse":"SpecialWords.Models.withLambda","specialwords.ModelsAsyncClient.withNot":"SpecialWords.Models.withNot","specialwords.ModelsAsyncClient.withNotWithResponse":"SpecialWords.Models.withNot","specialwords.ModelsAsyncClient.withOr":"SpecialWords.Models.withOr","specialwords.ModelsAsyncClient.withOrWithResponse":"SpecialWords.Models.withOr","specialwords.ModelsAsyncClient.withPass":"SpecialWords.Models.withPass","specialwords.ModelsAsyncClient.withPassWithResponse":"SpecialWords.Models.withPass","specialwords.ModelsAsyncClient.withRaise":"SpecialWords.Models.withRaise","specialwords.ModelsAsyncClient.withRaiseWithResponse":"SpecialWords.Models.withRaise","specialwords.ModelsAsyncClient.withReturn":"SpecialWords.Models.withReturn","specialwords.ModelsAsyncClient.withReturnWithResponse":"SpecialWords.Models.withReturn","specialwords.ModelsAsyncClient.withTry":"SpecialWords.Models.withTry","specialwords.ModelsAsyncClient.withTryWithResponse":"SpecialWords.Models.withTry","specialwords.ModelsAsyncClient.withWhile":"SpecialWords.Models.withWhile","specialwords.ModelsAsyncClient.withWhileWithResponse":"SpecialWords.Models.withWhile","specialwords.ModelsAsyncClient.withWith":"SpecialWords.Models.withWith","specialwords.ModelsAsyncClient.withWithWithResponse":"SpecialWords.Models.withWith","specialwords.ModelsAsyncClient.withYield":"SpecialWords.Models.withYield","specialwords.ModelsAsyncClient.withYieldWithResponse":"SpecialWords.Models.withYield","specialwords.ModelsClient":"SpecialWords.Models","specialwords.ModelsClient.withAnd":"SpecialWords.Models.withAnd","specialwords.ModelsClient.withAndWithResponse":"SpecialWords.Models.withAnd","specialwords.ModelsClient.withAs":"SpecialWords.Models.withAs","specialwords.ModelsClient.withAsWithResponse":"SpecialWords.Models.withAs","specialwords.ModelsClient.withAssert":"SpecialWords.Models.withAssert","specialwords.ModelsClient.withAssertWithResponse":"SpecialWords.Models.withAssert","specialwords.ModelsClient.withAsyncWithResponse":"SpecialWords.Models.withAsync","specialwords.ModelsClient.withAwait":"SpecialWords.Models.withAwait","specialwords.ModelsClient.withAwaitWithResponse":"SpecialWords.Models.withAwait","specialwords.ModelsClient.withBreak":"SpecialWords.Models.withBreak","specialwords.ModelsClient.withBreakWithResponse":"SpecialWords.Models.withBreak","specialwords.ModelsClient.withClass":"SpecialWords.Models.withClass","specialwords.ModelsClient.withClassWithResponse":"SpecialWords.Models.withClass","specialwords.ModelsClient.withConstructor":"SpecialWords.Models.withConstructor","specialwords.ModelsClient.withConstructorWithResponse":"SpecialWords.Models.withConstructor","specialwords.ModelsClient.withContinue":"SpecialWords.Models.withContinue","specialwords.ModelsClient.withContinueWithResponse":"SpecialWords.Models.withContinue","specialwords.ModelsClient.withDef":"SpecialWords.Models.withDef","specialwords.ModelsClient.withDefWithResponse":"SpecialWords.Models.withDef","specialwords.ModelsClient.withDel":"SpecialWords.Models.withDel","specialwords.ModelsClient.withDelWithResponse":"SpecialWords.Models.withDel","specialwords.ModelsClient.withElif":"SpecialWords.Models.withElif","specialwords.ModelsClient.withElifWithResponse":"SpecialWords.Models.withElif","specialwords.ModelsClient.withElse":"SpecialWords.Models.withElse","specialwords.ModelsClient.withElseWithResponse":"SpecialWords.Models.withElse","specialwords.ModelsClient.withExcept":"SpecialWords.Models.withExcept","specialwords.ModelsClient.withExceptWithResponse":"SpecialWords.Models.withExcept","specialwords.ModelsClient.withExec":"SpecialWords.Models.withExec","specialwords.ModelsClient.withExecWithResponse":"SpecialWords.Models.withExec","specialwords.ModelsClient.withFinally":"SpecialWords.Models.withFinally","specialwords.ModelsClient.withFinallyWithResponse":"SpecialWords.Models.withFinally","specialwords.ModelsClient.withFor":"SpecialWords.Models.withFor","specialwords.ModelsClient.withForWithResponse":"SpecialWords.Models.withFor","specialwords.ModelsClient.withFrom":"SpecialWords.Models.withFrom","specialwords.ModelsClient.withFromWithResponse":"SpecialWords.Models.withFrom","specialwords.ModelsClient.withGlobal":"SpecialWords.Models.withGlobal","specialwords.ModelsClient.withGlobalWithResponse":"SpecialWords.Models.withGlobal","specialwords.ModelsClient.withIf":"SpecialWords.Models.withIf","specialwords.ModelsClient.withIfWithResponse":"SpecialWords.Models.withIf","specialwords.ModelsClient.withImport":"SpecialWords.Models.withImport","specialwords.ModelsClient.withImportWithResponse":"SpecialWords.Models.withImport","specialwords.ModelsClient.withIn":"SpecialWords.Models.withIn","specialwords.ModelsClient.withInWithResponse":"SpecialWords.Models.withIn","specialwords.ModelsClient.withIs":"SpecialWords.Models.withIs","specialwords.ModelsClient.withIsWithResponse":"SpecialWords.Models.withIs","specialwords.ModelsClient.withLambda":"SpecialWords.Models.withLambda","specialwords.ModelsClient.withLambdaWithResponse":"SpecialWords.Models.withLambda","specialwords.ModelsClient.withNot":"SpecialWords.Models.withNot","specialwords.ModelsClient.withNotWithResponse":"SpecialWords.Models.withNot","specialwords.ModelsClient.withOr":"SpecialWords.Models.withOr","specialwords.ModelsClient.withOrWithResponse":"SpecialWords.Models.withOr","specialwords.ModelsClient.withPass":"SpecialWords.Models.withPass","specialwords.ModelsClient.withPassWithResponse":"SpecialWords.Models.withPass","specialwords.ModelsClient.withRaise":"SpecialWords.Models.withRaise","specialwords.ModelsClient.withRaiseWithResponse":"SpecialWords.Models.withRaise","specialwords.ModelsClient.withReturn":"SpecialWords.Models.withReturn","specialwords.ModelsClient.withReturnWithResponse":"SpecialWords.Models.withReturn","specialwords.ModelsClient.withTry":"SpecialWords.Models.withTry","specialwords.ModelsClient.withTryWithResponse":"SpecialWords.Models.withTry","specialwords.ModelsClient.withWhile":"SpecialWords.Models.withWhile","specialwords.ModelsClient.withWhileWithResponse":"SpecialWords.Models.withWhile","specialwords.ModelsClient.withWith":"SpecialWords.Models.withWith","specialwords.ModelsClient.withWithWithResponse":"SpecialWords.Models.withWith","specialwords.ModelsClient.withYield":"SpecialWords.Models.withYield","specialwords.ModelsClient.withYieldWithResponse":"SpecialWords.Models.withYield","specialwords.OperationsAsyncClient":"SpecialWords.Operations","specialwords.OperationsAsyncClient.and":"SpecialWords.Operations.and","specialwords.OperationsAsyncClient.andWithResponse":"SpecialWords.Operations.and","specialwords.OperationsAsyncClient.as":"SpecialWords.Operations.as","specialwords.OperationsAsyncClient.asWithResponse":"SpecialWords.Operations.as","specialwords.OperationsAsyncClient.assertMethod":"SpecialWords.Operations.assert","specialwords.OperationsAsyncClient.assertMethodWithResponse":"SpecialWords.Operations.assert","specialwords.OperationsAsyncClient.async":"SpecialWords.Operations.async","specialwords.OperationsAsyncClient.asyncWithResponse":"SpecialWords.Operations.async","specialwords.OperationsAsyncClient.await":"SpecialWords.Operations.await","specialwords.OperationsAsyncClient.awaitWithResponse":"SpecialWords.Operations.await","specialwords.OperationsAsyncClient.breakMethod":"SpecialWords.Operations.break","specialwords.OperationsAsyncClient.breakMethodWithResponse":"SpecialWords.Operations.break","specialwords.OperationsAsyncClient.classMethod":"SpecialWords.Operations.class","specialwords.OperationsAsyncClient.classMethodWithResponse":"SpecialWords.Operations.class","specialwords.OperationsAsyncClient.constructor":"SpecialWords.Operations.constructor","specialwords.OperationsAsyncClient.constructorWithResponse":"SpecialWords.Operations.constructor","specialwords.OperationsAsyncClient.continueMethod":"SpecialWords.Operations.continue","specialwords.OperationsAsyncClient.continueMethodWithResponse":"SpecialWords.Operations.continue","specialwords.OperationsAsyncClient.def":"SpecialWords.Operations.def","specialwords.OperationsAsyncClient.defWithResponse":"SpecialWords.Operations.def","specialwords.OperationsAsyncClient.del":"SpecialWords.Operations.del","specialwords.OperationsAsyncClient.delWithResponse":"SpecialWords.Operations.del","specialwords.OperationsAsyncClient.elif":"SpecialWords.Operations.elif","specialwords.OperationsAsyncClient.elifWithResponse":"SpecialWords.Operations.elif","specialwords.OperationsAsyncClient.elseMethod":"SpecialWords.Operations.else","specialwords.OperationsAsyncClient.elseMethodWithResponse":"SpecialWords.Operations.else","specialwords.OperationsAsyncClient.except":"SpecialWords.Operations.except","specialwords.OperationsAsyncClient.exceptWithResponse":"SpecialWords.Operations.except","specialwords.OperationsAsyncClient.exec":"SpecialWords.Operations.exec","specialwords.OperationsAsyncClient.execWithResponse":"SpecialWords.Operations.exec","specialwords.OperationsAsyncClient.finallyMethod":"SpecialWords.Operations.finally","specialwords.OperationsAsyncClient.finallyMethodWithResponse":"SpecialWords.Operations.finally","specialwords.OperationsAsyncClient.forMethod":"SpecialWords.Operations.for","specialwords.OperationsAsyncClient.forMethodWithResponse":"SpecialWords.Operations.for","specialwords.OperationsAsyncClient.from":"SpecialWords.Operations.from","specialwords.OperationsAsyncClient.fromWithResponse":"SpecialWords.Operations.from","specialwords.OperationsAsyncClient.global":"SpecialWords.Operations.global","specialwords.OperationsAsyncClient.globalWithResponse":"SpecialWords.Operations.global","specialwords.OperationsAsyncClient.ifMethod":"SpecialWords.Operations.if","specialwords.OperationsAsyncClient.ifMethodWithResponse":"SpecialWords.Operations.if","specialwords.OperationsAsyncClient.importMethod":"SpecialWords.Operations.import","specialwords.OperationsAsyncClient.importMethodWithResponse":"SpecialWords.Operations.import","specialwords.OperationsAsyncClient.in":"SpecialWords.Operations.in","specialwords.OperationsAsyncClient.inWithResponse":"SpecialWords.Operations.in","specialwords.OperationsAsyncClient.is":"SpecialWords.Operations.is","specialwords.OperationsAsyncClient.isWithResponse":"SpecialWords.Operations.is","specialwords.OperationsAsyncClient.lambda":"SpecialWords.Operations.lambda","specialwords.OperationsAsyncClient.lambdaWithResponse":"SpecialWords.Operations.lambda","specialwords.OperationsAsyncClient.not":"SpecialWords.Operations.not","specialwords.OperationsAsyncClient.notWithResponse":"SpecialWords.Operations.not","specialwords.OperationsAsyncClient.or":"SpecialWords.Operations.or","specialwords.OperationsAsyncClient.orWithResponse":"SpecialWords.Operations.or","specialwords.OperationsAsyncClient.pass":"SpecialWords.Operations.pass","specialwords.OperationsAsyncClient.passWithResponse":"SpecialWords.Operations.pass","specialwords.OperationsAsyncClient.raise":"SpecialWords.Operations.raise","specialwords.OperationsAsyncClient.raiseWithResponse":"SpecialWords.Operations.raise","specialwords.OperationsAsyncClient.returnMethod":"SpecialWords.Operations.return","specialwords.OperationsAsyncClient.returnMethodWithResponse":"SpecialWords.Operations.return","specialwords.OperationsAsyncClient.tryMethod":"SpecialWords.Operations.try","specialwords.OperationsAsyncClient.tryMethodWithResponse":"SpecialWords.Operations.try","specialwords.OperationsAsyncClient.whileMethod":"SpecialWords.Operations.while","specialwords.OperationsAsyncClient.whileMethodWithResponse":"SpecialWords.Operations.while","specialwords.OperationsAsyncClient.with":"SpecialWords.Operations.with","specialwords.OperationsAsyncClient.withWithResponse":"SpecialWords.Operations.with","specialwords.OperationsAsyncClient.yield":"SpecialWords.Operations.yield","specialwords.OperationsAsyncClient.yieldWithResponse":"SpecialWords.Operations.yield","specialwords.OperationsClient":"SpecialWords.Operations","specialwords.OperationsClient.and":"SpecialWords.Operations.and","specialwords.OperationsClient.andWithResponse":"SpecialWords.Operations.and","specialwords.OperationsClient.as":"SpecialWords.Operations.as","specialwords.OperationsClient.asWithResponse":"SpecialWords.Operations.as","specialwords.OperationsClient.assertMethod":"SpecialWords.Operations.assert","specialwords.OperationsClient.assertMethodWithResponse":"SpecialWords.Operations.assert","specialwords.OperationsClient.async":"SpecialWords.Operations.async","specialwords.OperationsClient.asyncWithResponse":"SpecialWords.Operations.async","specialwords.OperationsClient.await":"SpecialWords.Operations.await","specialwords.OperationsClient.awaitWithResponse":"SpecialWords.Operations.await","specialwords.OperationsClient.breakMethod":"SpecialWords.Operations.break","specialwords.OperationsClient.breakMethodWithResponse":"SpecialWords.Operations.break","specialwords.OperationsClient.classMethod":"SpecialWords.Operations.class","specialwords.OperationsClient.classMethodWithResponse":"SpecialWords.Operations.class","specialwords.OperationsClient.constructor":"SpecialWords.Operations.constructor","specialwords.OperationsClient.constructorWithResponse":"SpecialWords.Operations.constructor","specialwords.OperationsClient.continueMethod":"SpecialWords.Operations.continue","specialwords.OperationsClient.continueMethodWithResponse":"SpecialWords.Operations.continue","specialwords.OperationsClient.def":"SpecialWords.Operations.def","specialwords.OperationsClient.defWithResponse":"SpecialWords.Operations.def","specialwords.OperationsClient.del":"SpecialWords.Operations.del","specialwords.OperationsClient.delWithResponse":"SpecialWords.Operations.del","specialwords.OperationsClient.elif":"SpecialWords.Operations.elif","specialwords.OperationsClient.elifWithResponse":"SpecialWords.Operations.elif","specialwords.OperationsClient.elseMethod":"SpecialWords.Operations.else","specialwords.OperationsClient.elseMethodWithResponse":"SpecialWords.Operations.else","specialwords.OperationsClient.except":"SpecialWords.Operations.except","specialwords.OperationsClient.exceptWithResponse":"SpecialWords.Operations.except","specialwords.OperationsClient.exec":"SpecialWords.Operations.exec","specialwords.OperationsClient.execWithResponse":"SpecialWords.Operations.exec","specialwords.OperationsClient.finallyMethod":"SpecialWords.Operations.finally","specialwords.OperationsClient.finallyMethodWithResponse":"SpecialWords.Operations.finally","specialwords.OperationsClient.forMethod":"SpecialWords.Operations.for","specialwords.OperationsClient.forMethodWithResponse":"SpecialWords.Operations.for","specialwords.OperationsClient.from":"SpecialWords.Operations.from","specialwords.OperationsClient.fromWithResponse":"SpecialWords.Operations.from","specialwords.OperationsClient.global":"SpecialWords.Operations.global","specialwords.OperationsClient.globalWithResponse":"SpecialWords.Operations.global","specialwords.OperationsClient.ifMethod":"SpecialWords.Operations.if","specialwords.OperationsClient.ifMethodWithResponse":"SpecialWords.Operations.if","specialwords.OperationsClient.importMethod":"SpecialWords.Operations.import","specialwords.OperationsClient.importMethodWithResponse":"SpecialWords.Operations.import","specialwords.OperationsClient.in":"SpecialWords.Operations.in","specialwords.OperationsClient.inWithResponse":"SpecialWords.Operations.in","specialwords.OperationsClient.is":"SpecialWords.Operations.is","specialwords.OperationsClient.isWithResponse":"SpecialWords.Operations.is","specialwords.OperationsClient.lambda":"SpecialWords.Operations.lambda","specialwords.OperationsClient.lambdaWithResponse":"SpecialWords.Operations.lambda","specialwords.OperationsClient.not":"SpecialWords.Operations.not","specialwords.OperationsClient.notWithResponse":"SpecialWords.Operations.not","specialwords.OperationsClient.or":"SpecialWords.Operations.or","specialwords.OperationsClient.orWithResponse":"SpecialWords.Operations.or","specialwords.OperationsClient.pass":"SpecialWords.Operations.pass","specialwords.OperationsClient.passWithResponse":"SpecialWords.Operations.pass","specialwords.OperationsClient.raise":"SpecialWords.Operations.raise","specialwords.OperationsClient.raiseWithResponse":"SpecialWords.Operations.raise","specialwords.OperationsClient.returnMethod":"SpecialWords.Operations.return","specialwords.OperationsClient.returnMethodWithResponse":"SpecialWords.Operations.return","specialwords.OperationsClient.tryMethod":"SpecialWords.Operations.try","specialwords.OperationsClient.tryMethodWithResponse":"SpecialWords.Operations.try","specialwords.OperationsClient.whileMethod":"SpecialWords.Operations.while","specialwords.OperationsClient.whileMethodWithResponse":"SpecialWords.Operations.while","specialwords.OperationsClient.with":"SpecialWords.Operations.with","specialwords.OperationsClient.withWithResponse":"SpecialWords.Operations.with","specialwords.OperationsClient.yield":"SpecialWords.Operations.yield","specialwords.OperationsClient.yieldWithResponse":"SpecialWords.Operations.yield","specialwords.ParametersAsyncClient":"SpecialWords.Parameters","specialwords.ParametersAsyncClient.withAnd":"SpecialWords.Parameters.withAnd","specialwords.ParametersAsyncClient.withAndWithResponse":"SpecialWords.Parameters.withAnd","specialwords.ParametersAsyncClient.withAs":"SpecialWords.Parameters.withAs","specialwords.ParametersAsyncClient.withAsWithResponse":"SpecialWords.Parameters.withAs","specialwords.ParametersAsyncClient.withAssert":"SpecialWords.Parameters.withAssert","specialwords.ParametersAsyncClient.withAssertWithResponse":"SpecialWords.Parameters.withAssert","specialwords.ParametersAsyncClient.withAsyncWithResponse":"SpecialWords.Parameters.withAsync","specialwords.ParametersAsyncClient.withAwait":"SpecialWords.Parameters.withAwait","specialwords.ParametersAsyncClient.withAwaitWithResponse":"SpecialWords.Parameters.withAwait","specialwords.ParametersAsyncClient.withBreak":"SpecialWords.Parameters.withBreak","specialwords.ParametersAsyncClient.withBreakWithResponse":"SpecialWords.Parameters.withBreak","specialwords.ParametersAsyncClient.withCancellationToken":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersAsyncClient.withCancellationTokenWithResponse":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersAsyncClient.withClass":"SpecialWords.Parameters.withClass","specialwords.ParametersAsyncClient.withClassWithResponse":"SpecialWords.Parameters.withClass","specialwords.ParametersAsyncClient.withConstructor":"SpecialWords.Parameters.withConstructor","specialwords.ParametersAsyncClient.withConstructorWithResponse":"SpecialWords.Parameters.withConstructor","specialwords.ParametersAsyncClient.withContinue":"SpecialWords.Parameters.withContinue","specialwords.ParametersAsyncClient.withContinueWithResponse":"SpecialWords.Parameters.withContinue","specialwords.ParametersAsyncClient.withDef":"SpecialWords.Parameters.withDef","specialwords.ParametersAsyncClient.withDefWithResponse":"SpecialWords.Parameters.withDef","specialwords.ParametersAsyncClient.withDel":"SpecialWords.Parameters.withDel","specialwords.ParametersAsyncClient.withDelWithResponse":"SpecialWords.Parameters.withDel","specialwords.ParametersAsyncClient.withElif":"SpecialWords.Parameters.withElif","specialwords.ParametersAsyncClient.withElifWithResponse":"SpecialWords.Parameters.withElif","specialwords.ParametersAsyncClient.withElse":"SpecialWords.Parameters.withElse","specialwords.ParametersAsyncClient.withElseWithResponse":"SpecialWords.Parameters.withElse","specialwords.ParametersAsyncClient.withExcept":"SpecialWords.Parameters.withExcept","specialwords.ParametersAsyncClient.withExceptWithResponse":"SpecialWords.Parameters.withExcept","specialwords.ParametersAsyncClient.withExec":"SpecialWords.Parameters.withExec","specialwords.ParametersAsyncClient.withExecWithResponse":"SpecialWords.Parameters.withExec","specialwords.ParametersAsyncClient.withFinally":"SpecialWords.Parameters.withFinally","specialwords.ParametersAsyncClient.withFinallyWithResponse":"SpecialWords.Parameters.withFinally","specialwords.ParametersAsyncClient.withFor":"SpecialWords.Parameters.withFor","specialwords.ParametersAsyncClient.withForWithResponse":"SpecialWords.Parameters.withFor","specialwords.ParametersAsyncClient.withFrom":"SpecialWords.Parameters.withFrom","specialwords.ParametersAsyncClient.withFromWithResponse":"SpecialWords.Parameters.withFrom","specialwords.ParametersAsyncClient.withGlobal":"SpecialWords.Parameters.withGlobal","specialwords.ParametersAsyncClient.withGlobalWithResponse":"SpecialWords.Parameters.withGlobal","specialwords.ParametersAsyncClient.withIf":"SpecialWords.Parameters.withIf","specialwords.ParametersAsyncClient.withIfWithResponse":"SpecialWords.Parameters.withIf","specialwords.ParametersAsyncClient.withImport":"SpecialWords.Parameters.withImport","specialwords.ParametersAsyncClient.withImportWithResponse":"SpecialWords.Parameters.withImport","specialwords.ParametersAsyncClient.withIn":"SpecialWords.Parameters.withIn","specialwords.ParametersAsyncClient.withInWithResponse":"SpecialWords.Parameters.withIn","specialwords.ParametersAsyncClient.withIs":"SpecialWords.Parameters.withIs","specialwords.ParametersAsyncClient.withIsWithResponse":"SpecialWords.Parameters.withIs","specialwords.ParametersAsyncClient.withLambda":"SpecialWords.Parameters.withLambda","specialwords.ParametersAsyncClient.withLambdaWithResponse":"SpecialWords.Parameters.withLambda","specialwords.ParametersAsyncClient.withNot":"SpecialWords.Parameters.withNot","specialwords.ParametersAsyncClient.withNotWithResponse":"SpecialWords.Parameters.withNot","specialwords.ParametersAsyncClient.withOr":"SpecialWords.Parameters.withOr","specialwords.ParametersAsyncClient.withOrWithResponse":"SpecialWords.Parameters.withOr","specialwords.ParametersAsyncClient.withPass":"SpecialWords.Parameters.withPass","specialwords.ParametersAsyncClient.withPassWithResponse":"SpecialWords.Parameters.withPass","specialwords.ParametersAsyncClient.withRaise":"SpecialWords.Parameters.withRaise","specialwords.ParametersAsyncClient.withRaiseWithResponse":"SpecialWords.Parameters.withRaise","specialwords.ParametersAsyncClient.withReturn":"SpecialWords.Parameters.withReturn","specialwords.ParametersAsyncClient.withReturnWithResponse":"SpecialWords.Parameters.withReturn","specialwords.ParametersAsyncClient.withTry":"SpecialWords.Parameters.withTry","specialwords.ParametersAsyncClient.withTryWithResponse":"SpecialWords.Parameters.withTry","specialwords.ParametersAsyncClient.withWhile":"SpecialWords.Parameters.withWhile","specialwords.ParametersAsyncClient.withWhileWithResponse":"SpecialWords.Parameters.withWhile","specialwords.ParametersAsyncClient.withWith":"SpecialWords.Parameters.withWith","specialwords.ParametersAsyncClient.withWithWithResponse":"SpecialWords.Parameters.withWith","specialwords.ParametersAsyncClient.withYield":"SpecialWords.Parameters.withYield","specialwords.ParametersAsyncClient.withYieldWithResponse":"SpecialWords.Parameters.withYield","specialwords.ParametersClient":"SpecialWords.Parameters","specialwords.ParametersClient.withAnd":"SpecialWords.Parameters.withAnd","specialwords.ParametersClient.withAndWithResponse":"SpecialWords.Parameters.withAnd","specialwords.ParametersClient.withAs":"SpecialWords.Parameters.withAs","specialwords.ParametersClient.withAsWithResponse":"SpecialWords.Parameters.withAs","specialwords.ParametersClient.withAssert":"SpecialWords.Parameters.withAssert","specialwords.ParametersClient.withAssertWithResponse":"SpecialWords.Parameters.withAssert","specialwords.ParametersClient.withAsyncWithResponse":"SpecialWords.Parameters.withAsync","specialwords.ParametersClient.withAwait":"SpecialWords.Parameters.withAwait","specialwords.ParametersClient.withAwaitWithResponse":"SpecialWords.Parameters.withAwait","specialwords.ParametersClient.withBreak":"SpecialWords.Parameters.withBreak","specialwords.ParametersClient.withBreakWithResponse":"SpecialWords.Parameters.withBreak","specialwords.ParametersClient.withCancellationToken":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersClient.withCancellationTokenWithResponse":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersClient.withClass":"SpecialWords.Parameters.withClass","specialwords.ParametersClient.withClassWithResponse":"SpecialWords.Parameters.withClass","specialwords.ParametersClient.withConstructor":"SpecialWords.Parameters.withConstructor","specialwords.ParametersClient.withConstructorWithResponse":"SpecialWords.Parameters.withConstructor","specialwords.ParametersClient.withContinue":"SpecialWords.Parameters.withContinue","specialwords.ParametersClient.withContinueWithResponse":"SpecialWords.Parameters.withContinue","specialwords.ParametersClient.withDef":"SpecialWords.Parameters.withDef","specialwords.ParametersClient.withDefWithResponse":"SpecialWords.Parameters.withDef","specialwords.ParametersClient.withDel":"SpecialWords.Parameters.withDel","specialwords.ParametersClient.withDelWithResponse":"SpecialWords.Parameters.withDel","specialwords.ParametersClient.withElif":"SpecialWords.Parameters.withElif","specialwords.ParametersClient.withElifWithResponse":"SpecialWords.Parameters.withElif","specialwords.ParametersClient.withElse":"SpecialWords.Parameters.withElse","specialwords.ParametersClient.withElseWithResponse":"SpecialWords.Parameters.withElse","specialwords.ParametersClient.withExcept":"SpecialWords.Parameters.withExcept","specialwords.ParametersClient.withExceptWithResponse":"SpecialWords.Parameters.withExcept","specialwords.ParametersClient.withExec":"SpecialWords.Parameters.withExec","specialwords.ParametersClient.withExecWithResponse":"SpecialWords.Parameters.withExec","specialwords.ParametersClient.withFinally":"SpecialWords.Parameters.withFinally","specialwords.ParametersClient.withFinallyWithResponse":"SpecialWords.Parameters.withFinally","specialwords.ParametersClient.withFor":"SpecialWords.Parameters.withFor","specialwords.ParametersClient.withForWithResponse":"SpecialWords.Parameters.withFor","specialwords.ParametersClient.withFrom":"SpecialWords.Parameters.withFrom","specialwords.ParametersClient.withFromWithResponse":"SpecialWords.Parameters.withFrom","specialwords.ParametersClient.withGlobal":"SpecialWords.Parameters.withGlobal","specialwords.ParametersClient.withGlobalWithResponse":"SpecialWords.Parameters.withGlobal","specialwords.ParametersClient.withIf":"SpecialWords.Parameters.withIf","specialwords.ParametersClient.withIfWithResponse":"SpecialWords.Parameters.withIf","specialwords.ParametersClient.withImport":"SpecialWords.Parameters.withImport","specialwords.ParametersClient.withImportWithResponse":"SpecialWords.Parameters.withImport","specialwords.ParametersClient.withIn":"SpecialWords.Parameters.withIn","specialwords.ParametersClient.withInWithResponse":"SpecialWords.Parameters.withIn","specialwords.ParametersClient.withIs":"SpecialWords.Parameters.withIs","specialwords.ParametersClient.withIsWithResponse":"SpecialWords.Parameters.withIs","specialwords.ParametersClient.withLambda":"SpecialWords.Parameters.withLambda","specialwords.ParametersClient.withLambdaWithResponse":"SpecialWords.Parameters.withLambda","specialwords.ParametersClient.withNot":"SpecialWords.Parameters.withNot","specialwords.ParametersClient.withNotWithResponse":"SpecialWords.Parameters.withNot","specialwords.ParametersClient.withOr":"SpecialWords.Parameters.withOr","specialwords.ParametersClient.withOrWithResponse":"SpecialWords.Parameters.withOr","specialwords.ParametersClient.withPass":"SpecialWords.Parameters.withPass","specialwords.ParametersClient.withPassWithResponse":"SpecialWords.Parameters.withPass","specialwords.ParametersClient.withRaise":"SpecialWords.Parameters.withRaise","specialwords.ParametersClient.withRaiseWithResponse":"SpecialWords.Parameters.withRaise","specialwords.ParametersClient.withReturn":"SpecialWords.Parameters.withReturn","specialwords.ParametersClient.withReturnWithResponse":"SpecialWords.Parameters.withReturn","specialwords.ParametersClient.withTry":"SpecialWords.Parameters.withTry","specialwords.ParametersClient.withTryWithResponse":"SpecialWords.Parameters.withTry","specialwords.ParametersClient.withWhile":"SpecialWords.Parameters.withWhile","specialwords.ParametersClient.withWhileWithResponse":"SpecialWords.Parameters.withWhile","specialwords.ParametersClient.withWith":"SpecialWords.Parameters.withWith","specialwords.ParametersClient.withWithWithResponse":"SpecialWords.Parameters.withWith","specialwords.ParametersClient.withYield":"SpecialWords.Parameters.withYield","specialwords.ParametersClient.withYieldWithResponse":"SpecialWords.Parameters.withYield","specialwords.SpecialWordsClientBuilder":"SpecialWords","specialwords.modelproperties.models.SameAsModel":"SpecialWords.ModelProperties.SameAsModel","specialwords.models.models.And":"SpecialWords.Models.and","specialwords.models.models.As":"SpecialWords.Models.as","specialwords.models.models.Assert":"SpecialWords.Models.assert","specialwords.models.models.Async":"SpecialWords.Models.async","specialwords.models.models.Await":"SpecialWords.Models.await","specialwords.models.models.Break":"SpecialWords.Models.break","specialwords.models.models.ClassModel":"SpecialWords.Models.class","specialwords.models.models.Constructor":"SpecialWords.Models.constructor","specialwords.models.models.Continue":"SpecialWords.Models.continue","specialwords.models.models.Def":"SpecialWords.Models.def","specialwords.models.models.Del":"SpecialWords.Models.del","specialwords.models.models.Elif":"SpecialWords.Models.elif","specialwords.models.models.Else":"SpecialWords.Models.else","specialwords.models.models.Except":"SpecialWords.Models.except","specialwords.models.models.Exec":"SpecialWords.Models.exec","specialwords.models.models.Finally":"SpecialWords.Models.finally","specialwords.models.models.For":"SpecialWords.Models.for","specialwords.models.models.From":"SpecialWords.Models.from","specialwords.models.models.Global":"SpecialWords.Models.global","specialwords.models.models.If":"SpecialWords.Models.if","specialwords.models.models.Import":"SpecialWords.Models.import","specialwords.models.models.In":"SpecialWords.Models.in","specialwords.models.models.Is":"SpecialWords.Models.is","specialwords.models.models.Lambda":"SpecialWords.Models.lambda","specialwords.models.models.Not":"SpecialWords.Models.not","specialwords.models.models.Or":"SpecialWords.Models.or","specialwords.models.models.Pass":"SpecialWords.Models.pass","specialwords.models.models.Raise":"SpecialWords.Models.raise","specialwords.models.models.Return":"SpecialWords.Models.return","specialwords.models.models.Try":"SpecialWords.Models.try","specialwords.models.models.While":"SpecialWords.Models.while","specialwords.models.models.With":"SpecialWords.Models.with","specialwords.models.models.Yield":"SpecialWords.Models.yield"},"generatedFiles":["src/main/java/module-info.java","src/main/java/specialwords/ModelPropertiesAsyncClient.java","src/main/java/specialwords/ModelPropertiesClient.java","src/main/java/specialwords/ModelsAsyncClient.java","src/main/java/specialwords/ModelsClient.java","src/main/java/specialwords/OperationsAsyncClient.java","src/main/java/specialwords/OperationsClient.java","src/main/java/specialwords/ParametersAsyncClient.java","src/main/java/specialwords/ParametersClient.java","src/main/java/specialwords/SpecialWordsClientBuilder.java","src/main/java/specialwords/implementation/ModelPropertiesImpl.java","src/main/java/specialwords/implementation/ModelsImpl.java","src/main/java/specialwords/implementation/OperationsImpl.java","src/main/java/specialwords/implementation/ParametersImpl.java","src/main/java/specialwords/implementation/SpecialWordsClientImpl.java","src/main/java/specialwords/implementation/package-info.java","src/main/java/specialwords/modelproperties/models/SameAsModel.java","src/main/java/specialwords/modelproperties/models/package-info.java","src/main/java/specialwords/models/models/And.java","src/main/java/specialwords/models/models/As.java","src/main/java/specialwords/models/models/Assert.java","src/main/java/specialwords/models/models/Async.java","src/main/java/specialwords/models/models/Await.java","src/main/java/specialwords/models/models/Break.java","src/main/java/specialwords/models/models/ClassModel.java","src/main/java/specialwords/models/models/Constructor.java","src/main/java/specialwords/models/models/Continue.java","src/main/java/specialwords/models/models/Def.java","src/main/java/specialwords/models/models/Del.java","src/main/java/specialwords/models/models/Elif.java","src/main/java/specialwords/models/models/Else.java","src/main/java/specialwords/models/models/Except.java","src/main/java/specialwords/models/models/Exec.java","src/main/java/specialwords/models/models/Finally.java","src/main/java/specialwords/models/models/For.java","src/main/java/specialwords/models/models/From.java","src/main/java/specialwords/models/models/Global.java","src/main/java/specialwords/models/models/If.java","src/main/java/specialwords/models/models/Import.java","src/main/java/specialwords/models/models/In.java","src/main/java/specialwords/models/models/Is.java","src/main/java/specialwords/models/models/Lambda.java","src/main/java/specialwords/models/models/Not.java","src/main/java/specialwords/models/models/Or.java","src/main/java/specialwords/models/models/Pass.java","src/main/java/specialwords/models/models/Raise.java","src/main/java/specialwords/models/models/Return.java","src/main/java/specialwords/models/models/Try.java","src/main/java/specialwords/models/models/While.java","src/main/java/specialwords/models/models/With.java","src/main/java/specialwords/models/models/Yield.java","src/main/java/specialwords/models/models/package-info.java","src/main/java/specialwords/package-info.java"]} \ No newline at end of file +{"flavor":"Azure","crossLanguageDefinitions":{"specialwords.ModelPropertiesAsyncClient":"SpecialWords.ModelProperties","specialwords.ModelPropertiesAsyncClient.dictMethods":"SpecialWords.ModelProperties.dictMethods","specialwords.ModelPropertiesAsyncClient.dictMethodsWithResponse":"SpecialWords.ModelProperties.dictMethods","specialwords.ModelPropertiesAsyncClient.sameAsModel":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelPropertiesAsyncClient.sameAsModelWithResponse":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelPropertiesClient":"SpecialWords.ModelProperties","specialwords.ModelPropertiesClient.dictMethods":"SpecialWords.ModelProperties.dictMethods","specialwords.ModelPropertiesClient.dictMethodsWithResponse":"SpecialWords.ModelProperties.dictMethods","specialwords.ModelPropertiesClient.sameAsModel":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelPropertiesClient.sameAsModelWithResponse":"SpecialWords.ModelProperties.sameAsModel","specialwords.ModelsAsyncClient":"SpecialWords.Models","specialwords.ModelsAsyncClient.withAnd":"SpecialWords.Models.withAnd","specialwords.ModelsAsyncClient.withAndWithResponse":"SpecialWords.Models.withAnd","specialwords.ModelsAsyncClient.withAs":"SpecialWords.Models.withAs","specialwords.ModelsAsyncClient.withAsWithResponse":"SpecialWords.Models.withAs","specialwords.ModelsAsyncClient.withAssert":"SpecialWords.Models.withAssert","specialwords.ModelsAsyncClient.withAssertWithResponse":"SpecialWords.Models.withAssert","specialwords.ModelsAsyncClient.withAsyncWithResponse":"SpecialWords.Models.withAsync","specialwords.ModelsAsyncClient.withAwait":"SpecialWords.Models.withAwait","specialwords.ModelsAsyncClient.withAwaitWithResponse":"SpecialWords.Models.withAwait","specialwords.ModelsAsyncClient.withBreak":"SpecialWords.Models.withBreak","specialwords.ModelsAsyncClient.withBreakWithResponse":"SpecialWords.Models.withBreak","specialwords.ModelsAsyncClient.withClass":"SpecialWords.Models.withClass","specialwords.ModelsAsyncClient.withClassWithResponse":"SpecialWords.Models.withClass","specialwords.ModelsAsyncClient.withConstructor":"SpecialWords.Models.withConstructor","specialwords.ModelsAsyncClient.withConstructorWithResponse":"SpecialWords.Models.withConstructor","specialwords.ModelsAsyncClient.withContinue":"SpecialWords.Models.withContinue","specialwords.ModelsAsyncClient.withContinueWithResponse":"SpecialWords.Models.withContinue","specialwords.ModelsAsyncClient.withDef":"SpecialWords.Models.withDef","specialwords.ModelsAsyncClient.withDefWithResponse":"SpecialWords.Models.withDef","specialwords.ModelsAsyncClient.withDel":"SpecialWords.Models.withDel","specialwords.ModelsAsyncClient.withDelWithResponse":"SpecialWords.Models.withDel","specialwords.ModelsAsyncClient.withElif":"SpecialWords.Models.withElif","specialwords.ModelsAsyncClient.withElifWithResponse":"SpecialWords.Models.withElif","specialwords.ModelsAsyncClient.withElse":"SpecialWords.Models.withElse","specialwords.ModelsAsyncClient.withElseWithResponse":"SpecialWords.Models.withElse","specialwords.ModelsAsyncClient.withExcept":"SpecialWords.Models.withExcept","specialwords.ModelsAsyncClient.withExceptWithResponse":"SpecialWords.Models.withExcept","specialwords.ModelsAsyncClient.withExec":"SpecialWords.Models.withExec","specialwords.ModelsAsyncClient.withExecWithResponse":"SpecialWords.Models.withExec","specialwords.ModelsAsyncClient.withFinally":"SpecialWords.Models.withFinally","specialwords.ModelsAsyncClient.withFinallyWithResponse":"SpecialWords.Models.withFinally","specialwords.ModelsAsyncClient.withFor":"SpecialWords.Models.withFor","specialwords.ModelsAsyncClient.withForWithResponse":"SpecialWords.Models.withFor","specialwords.ModelsAsyncClient.withFrom":"SpecialWords.Models.withFrom","specialwords.ModelsAsyncClient.withFromWithResponse":"SpecialWords.Models.withFrom","specialwords.ModelsAsyncClient.withGlobal":"SpecialWords.Models.withGlobal","specialwords.ModelsAsyncClient.withGlobalWithResponse":"SpecialWords.Models.withGlobal","specialwords.ModelsAsyncClient.withIf":"SpecialWords.Models.withIf","specialwords.ModelsAsyncClient.withIfWithResponse":"SpecialWords.Models.withIf","specialwords.ModelsAsyncClient.withImport":"SpecialWords.Models.withImport","specialwords.ModelsAsyncClient.withImportWithResponse":"SpecialWords.Models.withImport","specialwords.ModelsAsyncClient.withIn":"SpecialWords.Models.withIn","specialwords.ModelsAsyncClient.withInWithResponse":"SpecialWords.Models.withIn","specialwords.ModelsAsyncClient.withIs":"SpecialWords.Models.withIs","specialwords.ModelsAsyncClient.withIsWithResponse":"SpecialWords.Models.withIs","specialwords.ModelsAsyncClient.withLambda":"SpecialWords.Models.withLambda","specialwords.ModelsAsyncClient.withLambdaWithResponse":"SpecialWords.Models.withLambda","specialwords.ModelsAsyncClient.withNot":"SpecialWords.Models.withNot","specialwords.ModelsAsyncClient.withNotWithResponse":"SpecialWords.Models.withNot","specialwords.ModelsAsyncClient.withOr":"SpecialWords.Models.withOr","specialwords.ModelsAsyncClient.withOrWithResponse":"SpecialWords.Models.withOr","specialwords.ModelsAsyncClient.withPass":"SpecialWords.Models.withPass","specialwords.ModelsAsyncClient.withPassWithResponse":"SpecialWords.Models.withPass","specialwords.ModelsAsyncClient.withRaise":"SpecialWords.Models.withRaise","specialwords.ModelsAsyncClient.withRaiseWithResponse":"SpecialWords.Models.withRaise","specialwords.ModelsAsyncClient.withReturn":"SpecialWords.Models.withReturn","specialwords.ModelsAsyncClient.withReturnWithResponse":"SpecialWords.Models.withReturn","specialwords.ModelsAsyncClient.withTry":"SpecialWords.Models.withTry","specialwords.ModelsAsyncClient.withTryWithResponse":"SpecialWords.Models.withTry","specialwords.ModelsAsyncClient.withWhile":"SpecialWords.Models.withWhile","specialwords.ModelsAsyncClient.withWhileWithResponse":"SpecialWords.Models.withWhile","specialwords.ModelsAsyncClient.withWith":"SpecialWords.Models.withWith","specialwords.ModelsAsyncClient.withWithWithResponse":"SpecialWords.Models.withWith","specialwords.ModelsAsyncClient.withYield":"SpecialWords.Models.withYield","specialwords.ModelsAsyncClient.withYieldWithResponse":"SpecialWords.Models.withYield","specialwords.ModelsClient":"SpecialWords.Models","specialwords.ModelsClient.withAnd":"SpecialWords.Models.withAnd","specialwords.ModelsClient.withAndWithResponse":"SpecialWords.Models.withAnd","specialwords.ModelsClient.withAs":"SpecialWords.Models.withAs","specialwords.ModelsClient.withAsWithResponse":"SpecialWords.Models.withAs","specialwords.ModelsClient.withAssert":"SpecialWords.Models.withAssert","specialwords.ModelsClient.withAssertWithResponse":"SpecialWords.Models.withAssert","specialwords.ModelsClient.withAsyncWithResponse":"SpecialWords.Models.withAsync","specialwords.ModelsClient.withAwait":"SpecialWords.Models.withAwait","specialwords.ModelsClient.withAwaitWithResponse":"SpecialWords.Models.withAwait","specialwords.ModelsClient.withBreak":"SpecialWords.Models.withBreak","specialwords.ModelsClient.withBreakWithResponse":"SpecialWords.Models.withBreak","specialwords.ModelsClient.withClass":"SpecialWords.Models.withClass","specialwords.ModelsClient.withClassWithResponse":"SpecialWords.Models.withClass","specialwords.ModelsClient.withConstructor":"SpecialWords.Models.withConstructor","specialwords.ModelsClient.withConstructorWithResponse":"SpecialWords.Models.withConstructor","specialwords.ModelsClient.withContinue":"SpecialWords.Models.withContinue","specialwords.ModelsClient.withContinueWithResponse":"SpecialWords.Models.withContinue","specialwords.ModelsClient.withDef":"SpecialWords.Models.withDef","specialwords.ModelsClient.withDefWithResponse":"SpecialWords.Models.withDef","specialwords.ModelsClient.withDel":"SpecialWords.Models.withDel","specialwords.ModelsClient.withDelWithResponse":"SpecialWords.Models.withDel","specialwords.ModelsClient.withElif":"SpecialWords.Models.withElif","specialwords.ModelsClient.withElifWithResponse":"SpecialWords.Models.withElif","specialwords.ModelsClient.withElse":"SpecialWords.Models.withElse","specialwords.ModelsClient.withElseWithResponse":"SpecialWords.Models.withElse","specialwords.ModelsClient.withExcept":"SpecialWords.Models.withExcept","specialwords.ModelsClient.withExceptWithResponse":"SpecialWords.Models.withExcept","specialwords.ModelsClient.withExec":"SpecialWords.Models.withExec","specialwords.ModelsClient.withExecWithResponse":"SpecialWords.Models.withExec","specialwords.ModelsClient.withFinally":"SpecialWords.Models.withFinally","specialwords.ModelsClient.withFinallyWithResponse":"SpecialWords.Models.withFinally","specialwords.ModelsClient.withFor":"SpecialWords.Models.withFor","specialwords.ModelsClient.withForWithResponse":"SpecialWords.Models.withFor","specialwords.ModelsClient.withFrom":"SpecialWords.Models.withFrom","specialwords.ModelsClient.withFromWithResponse":"SpecialWords.Models.withFrom","specialwords.ModelsClient.withGlobal":"SpecialWords.Models.withGlobal","specialwords.ModelsClient.withGlobalWithResponse":"SpecialWords.Models.withGlobal","specialwords.ModelsClient.withIf":"SpecialWords.Models.withIf","specialwords.ModelsClient.withIfWithResponse":"SpecialWords.Models.withIf","specialwords.ModelsClient.withImport":"SpecialWords.Models.withImport","specialwords.ModelsClient.withImportWithResponse":"SpecialWords.Models.withImport","specialwords.ModelsClient.withIn":"SpecialWords.Models.withIn","specialwords.ModelsClient.withInWithResponse":"SpecialWords.Models.withIn","specialwords.ModelsClient.withIs":"SpecialWords.Models.withIs","specialwords.ModelsClient.withIsWithResponse":"SpecialWords.Models.withIs","specialwords.ModelsClient.withLambda":"SpecialWords.Models.withLambda","specialwords.ModelsClient.withLambdaWithResponse":"SpecialWords.Models.withLambda","specialwords.ModelsClient.withNot":"SpecialWords.Models.withNot","specialwords.ModelsClient.withNotWithResponse":"SpecialWords.Models.withNot","specialwords.ModelsClient.withOr":"SpecialWords.Models.withOr","specialwords.ModelsClient.withOrWithResponse":"SpecialWords.Models.withOr","specialwords.ModelsClient.withPass":"SpecialWords.Models.withPass","specialwords.ModelsClient.withPassWithResponse":"SpecialWords.Models.withPass","specialwords.ModelsClient.withRaise":"SpecialWords.Models.withRaise","specialwords.ModelsClient.withRaiseWithResponse":"SpecialWords.Models.withRaise","specialwords.ModelsClient.withReturn":"SpecialWords.Models.withReturn","specialwords.ModelsClient.withReturnWithResponse":"SpecialWords.Models.withReturn","specialwords.ModelsClient.withTry":"SpecialWords.Models.withTry","specialwords.ModelsClient.withTryWithResponse":"SpecialWords.Models.withTry","specialwords.ModelsClient.withWhile":"SpecialWords.Models.withWhile","specialwords.ModelsClient.withWhileWithResponse":"SpecialWords.Models.withWhile","specialwords.ModelsClient.withWith":"SpecialWords.Models.withWith","specialwords.ModelsClient.withWithWithResponse":"SpecialWords.Models.withWith","specialwords.ModelsClient.withYield":"SpecialWords.Models.withYield","specialwords.ModelsClient.withYieldWithResponse":"SpecialWords.Models.withYield","specialwords.OperationsAsyncClient":"SpecialWords.Operations","specialwords.OperationsAsyncClient.and":"SpecialWords.Operations.and","specialwords.OperationsAsyncClient.andWithResponse":"SpecialWords.Operations.and","specialwords.OperationsAsyncClient.as":"SpecialWords.Operations.as","specialwords.OperationsAsyncClient.asWithResponse":"SpecialWords.Operations.as","specialwords.OperationsAsyncClient.assertMethod":"SpecialWords.Operations.assert","specialwords.OperationsAsyncClient.assertMethodWithResponse":"SpecialWords.Operations.assert","specialwords.OperationsAsyncClient.async":"SpecialWords.Operations.async","specialwords.OperationsAsyncClient.asyncWithResponse":"SpecialWords.Operations.async","specialwords.OperationsAsyncClient.await":"SpecialWords.Operations.await","specialwords.OperationsAsyncClient.awaitWithResponse":"SpecialWords.Operations.await","specialwords.OperationsAsyncClient.breakMethod":"SpecialWords.Operations.break","specialwords.OperationsAsyncClient.breakMethodWithResponse":"SpecialWords.Operations.break","specialwords.OperationsAsyncClient.classMethod":"SpecialWords.Operations.class","specialwords.OperationsAsyncClient.classMethodWithResponse":"SpecialWords.Operations.class","specialwords.OperationsAsyncClient.constructor":"SpecialWords.Operations.constructor","specialwords.OperationsAsyncClient.constructorWithResponse":"SpecialWords.Operations.constructor","specialwords.OperationsAsyncClient.continueMethod":"SpecialWords.Operations.continue","specialwords.OperationsAsyncClient.continueMethodWithResponse":"SpecialWords.Operations.continue","specialwords.OperationsAsyncClient.def":"SpecialWords.Operations.def","specialwords.OperationsAsyncClient.defWithResponse":"SpecialWords.Operations.def","specialwords.OperationsAsyncClient.del":"SpecialWords.Operations.del","specialwords.OperationsAsyncClient.delWithResponse":"SpecialWords.Operations.del","specialwords.OperationsAsyncClient.elif":"SpecialWords.Operations.elif","specialwords.OperationsAsyncClient.elifWithResponse":"SpecialWords.Operations.elif","specialwords.OperationsAsyncClient.elseMethod":"SpecialWords.Operations.else","specialwords.OperationsAsyncClient.elseMethodWithResponse":"SpecialWords.Operations.else","specialwords.OperationsAsyncClient.except":"SpecialWords.Operations.except","specialwords.OperationsAsyncClient.exceptWithResponse":"SpecialWords.Operations.except","specialwords.OperationsAsyncClient.exec":"SpecialWords.Operations.exec","specialwords.OperationsAsyncClient.execWithResponse":"SpecialWords.Operations.exec","specialwords.OperationsAsyncClient.finallyMethod":"SpecialWords.Operations.finally","specialwords.OperationsAsyncClient.finallyMethodWithResponse":"SpecialWords.Operations.finally","specialwords.OperationsAsyncClient.forMethod":"SpecialWords.Operations.for","specialwords.OperationsAsyncClient.forMethodWithResponse":"SpecialWords.Operations.for","specialwords.OperationsAsyncClient.from":"SpecialWords.Operations.from","specialwords.OperationsAsyncClient.fromWithResponse":"SpecialWords.Operations.from","specialwords.OperationsAsyncClient.global":"SpecialWords.Operations.global","specialwords.OperationsAsyncClient.globalWithResponse":"SpecialWords.Operations.global","specialwords.OperationsAsyncClient.ifMethod":"SpecialWords.Operations.if","specialwords.OperationsAsyncClient.ifMethodWithResponse":"SpecialWords.Operations.if","specialwords.OperationsAsyncClient.importMethod":"SpecialWords.Operations.import","specialwords.OperationsAsyncClient.importMethodWithResponse":"SpecialWords.Operations.import","specialwords.OperationsAsyncClient.in":"SpecialWords.Operations.in","specialwords.OperationsAsyncClient.inWithResponse":"SpecialWords.Operations.in","specialwords.OperationsAsyncClient.is":"SpecialWords.Operations.is","specialwords.OperationsAsyncClient.isWithResponse":"SpecialWords.Operations.is","specialwords.OperationsAsyncClient.lambda":"SpecialWords.Operations.lambda","specialwords.OperationsAsyncClient.lambdaWithResponse":"SpecialWords.Operations.lambda","specialwords.OperationsAsyncClient.not":"SpecialWords.Operations.not","specialwords.OperationsAsyncClient.notWithResponse":"SpecialWords.Operations.not","specialwords.OperationsAsyncClient.or":"SpecialWords.Operations.or","specialwords.OperationsAsyncClient.orWithResponse":"SpecialWords.Operations.or","specialwords.OperationsAsyncClient.pass":"SpecialWords.Operations.pass","specialwords.OperationsAsyncClient.passWithResponse":"SpecialWords.Operations.pass","specialwords.OperationsAsyncClient.raise":"SpecialWords.Operations.raise","specialwords.OperationsAsyncClient.raiseWithResponse":"SpecialWords.Operations.raise","specialwords.OperationsAsyncClient.returnMethod":"SpecialWords.Operations.return","specialwords.OperationsAsyncClient.returnMethodWithResponse":"SpecialWords.Operations.return","specialwords.OperationsAsyncClient.tryMethod":"SpecialWords.Operations.try","specialwords.OperationsAsyncClient.tryMethodWithResponse":"SpecialWords.Operations.try","specialwords.OperationsAsyncClient.whileMethod":"SpecialWords.Operations.while","specialwords.OperationsAsyncClient.whileMethodWithResponse":"SpecialWords.Operations.while","specialwords.OperationsAsyncClient.with":"SpecialWords.Operations.with","specialwords.OperationsAsyncClient.withWithResponse":"SpecialWords.Operations.with","specialwords.OperationsAsyncClient.yield":"SpecialWords.Operations.yield","specialwords.OperationsAsyncClient.yieldWithResponse":"SpecialWords.Operations.yield","specialwords.OperationsClient":"SpecialWords.Operations","specialwords.OperationsClient.and":"SpecialWords.Operations.and","specialwords.OperationsClient.andWithResponse":"SpecialWords.Operations.and","specialwords.OperationsClient.as":"SpecialWords.Operations.as","specialwords.OperationsClient.asWithResponse":"SpecialWords.Operations.as","specialwords.OperationsClient.assertMethod":"SpecialWords.Operations.assert","specialwords.OperationsClient.assertMethodWithResponse":"SpecialWords.Operations.assert","specialwords.OperationsClient.async":"SpecialWords.Operations.async","specialwords.OperationsClient.asyncWithResponse":"SpecialWords.Operations.async","specialwords.OperationsClient.await":"SpecialWords.Operations.await","specialwords.OperationsClient.awaitWithResponse":"SpecialWords.Operations.await","specialwords.OperationsClient.breakMethod":"SpecialWords.Operations.break","specialwords.OperationsClient.breakMethodWithResponse":"SpecialWords.Operations.break","specialwords.OperationsClient.classMethod":"SpecialWords.Operations.class","specialwords.OperationsClient.classMethodWithResponse":"SpecialWords.Operations.class","specialwords.OperationsClient.constructor":"SpecialWords.Operations.constructor","specialwords.OperationsClient.constructorWithResponse":"SpecialWords.Operations.constructor","specialwords.OperationsClient.continueMethod":"SpecialWords.Operations.continue","specialwords.OperationsClient.continueMethodWithResponse":"SpecialWords.Operations.continue","specialwords.OperationsClient.def":"SpecialWords.Operations.def","specialwords.OperationsClient.defWithResponse":"SpecialWords.Operations.def","specialwords.OperationsClient.del":"SpecialWords.Operations.del","specialwords.OperationsClient.delWithResponse":"SpecialWords.Operations.del","specialwords.OperationsClient.elif":"SpecialWords.Operations.elif","specialwords.OperationsClient.elifWithResponse":"SpecialWords.Operations.elif","specialwords.OperationsClient.elseMethod":"SpecialWords.Operations.else","specialwords.OperationsClient.elseMethodWithResponse":"SpecialWords.Operations.else","specialwords.OperationsClient.except":"SpecialWords.Operations.except","specialwords.OperationsClient.exceptWithResponse":"SpecialWords.Operations.except","specialwords.OperationsClient.exec":"SpecialWords.Operations.exec","specialwords.OperationsClient.execWithResponse":"SpecialWords.Operations.exec","specialwords.OperationsClient.finallyMethod":"SpecialWords.Operations.finally","specialwords.OperationsClient.finallyMethodWithResponse":"SpecialWords.Operations.finally","specialwords.OperationsClient.forMethod":"SpecialWords.Operations.for","specialwords.OperationsClient.forMethodWithResponse":"SpecialWords.Operations.for","specialwords.OperationsClient.from":"SpecialWords.Operations.from","specialwords.OperationsClient.fromWithResponse":"SpecialWords.Operations.from","specialwords.OperationsClient.global":"SpecialWords.Operations.global","specialwords.OperationsClient.globalWithResponse":"SpecialWords.Operations.global","specialwords.OperationsClient.ifMethod":"SpecialWords.Operations.if","specialwords.OperationsClient.ifMethodWithResponse":"SpecialWords.Operations.if","specialwords.OperationsClient.importMethod":"SpecialWords.Operations.import","specialwords.OperationsClient.importMethodWithResponse":"SpecialWords.Operations.import","specialwords.OperationsClient.in":"SpecialWords.Operations.in","specialwords.OperationsClient.inWithResponse":"SpecialWords.Operations.in","specialwords.OperationsClient.is":"SpecialWords.Operations.is","specialwords.OperationsClient.isWithResponse":"SpecialWords.Operations.is","specialwords.OperationsClient.lambda":"SpecialWords.Operations.lambda","specialwords.OperationsClient.lambdaWithResponse":"SpecialWords.Operations.lambda","specialwords.OperationsClient.not":"SpecialWords.Operations.not","specialwords.OperationsClient.notWithResponse":"SpecialWords.Operations.not","specialwords.OperationsClient.or":"SpecialWords.Operations.or","specialwords.OperationsClient.orWithResponse":"SpecialWords.Operations.or","specialwords.OperationsClient.pass":"SpecialWords.Operations.pass","specialwords.OperationsClient.passWithResponse":"SpecialWords.Operations.pass","specialwords.OperationsClient.raise":"SpecialWords.Operations.raise","specialwords.OperationsClient.raiseWithResponse":"SpecialWords.Operations.raise","specialwords.OperationsClient.returnMethod":"SpecialWords.Operations.return","specialwords.OperationsClient.returnMethodWithResponse":"SpecialWords.Operations.return","specialwords.OperationsClient.tryMethod":"SpecialWords.Operations.try","specialwords.OperationsClient.tryMethodWithResponse":"SpecialWords.Operations.try","specialwords.OperationsClient.whileMethod":"SpecialWords.Operations.while","specialwords.OperationsClient.whileMethodWithResponse":"SpecialWords.Operations.while","specialwords.OperationsClient.with":"SpecialWords.Operations.with","specialwords.OperationsClient.withWithResponse":"SpecialWords.Operations.with","specialwords.OperationsClient.yield":"SpecialWords.Operations.yield","specialwords.OperationsClient.yieldWithResponse":"SpecialWords.Operations.yield","specialwords.ParametersAsyncClient":"SpecialWords.Parameters","specialwords.ParametersAsyncClient.withAnd":"SpecialWords.Parameters.withAnd","specialwords.ParametersAsyncClient.withAndWithResponse":"SpecialWords.Parameters.withAnd","specialwords.ParametersAsyncClient.withAs":"SpecialWords.Parameters.withAs","specialwords.ParametersAsyncClient.withAsWithResponse":"SpecialWords.Parameters.withAs","specialwords.ParametersAsyncClient.withAssert":"SpecialWords.Parameters.withAssert","specialwords.ParametersAsyncClient.withAssertWithResponse":"SpecialWords.Parameters.withAssert","specialwords.ParametersAsyncClient.withAsyncWithResponse":"SpecialWords.Parameters.withAsync","specialwords.ParametersAsyncClient.withAwait":"SpecialWords.Parameters.withAwait","specialwords.ParametersAsyncClient.withAwaitWithResponse":"SpecialWords.Parameters.withAwait","specialwords.ParametersAsyncClient.withBreak":"SpecialWords.Parameters.withBreak","specialwords.ParametersAsyncClient.withBreakWithResponse":"SpecialWords.Parameters.withBreak","specialwords.ParametersAsyncClient.withCancellationToken":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersAsyncClient.withCancellationTokenWithResponse":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersAsyncClient.withClass":"SpecialWords.Parameters.withClass","specialwords.ParametersAsyncClient.withClassWithResponse":"SpecialWords.Parameters.withClass","specialwords.ParametersAsyncClient.withConstructor":"SpecialWords.Parameters.withConstructor","specialwords.ParametersAsyncClient.withConstructorWithResponse":"SpecialWords.Parameters.withConstructor","specialwords.ParametersAsyncClient.withContinue":"SpecialWords.Parameters.withContinue","specialwords.ParametersAsyncClient.withContinueWithResponse":"SpecialWords.Parameters.withContinue","specialwords.ParametersAsyncClient.withDef":"SpecialWords.Parameters.withDef","specialwords.ParametersAsyncClient.withDefWithResponse":"SpecialWords.Parameters.withDef","specialwords.ParametersAsyncClient.withDel":"SpecialWords.Parameters.withDel","specialwords.ParametersAsyncClient.withDelWithResponse":"SpecialWords.Parameters.withDel","specialwords.ParametersAsyncClient.withElif":"SpecialWords.Parameters.withElif","specialwords.ParametersAsyncClient.withElifWithResponse":"SpecialWords.Parameters.withElif","specialwords.ParametersAsyncClient.withElse":"SpecialWords.Parameters.withElse","specialwords.ParametersAsyncClient.withElseWithResponse":"SpecialWords.Parameters.withElse","specialwords.ParametersAsyncClient.withExcept":"SpecialWords.Parameters.withExcept","specialwords.ParametersAsyncClient.withExceptWithResponse":"SpecialWords.Parameters.withExcept","specialwords.ParametersAsyncClient.withExec":"SpecialWords.Parameters.withExec","specialwords.ParametersAsyncClient.withExecWithResponse":"SpecialWords.Parameters.withExec","specialwords.ParametersAsyncClient.withFinally":"SpecialWords.Parameters.withFinally","specialwords.ParametersAsyncClient.withFinallyWithResponse":"SpecialWords.Parameters.withFinally","specialwords.ParametersAsyncClient.withFor":"SpecialWords.Parameters.withFor","specialwords.ParametersAsyncClient.withForWithResponse":"SpecialWords.Parameters.withFor","specialwords.ParametersAsyncClient.withFrom":"SpecialWords.Parameters.withFrom","specialwords.ParametersAsyncClient.withFromWithResponse":"SpecialWords.Parameters.withFrom","specialwords.ParametersAsyncClient.withGlobal":"SpecialWords.Parameters.withGlobal","specialwords.ParametersAsyncClient.withGlobalWithResponse":"SpecialWords.Parameters.withGlobal","specialwords.ParametersAsyncClient.withIf":"SpecialWords.Parameters.withIf","specialwords.ParametersAsyncClient.withIfWithResponse":"SpecialWords.Parameters.withIf","specialwords.ParametersAsyncClient.withImport":"SpecialWords.Parameters.withImport","specialwords.ParametersAsyncClient.withImportWithResponse":"SpecialWords.Parameters.withImport","specialwords.ParametersAsyncClient.withIn":"SpecialWords.Parameters.withIn","specialwords.ParametersAsyncClient.withInWithResponse":"SpecialWords.Parameters.withIn","specialwords.ParametersAsyncClient.withIs":"SpecialWords.Parameters.withIs","specialwords.ParametersAsyncClient.withIsWithResponse":"SpecialWords.Parameters.withIs","specialwords.ParametersAsyncClient.withLambda":"SpecialWords.Parameters.withLambda","specialwords.ParametersAsyncClient.withLambdaWithResponse":"SpecialWords.Parameters.withLambda","specialwords.ParametersAsyncClient.withNot":"SpecialWords.Parameters.withNot","specialwords.ParametersAsyncClient.withNotWithResponse":"SpecialWords.Parameters.withNot","specialwords.ParametersAsyncClient.withOr":"SpecialWords.Parameters.withOr","specialwords.ParametersAsyncClient.withOrWithResponse":"SpecialWords.Parameters.withOr","specialwords.ParametersAsyncClient.withPass":"SpecialWords.Parameters.withPass","specialwords.ParametersAsyncClient.withPassWithResponse":"SpecialWords.Parameters.withPass","specialwords.ParametersAsyncClient.withRaise":"SpecialWords.Parameters.withRaise","specialwords.ParametersAsyncClient.withRaiseWithResponse":"SpecialWords.Parameters.withRaise","specialwords.ParametersAsyncClient.withReturn":"SpecialWords.Parameters.withReturn","specialwords.ParametersAsyncClient.withReturnWithResponse":"SpecialWords.Parameters.withReturn","specialwords.ParametersAsyncClient.withTry":"SpecialWords.Parameters.withTry","specialwords.ParametersAsyncClient.withTryWithResponse":"SpecialWords.Parameters.withTry","specialwords.ParametersAsyncClient.withWhile":"SpecialWords.Parameters.withWhile","specialwords.ParametersAsyncClient.withWhileWithResponse":"SpecialWords.Parameters.withWhile","specialwords.ParametersAsyncClient.withWith":"SpecialWords.Parameters.withWith","specialwords.ParametersAsyncClient.withWithWithResponse":"SpecialWords.Parameters.withWith","specialwords.ParametersAsyncClient.withYield":"SpecialWords.Parameters.withYield","specialwords.ParametersAsyncClient.withYieldWithResponse":"SpecialWords.Parameters.withYield","specialwords.ParametersClient":"SpecialWords.Parameters","specialwords.ParametersClient.withAnd":"SpecialWords.Parameters.withAnd","specialwords.ParametersClient.withAndWithResponse":"SpecialWords.Parameters.withAnd","specialwords.ParametersClient.withAs":"SpecialWords.Parameters.withAs","specialwords.ParametersClient.withAsWithResponse":"SpecialWords.Parameters.withAs","specialwords.ParametersClient.withAssert":"SpecialWords.Parameters.withAssert","specialwords.ParametersClient.withAssertWithResponse":"SpecialWords.Parameters.withAssert","specialwords.ParametersClient.withAsyncWithResponse":"SpecialWords.Parameters.withAsync","specialwords.ParametersClient.withAwait":"SpecialWords.Parameters.withAwait","specialwords.ParametersClient.withAwaitWithResponse":"SpecialWords.Parameters.withAwait","specialwords.ParametersClient.withBreak":"SpecialWords.Parameters.withBreak","specialwords.ParametersClient.withBreakWithResponse":"SpecialWords.Parameters.withBreak","specialwords.ParametersClient.withCancellationToken":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersClient.withCancellationTokenWithResponse":"SpecialWords.Parameters.withCancellationToken","specialwords.ParametersClient.withClass":"SpecialWords.Parameters.withClass","specialwords.ParametersClient.withClassWithResponse":"SpecialWords.Parameters.withClass","specialwords.ParametersClient.withConstructor":"SpecialWords.Parameters.withConstructor","specialwords.ParametersClient.withConstructorWithResponse":"SpecialWords.Parameters.withConstructor","specialwords.ParametersClient.withContinue":"SpecialWords.Parameters.withContinue","specialwords.ParametersClient.withContinueWithResponse":"SpecialWords.Parameters.withContinue","specialwords.ParametersClient.withDef":"SpecialWords.Parameters.withDef","specialwords.ParametersClient.withDefWithResponse":"SpecialWords.Parameters.withDef","specialwords.ParametersClient.withDel":"SpecialWords.Parameters.withDel","specialwords.ParametersClient.withDelWithResponse":"SpecialWords.Parameters.withDel","specialwords.ParametersClient.withElif":"SpecialWords.Parameters.withElif","specialwords.ParametersClient.withElifWithResponse":"SpecialWords.Parameters.withElif","specialwords.ParametersClient.withElse":"SpecialWords.Parameters.withElse","specialwords.ParametersClient.withElseWithResponse":"SpecialWords.Parameters.withElse","specialwords.ParametersClient.withExcept":"SpecialWords.Parameters.withExcept","specialwords.ParametersClient.withExceptWithResponse":"SpecialWords.Parameters.withExcept","specialwords.ParametersClient.withExec":"SpecialWords.Parameters.withExec","specialwords.ParametersClient.withExecWithResponse":"SpecialWords.Parameters.withExec","specialwords.ParametersClient.withFinally":"SpecialWords.Parameters.withFinally","specialwords.ParametersClient.withFinallyWithResponse":"SpecialWords.Parameters.withFinally","specialwords.ParametersClient.withFor":"SpecialWords.Parameters.withFor","specialwords.ParametersClient.withForWithResponse":"SpecialWords.Parameters.withFor","specialwords.ParametersClient.withFrom":"SpecialWords.Parameters.withFrom","specialwords.ParametersClient.withFromWithResponse":"SpecialWords.Parameters.withFrom","specialwords.ParametersClient.withGlobal":"SpecialWords.Parameters.withGlobal","specialwords.ParametersClient.withGlobalWithResponse":"SpecialWords.Parameters.withGlobal","specialwords.ParametersClient.withIf":"SpecialWords.Parameters.withIf","specialwords.ParametersClient.withIfWithResponse":"SpecialWords.Parameters.withIf","specialwords.ParametersClient.withImport":"SpecialWords.Parameters.withImport","specialwords.ParametersClient.withImportWithResponse":"SpecialWords.Parameters.withImport","specialwords.ParametersClient.withIn":"SpecialWords.Parameters.withIn","specialwords.ParametersClient.withInWithResponse":"SpecialWords.Parameters.withIn","specialwords.ParametersClient.withIs":"SpecialWords.Parameters.withIs","specialwords.ParametersClient.withIsWithResponse":"SpecialWords.Parameters.withIs","specialwords.ParametersClient.withLambda":"SpecialWords.Parameters.withLambda","specialwords.ParametersClient.withLambdaWithResponse":"SpecialWords.Parameters.withLambda","specialwords.ParametersClient.withNot":"SpecialWords.Parameters.withNot","specialwords.ParametersClient.withNotWithResponse":"SpecialWords.Parameters.withNot","specialwords.ParametersClient.withOr":"SpecialWords.Parameters.withOr","specialwords.ParametersClient.withOrWithResponse":"SpecialWords.Parameters.withOr","specialwords.ParametersClient.withPass":"SpecialWords.Parameters.withPass","specialwords.ParametersClient.withPassWithResponse":"SpecialWords.Parameters.withPass","specialwords.ParametersClient.withRaise":"SpecialWords.Parameters.withRaise","specialwords.ParametersClient.withRaiseWithResponse":"SpecialWords.Parameters.withRaise","specialwords.ParametersClient.withReturn":"SpecialWords.Parameters.withReturn","specialwords.ParametersClient.withReturnWithResponse":"SpecialWords.Parameters.withReturn","specialwords.ParametersClient.withTry":"SpecialWords.Parameters.withTry","specialwords.ParametersClient.withTryWithResponse":"SpecialWords.Parameters.withTry","specialwords.ParametersClient.withWhile":"SpecialWords.Parameters.withWhile","specialwords.ParametersClient.withWhileWithResponse":"SpecialWords.Parameters.withWhile","specialwords.ParametersClient.withWith":"SpecialWords.Parameters.withWith","specialwords.ParametersClient.withWithWithResponse":"SpecialWords.Parameters.withWith","specialwords.ParametersClient.withYield":"SpecialWords.Parameters.withYield","specialwords.ParametersClient.withYieldWithResponse":"SpecialWords.Parameters.withYield","specialwords.SpecialWordsClientBuilder":"SpecialWords","specialwords.modelproperties.models.DictMethods":"SpecialWords.ModelProperties.DictMethods","specialwords.modelproperties.models.SameAsModel":"SpecialWords.ModelProperties.SameAsModel","specialwords.models.models.And":"SpecialWords.Models.and","specialwords.models.models.As":"SpecialWords.Models.as","specialwords.models.models.Assert":"SpecialWords.Models.assert","specialwords.models.models.Async":"SpecialWords.Models.async","specialwords.models.models.Await":"SpecialWords.Models.await","specialwords.models.models.Break":"SpecialWords.Models.break","specialwords.models.models.ClassModel":"SpecialWords.Models.class","specialwords.models.models.Constructor":"SpecialWords.Models.constructor","specialwords.models.models.Continue":"SpecialWords.Models.continue","specialwords.models.models.Def":"SpecialWords.Models.def","specialwords.models.models.Del":"SpecialWords.Models.del","specialwords.models.models.Elif":"SpecialWords.Models.elif","specialwords.models.models.Else":"SpecialWords.Models.else","specialwords.models.models.Except":"SpecialWords.Models.except","specialwords.models.models.Exec":"SpecialWords.Models.exec","specialwords.models.models.Finally":"SpecialWords.Models.finally","specialwords.models.models.For":"SpecialWords.Models.for","specialwords.models.models.From":"SpecialWords.Models.from","specialwords.models.models.Global":"SpecialWords.Models.global","specialwords.models.models.If":"SpecialWords.Models.if","specialwords.models.models.Import":"SpecialWords.Models.import","specialwords.models.models.In":"SpecialWords.Models.in","specialwords.models.models.Is":"SpecialWords.Models.is","specialwords.models.models.Lambda":"SpecialWords.Models.lambda","specialwords.models.models.Not":"SpecialWords.Models.not","specialwords.models.models.Or":"SpecialWords.Models.or","specialwords.models.models.Pass":"SpecialWords.Models.pass","specialwords.models.models.Raise":"SpecialWords.Models.raise","specialwords.models.models.Return":"SpecialWords.Models.return","specialwords.models.models.Try":"SpecialWords.Models.try","specialwords.models.models.While":"SpecialWords.Models.while","specialwords.models.models.With":"SpecialWords.Models.with","specialwords.models.models.Yield":"SpecialWords.Models.yield"},"generatedFiles":["src/main/java/module-info.java","src/main/java/specialwords/ModelPropertiesAsyncClient.java","src/main/java/specialwords/ModelPropertiesClient.java","src/main/java/specialwords/ModelsAsyncClient.java","src/main/java/specialwords/ModelsClient.java","src/main/java/specialwords/OperationsAsyncClient.java","src/main/java/specialwords/OperationsClient.java","src/main/java/specialwords/ParametersAsyncClient.java","src/main/java/specialwords/ParametersClient.java","src/main/java/specialwords/SpecialWordsClientBuilder.java","src/main/java/specialwords/implementation/ModelPropertiesImpl.java","src/main/java/specialwords/implementation/ModelsImpl.java","src/main/java/specialwords/implementation/OperationsImpl.java","src/main/java/specialwords/implementation/ParametersImpl.java","src/main/java/specialwords/implementation/SpecialWordsClientImpl.java","src/main/java/specialwords/implementation/package-info.java","src/main/java/specialwords/modelproperties/models/DictMethods.java","src/main/java/specialwords/modelproperties/models/SameAsModel.java","src/main/java/specialwords/modelproperties/models/package-info.java","src/main/java/specialwords/models/models/And.java","src/main/java/specialwords/models/models/As.java","src/main/java/specialwords/models/models/Assert.java","src/main/java/specialwords/models/models/Async.java","src/main/java/specialwords/models/models/Await.java","src/main/java/specialwords/models/models/Break.java","src/main/java/specialwords/models/models/ClassModel.java","src/main/java/specialwords/models/models/Constructor.java","src/main/java/specialwords/models/models/Continue.java","src/main/java/specialwords/models/models/Def.java","src/main/java/specialwords/models/models/Del.java","src/main/java/specialwords/models/models/Elif.java","src/main/java/specialwords/models/models/Else.java","src/main/java/specialwords/models/models/Except.java","src/main/java/specialwords/models/models/Exec.java","src/main/java/specialwords/models/models/Finally.java","src/main/java/specialwords/models/models/For.java","src/main/java/specialwords/models/models/From.java","src/main/java/specialwords/models/models/Global.java","src/main/java/specialwords/models/models/If.java","src/main/java/specialwords/models/models/Import.java","src/main/java/specialwords/models/models/In.java","src/main/java/specialwords/models/models/Is.java","src/main/java/specialwords/models/models/Lambda.java","src/main/java/specialwords/models/models/Not.java","src/main/java/specialwords/models/models/Or.java","src/main/java/specialwords/models/models/Pass.java","src/main/java/specialwords/models/models/Raise.java","src/main/java/specialwords/models/models/Return.java","src/main/java/specialwords/models/models/Try.java","src/main/java/specialwords/models/models/While.java","src/main/java/specialwords/models/models/With.java","src/main/java/specialwords/models/models/Yield.java","src/main/java/specialwords/models/models/package-info.java","src/main/java/specialwords/package-info.java"]} \ No newline at end of file diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/documentation.properties b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/documentation.properties new file mode 100644 index 00000000000..ca812989b4f --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/documentation.properties @@ -0,0 +1,2 @@ +name=${project.artifactId} +version=${project.version} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/main/resources/encode-array.properties b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/encode-array.properties new file mode 100644 index 00000000000..ca812989b4f --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/main/resources/encode-array.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/documentation/generated/DocumentationClientTestBase.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/documentation/generated/DocumentationClientTestBase.java new file mode 100644 index 00000000000..21b8d2c836b --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/documentation/generated/DocumentationClientTestBase.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package documentation.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 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; +import documentation.DocumentationClientBuilder; +import documentation.ListsClient; +import documentation.TextFormattingClient; + +class DocumentationClientTestBase extends TestProxyTestBase { + protected ListsClient listsClient; + + protected TextFormattingClient textFormattingClient; + + @Override + protected void beforeTest() { + DocumentationClientBuilder listsClientbuilder = new DocumentationClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.RECORD) { + listsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); + } + listsClient = listsClientbuilder.buildListsClient(); + + DocumentationClientBuilder textFormattingClientbuilder = new DocumentationClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.RECORD) { + textFormattingClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); + } + textFormattingClient = textFormattingClientbuilder.buildTextFormattingClient(); + + } +} diff --git a/packages/http-client-java/generator/http-client-generator-test/src/test/java/encode/array/generated/ArrayClientTestBase.java b/packages/http-client-java/generator/http-client-generator-test/src/test/java/encode/array/generated/ArrayClientTestBase.java new file mode 100644 index 00000000000..225f9f2497e --- /dev/null +++ b/packages/http-client-java/generator/http-client-generator-test/src/test/java/encode/array/generated/ArrayClientTestBase.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 encode.array.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 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; +import encode.array.ArrayClient; +import encode.array.ArrayClientBuilder; + +class ArrayClientTestBase extends TestProxyTestBase { + protected ArrayClient arrayClient; + + @Override + protected void beforeTest() { + ArrayClientBuilder arrayClientbuilder = new ArrayClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); + if (getTestMode() == TestMode.RECORD) { + arrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); + } + arrayClient = arrayClientbuilder.buildClient(); + + } +} diff --git a/packages/http-client-java/package-lock.json b/packages/http-client-java/package-lock.json index 8274f740ed9..710a31da7e6 100644 --- a/packages/http-client-java/package-lock.json +++ b/packages/http-client-java/package-lock.json @@ -1,12 +1,12 @@ { "name": "@typespec/http-client-java", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@typespec/http-client-java", - "version": "0.6.0", + "version": "0.6.1", "license": "MIT", "dependencies": { "@autorest/codemodel": "~4.20.1", @@ -14,26 +14,26 @@ "lodash": "~4.17.21" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.62.0", - "@azure-tools/typespec-azure-core": "0.62.0", - "@azure-tools/typespec-azure-resource-manager": "0.62.1", - "@azure-tools/typespec-azure-rulesets": "0.62.0", - "@azure-tools/typespec-client-generator-core": "0.62.0", + "@azure-tools/typespec-autorest": "0.63.0", + "@azure-tools/typespec-azure-core": "0.63.0", + "@azure-tools/typespec-azure-resource-manager": "0.63.0", + "@azure-tools/typespec-azure-rulesets": "0.63.0", + "@azure-tools/typespec-client-generator-core": "0.63.0", "@microsoft/api-extractor": "^7.55.1", "@microsoft/api-extractor-model": "^7.32.1", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.21", "@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", + "@typespec/compiler": "1.7.0", + "@typespec/events": "0.77.0", + "@typespec/http": "1.7.0", + "@typespec/openapi": "1.7.0", + "@typespec/rest": "0.77.0", + "@typespec/spector": "0.1.0-alpha.21", + "@typespec/sse": "0.77.0", + "@typespec/streams": "0.77.0", + "@typespec/versioning": "0.77.0", + "@typespec/xml": "0.77.0", "@vitest/coverage-v8": "^4.0.14", "@vitest/ui": "^4.0.14", "c8": "~10.1.3", @@ -45,19 +45,19 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@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.1 <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" + "@azure-tools/typespec-autorest": ">=0.63.0 <1.0.0", + "@azure-tools/typespec-azure-core": ">=0.63.0 <1.0.0", + "@azure-tools/typespec-azure-resource-manager": ">=0.63.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.63.0 <1.0.0", + "@typespec/compiler": "^1.7.0", + "@typespec/events": ">=0.77.0 <1.0.0", + "@typespec/http": "^1.7.0", + "@typespec/openapi": "^1.7.0", + "@typespec/rest": ">=0.77.0 <1.0.0", + "@typespec/sse": ">=0.77.0 <1.0.0", + "@typespec/streams": ">=0.77.0 <1.0.0", + "@typespec/versioning": ">=0.77.0 <1.0.0", + "@typespec/xml": ">=0.77.0 <1.0.0" } }, "node_modules/@autorest/codemodel": { @@ -110,24 +110,24 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.62.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.62.0.tgz", - "integrity": "sha512-XftwipfGGMk9e3qGzbRMBvVpfIqLMJKc8H+XlPHFymnCfexBniZn4Qu2t8nzOVM9fgOoFDjNDzk8W5lf59U5Dg==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.63.0.tgz", + "integrity": "sha512-E04eX5axqua+bVs8QH1z74Wrq+XjO6tInq6d6EhjBNQAcRyFCJNxJHqcJkzMWNy1ID/iIGNXyRG/elK2AdegZg==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@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" + "@azure-tools/typespec-azure-core": "^0.63.0", + "@azure-tools/typespec-azure-resource-manager": "^0.63.0", + "@azure-tools/typespec-client-generator-core": "^0.63.0", + "@typespec/compiler": "^1.7.0", + "@typespec/http": "^1.7.0", + "@typespec/openapi": "^1.7.0", + "@typespec/rest": "^0.77.0", + "@typespec/versioning": "^0.77.0", + "@typespec/xml": "^0.77.0" }, "peerDependenciesMeta": { "@typespec/xml": { @@ -136,24 +136,24 @@ } }, "node_modules/@azure-tools/typespec-azure-core": { - "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==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.63.0.tgz", + "integrity": "sha512-FbEmpZSQENzBt/Y8qSF1b98T8CqT3bV7IRV8AGGm/73NQZiWQCm2LvQzR0/lbqGntS2EnSBrt394Kt69wM4ifA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0", - "@typespec/http": "^1.6.0", - "@typespec/rest": "^0.76.0" + "@typespec/compiler": "^1.7.0", + "@typespec/http": "^1.7.0", + "@typespec/rest": "^0.77.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.62.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.62.1.tgz", - "integrity": "sha512-sbCwg5Auvm2/fYUWbx3RlQyZGlMoAmhtRjrurgwWzZIBxBJ7sVqgUQktl3WGHAoeJ3qYa2gAIL4j8/xSPwt5kw==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.63.0.tgz", + "integrity": "sha512-QXHryXgV9Rh7lBW9hrehjdGVM/W8eBN6wnfRRZtAAyfTc1AkRGDKOMFBtRtfbEkQpur16mgQTd7EyH2tpqfuSw==", "dev": true, "license": "MIT", "dependencies": { @@ -164,34 +164,34 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@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" + "@azure-tools/typespec-azure-core": "^0.63.0", + "@typespec/compiler": "^1.7.0", + "@typespec/http": "^1.7.0", + "@typespec/openapi": "^1.7.0", + "@typespec/rest": "^0.77.0", + "@typespec/versioning": "^0.77.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "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==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.63.0.tgz", + "integrity": "sha512-oZSderD/MVnPH+W8hh3rsta1uF9xVLp9b2jjyhiHL9lqYGnHUYk8sDti5PUk/LXIz8QAsBMSbXJMDgxTeND8Kg==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@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" + "@azure-tools/typespec-azure-core": "^0.63.0", + "@azure-tools/typespec-azure-resource-manager": "^0.63.0", + "@azure-tools/typespec-client-generator-core": "^0.63.0", + "@typespec/compiler": "^1.7.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "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==", + "version": "0.63.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.63.0.tgz", + "integrity": "sha512-zpvFvjCjNW+GWzHBV7vJ2E1PKXrmyNqp7FQiYo/D7PJBVTXNtOyIKqqo043ktAaWihbr8cl5QguuNSoBAKL0+Q==", "dev": true, "license": "MIT", "dependencies": { @@ -203,16 +203,16 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@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" + "@azure-tools/typespec-azure-core": "^0.63.0", + "@typespec/compiler": "^1.7.0", + "@typespec/events": "^0.77.0", + "@typespec/http": "^1.7.0", + "@typespec/openapi": "^1.7.0", + "@typespec/rest": "^0.77.0", + "@typespec/sse": "^0.77.0", + "@typespec/streams": "^0.77.0", + "@typespec/versioning": "^0.77.0", + "@typespec/xml": "^0.77.0" } }, "node_modules/@azure/abort-controller": { @@ -405,22 +405,22 @@ } }, "node_modules/@azure/msal-browser": { - "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==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.27.0.tgz", + "integrity": "sha512-bZ8Pta6YAbdd0o0PEaL1/geBsPrLEnyY/RDWqvF1PP9RUH8EMLvUMGoZFYS6jSlUan6KZ9IMTLCnwpWWpQRK/w==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.13.1" + "@azure/msal-common": "15.13.3" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "15.13.1", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.13.1.tgz", - "integrity": "sha512-vQYQcG4J43UWgo1lj7LcmdsGUKWYo28RfEvDQAEMmQIMjSFufvb+pS0FJ3KXmrPmnWlt1vHDl3oip6mIDUQ4uA==", + "version": "15.13.3", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.13.3.tgz", + "integrity": "sha512-shSDU7Ioecya+Aob5xliW9IGq1Ui8y4EVSdWGyI1Gbm4Vg61WpP95LuzcY214/wEjSn6w4PZYD4/iVldErHayQ==", "dev": true, "license": "MIT", "engines": { @@ -428,13 +428,13 @@ } }, "node_modules/@azure/msal-node": { - "version": "3.8.2", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.2.tgz", - "integrity": "sha512-dQrex2LiXwlCe9WuBHnCsY+xxLyuMXSd2SDEYJuhqB7cE8u6QafiC1xy8j8eBjGO30AsRi2M6amH0ZKk7vJpjA==", + "version": "3.8.4", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.4.tgz", + "integrity": "sha512-lvuAwsDpPDE/jSuVQOBMpLbXuVuLsPNRwWCyK3/6bPlBk0fGWegqoZ0qjZclMWyQ2JNvIY3vHY7hoFmFmFQcOw==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.13.1", + "@azure/msal-common": "15.13.3", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" }, @@ -1006,21 +1006,30 @@ "node": ">=18" } }, + "node_modules/@inquirer/ansi": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/ansi/-/ansi-2.0.2.tgz", + "integrity": "sha512-SYLX05PwJVnW+WVegZt1T4Ip1qba1ik+pNJPDiqvk6zS5Y/i8PhRzLpGEtVd7sW0G8cMtkD8t4AZYhQwm8vnww==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" + } + }, "node_modules/@inquirer/checkbox": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz", - "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-5.0.2.tgz", + "integrity": "sha512-iTPV4tMMct7iOpwer5qmTP7gjnk1VQJjsNfAaC2b8Q3qiuHM3K2yjjDr5u1MKfkrvp2JD4Flf8sIPpF21pmZmw==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/figures": "^1.0.11", - "@inquirer/type": "^3.0.5", - "ansi-escapes": "^4.3.2", - "yoctocolors-cjs": "^2.1.2" + "@inquirer/ansi": "^2.0.2", + "@inquirer/core": "^11.0.2", + "@inquirer/figures": "^2.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1032,17 +1041,17 @@ } }, "node_modules/@inquirer/confirm": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz", - "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-6.0.2.tgz", + "integrity": "sha512-A0/13Wyi+8iFeNDX6D4zZYKPoBLIEbE4K/219qHcnpXMer2weWvaTo63+2c7mQPPA206DEMSYVOPnEw3meOlCw==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/type": "^3.0.5" + "@inquirer/core": "^11.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1054,23 +1063,22 @@ } }, "node_modules/@inquirer/core": { - "version": "10.1.15", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.15.tgz", - "integrity": "sha512-8xrp836RZvKkpNbVvgWUlxjT4CraKk2q+I3Ksy+seI2zkcE+y6wNs1BVhgcv8VyImFecUhdQrYLdW32pAjwBdA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-11.0.2.tgz", + "integrity": "sha512-lgMRx/n02ciiNELBvFLHtmcjbV5tf5D/I0UYfCg2YbTZWmBZ10/niLd3IjWBxz8LtM27xP+4oLEa06Slmb7p7A==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/figures": "^1.0.13", - "@inquirer/type": "^3.0.8", - "ansi-escapes": "^4.3.2", + "@inquirer/ansi": "^2.0.2", + "@inquirer/figures": "^2.0.2", + "@inquirer/type": "^4.0.2", "cli-width": "^4.1.0", - "mute-stream": "^2.0.0", + "mute-stream": "^3.0.0", "signal-exit": "^4.1.0", - "wrap-ansi": "^6.2.0", - "yoctocolors-cjs": "^2.1.2" + "wrap-ansi": "^9.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1081,34 +1089,104 @@ } } }, + "node_modules/@inquirer/core/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@inquirer/core/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@inquirer/core/node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "dev": true, + "license": "MIT" + }, + "node_modules/@inquirer/core/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@inquirer/core/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/@inquirer/core/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", "dev": true, "license": "MIT", "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/@inquirer/editor": { - "version": "4.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.16.tgz", - "integrity": "sha512-iSzLjT4C6YKp2DU0fr8T7a97FnRRxMO6CushJnW5ktxLNM2iNeuyUuUA5255eOLPORoGYCrVnuDOEBdGkHGkpw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-5.0.2.tgz", + "integrity": "sha512-pXQ4Nf0qmFcJuYB6NlcIIxH6l6zKOwNg1Jh/ZRdKd2dTqBB4OXKUFbFwR2K4LVXVtq15ZFFatBVT+rerYR8hWQ==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.15", - "@inquirer/external-editor": "^1.0.0", - "@inquirer/type": "^3.0.8" + "@inquirer/core": "^11.0.2", + "@inquirer/external-editor": "^2.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1120,18 +1198,17 @@ } }, "node_modules/@inquirer/expand": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz", - "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-5.0.2.tgz", + "integrity": "sha512-siFG1swxfjFIOxIcehtZkh+KUNB/YCpyfHNEGu+nC/SBXIbgUWibvThLn/WesSxLRGOeSKdNKoTm+GQCKFm6Ww==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/type": "^3.0.5", - "yoctocolors-cjs": "^2.1.2" + "@inquirer/core": "^11.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1143,44 +1220,49 @@ } }, "node_modules/@inquirer/external-editor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.0.tgz", - "integrity": "sha512-5v3YXc5ZMfL6OJqXPrX9csb4l7NlQA2doO1yynUjpUChT9hg4JcuBVP0RbsEJ/3SL/sxWEyFjT2W69ZhtoBWqg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-2.0.2.tgz", + "integrity": "sha512-X/fMXK7vXomRWEex1j8mnj7s1mpnTeP4CO/h2gysJhHLT2WjBnLv4ZQEGpm/kcYI8QfLZ2fgW+9kTKD+jeopLg==", "dev": true, "license": "MIT", "dependencies": { - "chardet": "^2.1.0", - "iconv-lite": "^0.6.3" + "chardet": "^2.1.1", + "iconv-lite": "^0.7.0" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/figures": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz", - "integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-2.0.2.tgz", + "integrity": "sha512-qXm6EVvQx/FmnSrCWCIGtMHwqeLgxABP8XgcaAoywsL0NFga9gD5kfG0gXiv80GjK9Hsoz4pgGwF/+CjygyV9A==", "dev": true, "license": "MIT", "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" } }, "node_modules/@inquirer/input": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz", - "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-5.0.2.tgz", + "integrity": "sha512-hN2YRo1QiEc9lD3mK+CPnTS4TK2RhCMmMmP4nCWwTkmQL2vx9jPJWYk+rbUZpwR1D583ZJk1FI3i9JZXIpi/qg==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/type": "^3.0.5" + "@inquirer/core": "^11.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1192,17 +1274,17 @@ } }, "node_modules/@inquirer/number": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz", - "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-4.0.2.tgz", + "integrity": "sha512-4McnjTSYrlthNW1ojkkmP75WLRYhQs7GXm6pDDoIrHqJuV5uUYwfdbB0geHdaKMarAqJQgoOVjzIT0jdWCsKew==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/type": "^3.0.5" + "@inquirer/core": "^11.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1214,18 +1296,18 @@ } }, "node_modules/@inquirer/password": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.11.tgz", - "integrity": "sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-5.0.2.tgz", + "integrity": "sha512-oSDziMKiw4G2e4zS+0JRfxuPFFGh6N/9yUaluMgEHp2/Yyj2JGwfDO7XbwtOrxVrz+XsP/iaGyWXdQb9d8A0+g==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/type": "^3.0.5", - "ansi-escapes": "^4.3.2" + "@inquirer/ansi": "^2.0.2", + "@inquirer/core": "^11.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1237,25 +1319,25 @@ } }, "node_modules/@inquirer/prompts": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.4.0.tgz", - "integrity": "sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==", + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-8.0.2.tgz", + "integrity": "sha512-2zK5zY48fZcl6+gG4eqOC/UzZsJckHCRvjXoLuW4D8LKOCVGdcJiSKkLnumSZjR/6PXPINDGOrGHqNxb+sxJDg==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/checkbox": "^4.1.4", - "@inquirer/confirm": "^5.1.8", - "@inquirer/editor": "^4.2.9", - "@inquirer/expand": "^4.0.11", - "@inquirer/input": "^4.1.8", - "@inquirer/number": "^3.0.11", - "@inquirer/password": "^4.0.11", - "@inquirer/rawlist": "^4.0.11", - "@inquirer/search": "^3.0.11", - "@inquirer/select": "^4.1.0" + "@inquirer/checkbox": "^5.0.2", + "@inquirer/confirm": "^6.0.2", + "@inquirer/editor": "^5.0.2", + "@inquirer/expand": "^5.0.2", + "@inquirer/input": "^5.0.2", + "@inquirer/number": "^4.0.2", + "@inquirer/password": "^5.0.2", + "@inquirer/rawlist": "^5.0.2", + "@inquirer/search": "^4.0.2", + "@inquirer/select": "^5.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1267,18 +1349,17 @@ } }, "node_modules/@inquirer/rawlist": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.11.tgz", - "integrity": "sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-5.0.2.tgz", + "integrity": "sha512-AcNALEdQKUQDeJcpC1a3YC53m1MLv+sMUS+vRZ8Qigs1Yg3Dcdtmi82rscJplogKOY8CXkKW4wvVwHS2ZjCIBQ==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/type": "^3.0.5", - "yoctocolors-cjs": "^2.1.2" + "@inquirer/core": "^11.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1290,19 +1371,18 @@ } }, "node_modules/@inquirer/search": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.11.tgz", - "integrity": "sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-4.0.2.tgz", + "integrity": "sha512-hg63w5toohdzE65S3LiGhdfIL0kT+yisbZARf7zw65PvyMUTutTN3eMAvD/B6y/25z88vTrB7kSB45Vz5CbrXg==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/figures": "^1.0.11", - "@inquirer/type": "^3.0.5", - "yoctocolors-cjs": "^2.1.2" + "@inquirer/core": "^11.0.2", + "@inquirer/figures": "^2.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1314,20 +1394,19 @@ } }, "node_modules/@inquirer/select": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.1.0.tgz", - "integrity": "sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-5.0.2.tgz", + "integrity": "sha512-JygTohvQxSNnvt7IKANVlg/eds+yN5sLRilYeGc4ri/9Aqi/2QPoXBMV5Cz/L1VtQv63SnTbPXJZeCK2pSwsOA==", "dev": true, "license": "MIT", "dependencies": { - "@inquirer/core": "^10.1.9", - "@inquirer/figures": "^1.0.11", - "@inquirer/type": "^3.0.5", - "ansi-escapes": "^4.3.2", - "yoctocolors-cjs": "^2.1.2" + "@inquirer/ansi": "^2.0.2", + "@inquirer/core": "^11.0.2", + "@inquirer/figures": "^2.0.2", + "@inquirer/type": "^4.0.2" }, "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -1339,13 +1418,13 @@ } }, "node_modules/@inquirer/type": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.8.tgz", - "integrity": "sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-4.0.2.tgz", + "integrity": "sha512-cae7mzluplsjSdgFA6ACLygb5jC8alO0UUnFPyu0E7tNRPrL+q/f8VcSXp+cjZQ7l5CMpDpi2G1+IQvkOiL1Lw==", "dev": true, "license": "MIT", "engines": { - "node": ">=18" + "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0" }, "peerDependencies": { "@types/node": ">=18" @@ -2208,18 +2287,18 @@ } }, "node_modules/@typespec/compiler": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.6.0.tgz", - "integrity": "sha512-yxyV+ch8tnqiuU2gClv/mQEESoFwpkjo6177UkYfV0nVA9PzTg4zVVc7+WIMZk04wiLRRT3H1uc11FB1cwLY3g==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.7.0.tgz", + "integrity": "sha512-KE2t5I7u/33M/nsIxdng06FUPrqaGSbMsSEsv51eMwYnj3v1+Z3qTTX/dxHAXRXHcfadNlX/NtyAKju+pkMTFQ==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "~7.27.1", - "@inquirer/prompts": "^7.4.0", + "@inquirer/prompts": "^8.0.1", "ajv": "~8.17.1", "change-case": "~5.4.4", "env-paths": "^3.0.0", - "globby": "~15.0.0", + "globby": "~16.0.0", "is-unicode-supported": "^2.1.0", "mustache": "~4.2.0", "picocolors": "~1.1.1", @@ -2385,30 +2464,30 @@ } }, "node_modules/@typespec/events": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.76.0.tgz", - "integrity": "sha512-mdjYQ5HA3Y4ZeyAEmiIDdRa9hbc/5qey5hU9UCA0gL+YWVYgoqLPbZQQTwqq3smM35+5cWp9GTGPyNHcOoRwOA==", + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.77.0.tgz", + "integrity": "sha512-NbOzi7axEt/xGgXaLjcGGV2HjQKNFjbvsQpCeDA6loUghZDK5+5ik/jwMumeUDunoBsAKF78ZxVF5qhQh56dGA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0" + "@typespec/compiler": "^1.7.0" } }, "node_modules/@typespec/http": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.6.0.tgz", - "integrity": "sha512-q/JwVw21CF4buE3ZS+xSoy2TKAOwyhZ7g3kdNqCgm69BI5p5GGu+3ZlUA+4Blk8hkt0G8XcIN8fhJP+a4O6KAw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.7.0.tgz", + "integrity": "sha512-4cGkcMiob3bedWbFkRcq614TDH7WPEI3YMgrg44mBarj903arpEniAESIhNUbLQzQFFc5rOJagexQDl4agVDyA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0", - "@typespec/streams": "^0.76.0" + "@typespec/compiler": "^1.7.0", + "@typespec/streams": "^0.77.0" }, "peerDependenciesMeta": { "@typespec/streams": { @@ -2417,37 +2496,37 @@ } }, "node_modules/@typespec/openapi": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.6.0.tgz", - "integrity": "sha512-KuxYAzfP5ljM0PUhSGclNZgTG0H+kyTQcwn6cf4TKhO72R2QMQmiMtN2plqvzsfkL+TLwad1iZhMWTCAMFAQ4w==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.7.0.tgz", + "integrity": "sha512-tEAIgGnjLvOjbGAoCfkBudvpe/tXaOXkzy5nVFXs4921/jAaMTwzcJIt0bTXZpp5cExdlL7w9ZrnehARHiposQ==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0", - "@typespec/http": "^1.6.0" + "@typespec/compiler": "^1.7.0", + "@typespec/http": "^1.7.0" } }, "node_modules/@typespec/rest": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.76.0.tgz", - "integrity": "sha512-6jtQWdcmuKyG9cmqWsJjaq64f6N5B/1DS4X3ZoTNgYhHA27Hnsxo1HZWXcpv7Wl+MxLAZM6kgpML0ugDEZcrYQ==", + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.77.0.tgz", + "integrity": "sha512-DEUMD9zYqUVUhKCGktV7Z+sFkzj+bcSpJRhEXxOrJxupWM4I3N4deMop+ulxezxlLxIRUz7ELc+6WucYXgOnAA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0", - "@typespec/http": "^1.6.0" + "@typespec/compiler": "^1.7.0", + "@typespec/http": "^1.7.0" } }, "node_modules/@typespec/spec-api": { - "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==", + "version": "0.1.0-alpha.11", + "resolved": "https://registry.npmjs.org/@typespec/spec-api/-/spec-api-0.1.0-alpha.11.tgz", + "integrity": "sha512-qNQ8Oc7ha9MzRMfcF4djRaxa7gmM9CUetNeZIVJO4PZDIe9Rb/HMX9C3LP0f5LiiYkE8KvA/jLAR4FSYqp0onA==", "dev": true, "license": "MIT", "dependencies": { @@ -2460,57 +2539,46 @@ } }, "node_modules/@typespec/spec-coverage-sdk": { - "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==", + "version": "0.1.0-alpha.13", + "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.13.tgz", + "integrity": "sha512-GpCWrbcMQis+utHukdWdY85lNeQX89OBYiBovOxCGO5DmUmqnPQWzHZIggoAQ6fuSlC+tZoWAbY5hygN1QzPPA==", "dev": true, "license": "MIT", "dependencies": { "@azure/identity": "~4.13.0", "@azure/storage-blob": "~12.29.1", - "@types/node": "~24.9.1" + "@types/node": "~24.10.1" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@typespec/spec-coverage-sdk/node_modules/@types/node": { - "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.16.0" - } - }, "node_modules/@typespec/spector": { - "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==", + "version": "0.1.0-alpha.21", + "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.21.tgz", + "integrity": "sha512-oLtAs2/E+ee/OPeMZnRUxiuVjUeYaxi5R1KeFThAjLszp6M2rkCfeIdyj2RosGxiqWrmoEd9oCWO/fHwvGVZew==", "dev": true, "license": "MIT", "dependencies": { "@azure/identity": "~4.13.0", - "@types/js-yaml": "^4.0.5", - "@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", + "@typespec/compiler": "^1.7.0", + "@typespec/http": "^1.7.0", + "@typespec/rest": "^0.77.0", + "@typespec/spec-api": "^0.1.0-alpha.11", + "@typespec/spec-coverage-sdk": "^0.1.0-alpha.13", + "@typespec/versioning": "^0.77.0", "ajv": "~8.17.1", "body-parser": "^2.2.0", "deep-equal": "^2.2.0", "express": "^5.1.0", - "globby": "~15.0.0", - "js-yaml": "^4.1.0", + "globby": "~16.0.0", "micromatch": "^4.0.8", "morgan": "^1.10.0", "multer": "^2.0.1", "picocolors": "~1.1.1", "source-map-support": "~0.5.21", "xml2js": "^0.6.2", + "yaml": "~2.8.0", "yargs": "~18.0.0" }, "bin": { @@ -2666,32 +2734,32 @@ } }, "node_modules/@typespec/sse": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.76.0.tgz", - "integrity": "sha512-mCd4oAXr0Tt990T2PDjx+6H0jmPHINyCH0XRU2HrWtGW5lG/NQVIs5oOxElc7NGg629HrolfLTw0oW8hdMD7Eg==", + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.77.0.tgz", + "integrity": "sha512-rVML/sPNj+MomKXftko/eUNM5OhHlIevoit3Dbtaf1aWS5pcJ5jKX05Prz53VIyeUP7ra5ocmPE/iIEPb8ZbCA==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0", - "@typespec/events": "^0.76.0", - "@typespec/http": "^1.6.0", - "@typespec/streams": "^0.76.0" + "@typespec/compiler": "^1.7.0", + "@typespec/events": "^0.77.0", + "@typespec/http": "^1.7.0", + "@typespec/streams": "^0.77.0" } }, "node_modules/@typespec/streams": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.76.0.tgz", - "integrity": "sha512-7gQPtsokyn0Mjr43MAik6ZkQt1PZjseU+KcBE2iGT9P6oWYYTH3K1C4LLGXHZAbgEtBvFn4S+U8HPbDhj4nEhw==", + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.77.0.tgz", + "integrity": "sha512-qqfJW4n19Jgi5FxQhsEgoIc5zD9o47AAoZxLKUX91z6aB/YWrLSTrrrIAvhNCESXuB89zlJPwlZ/j4YmpxZ/jw==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0" + "@typespec/compiler": "^1.7.0" } }, "node_modules/@typespec/ts-http-runtime": { @@ -2710,29 +2778,29 @@ } }, "node_modules/@typespec/versioning": { - "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==", + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.77.0.tgz", + "integrity": "sha512-eAInPZYPkxpBUS8IKQfNZ5eZsLfkWqEX0d6YM/AfooGYbxcKdHQBfYOWBvRC4NkKEMub4ROaD5GcPLYTyWQIWw==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0" + "@typespec/compiler": "^1.7.0" } }, "node_modules/@typespec/xml": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.76.0.tgz", - "integrity": "sha512-+I7hdWZDO3qBfzRT3St+1Dg/NQAMNLz8w1OydutSnVMx0G3KWg/ESonaByszBUfdq6Z5iTtls3gvj4wgrw80gA==", + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.77.0.tgz", + "integrity": "sha512-DNVAOMaRUPGpLEsqf3sn7UAWuAE1rs8Jf1FIAU7DF/sVmzeXs4OBanxSSsVmbcdfPRHPbjPuRnW6e+QS2Sjk3Q==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.6.0" + "@typespec/compiler": "^1.7.0" } }, "node_modules/@vitest/coverage-v8": { @@ -2974,22 +3042,6 @@ } } }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -3160,23 +3212,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", - "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, "node_modules/brace-expansion": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", @@ -3353,9 +3388,9 @@ "dev": true }, "node_modules/chardet": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", - "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz", + "integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==", "dev": true, "license": "MIT" }, @@ -3410,16 +3445,17 @@ } }, "node_modules/content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz", + "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==", "dev": true, "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/content-type": { @@ -3524,9 +3560,9 @@ } }, "node_modules/default-browser": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.3.0.tgz", - "integrity": "sha512-Qq68+VkJlc8tjnPV1i7HtbIn7ohmjZa88qUvHMIK0ZKUXMCuV45cT7cEXALPUmeXCe0q1DWQkQTemHVaLIFSrg==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.4.0.tgz", + "integrity": "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==", "dev": true, "license": "MIT", "dependencies": { @@ -3541,9 +3577,9 @@ } }, "node_modules/default-browser-id": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz", - "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", "dev": true, "license": "MIT", "engines": { @@ -3849,19 +3885,20 @@ } }, "node_modules/express": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", - "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", "dev": true, "license": "MIT", "dependencies": { "accepts": "^2.0.0", - "body-parser": "^2.2.0", + "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", + "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", @@ -3921,9 +3958,9 @@ "dev": true }, "node_modules/fast-xml-parser": { - "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==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.2.tgz", + "integrity": "sha512-n8v8b6p4Z1sMgqRmqLJm3awW4NX7NkaKPfb3uJIBTSH7Pdvufi3PQ3/lJLQrvxcMYl7JI2jnDO90siPEpD8JBA==", "dev": true, "funding": [ { @@ -3970,9 +4007,9 @@ } }, "node_modules/finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", "dev": true, "license": "MIT", "dependencies": { @@ -3984,7 +4021,11 @@ "statuses": "^2.0.1" }, "engines": { - "node": ">= 0.8" + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/find-up": { @@ -4221,18 +4262,18 @@ } }, "node_modules/globby": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-15.0.0.tgz", - "integrity": "sha512-oB4vkQGqlMl682wL1IlWd02tXCbquGWM4voPEI85QmNKCaw8zGTm1f1rubFgkg3Eli2PtKlFgrnmUqasbQWlkw==", + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-16.0.0.tgz", + "integrity": "sha512-ejy4TJFga99yW6Q0uhM3pFawKWZmtZzZD/v/GwI5+9bCV5Ew+D2pSND6W7fUes5UykqSsJkUfxFVdRh7Q1+P3Q==", "dev": true, "license": "MIT", "dependencies": { "@sindresorhus/merge-streams": "^4.0.0", "fast-glob": "^3.3.3", "ignore": "^7.0.5", - "path-type": "^6.0.0", + "is-path-inside": "^4.0.0", "slash": "^5.1.0", - "unicorn-magic": "^0.3.0" + "unicorn-magic": "^0.4.0" }, "engines": { "node": ">=20" @@ -4343,30 +4384,24 @@ "dev": true }, "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", "dev": true, "license": "MIT", "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" }, "engines": { "node": ">= 0.8" - } - }, - "node_modules/http-errors/node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/http-proxy-agent": { @@ -4398,9 +4433,9 @@ } }, "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", + "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", "dev": true, "license": "MIT", "dependencies": { @@ -4408,6 +4443,10 @@ }, "engines": { "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/ignore": { @@ -4683,6 +4722,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-path-inside": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz", + "integrity": "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-promise": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", @@ -4954,13 +5006,13 @@ } }, "node_modules/jsonwebtoken": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", - "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", "dev": true, "license": "MIT", "dependencies": { - "jws": "^3.2.2", + "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", @@ -4977,9 +5029,9 @@ } }, "node_modules/jwa": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", - "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", "dev": true, "license": "MIT", "dependencies": { @@ -4989,13 +5041,13 @@ } }, "node_modules/jws": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.3.tgz", - "integrity": "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", "dev": true, "license": "MIT", "dependencies": { - "jwa": "^1.4.2", + "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, @@ -5183,16 +5235,20 @@ } }, "node_modules/mime-types": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz", - "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", "dev": true, "license": "MIT", "dependencies": { "mime-db": "^1.54.0" }, "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/minimatch": { @@ -5395,13 +5451,13 @@ } }, "node_modules/mute-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", - "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-3.0.0.tgz", + "integrity": "sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==", "dev": true, "license": "ISC", "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/nanoid": { @@ -5667,19 +5723,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/path-type": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-6.0.0.tgz", - "integrity": "sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/pathe": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", @@ -5856,38 +5899,21 @@ } }, "node_modules/raw-body": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.1.tgz", - "integrity": "sha512-9G8cA+tuMS75+6G/TzW8OtLzmBDMo8p1JRxN5AZ+LAp8uxGA8V8GZm4GQ4/N5QNQEnLmg6SS7wyuSmbKepiKqA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", "dev": true, "license": "MIT", "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.7.0", - "unpipe": "1.0.0" + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" }, "engines": { "node": ">= 0.10" } }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", - "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -6844,19 +6870,6 @@ "dev": true, "license": "0BSD" }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/type-is": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", @@ -6901,13 +6914,13 @@ "license": "MIT" }, "node_modules/unicorn-magic": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", - "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.4.0.tgz", + "integrity": "sha512-wH590V9VNgYH9g3lH9wWjTrUoKsjLF6sGLjhR4sH1LWpLmCOH0Zf7PukhDA8BiS7KHe4oPNkcTHqYkj7SOGUOw==", "dev": true, "license": "MIT", "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -7475,19 +7488,6 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/yoctocolors-cjs": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", - "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } } } } diff --git a/packages/http-client-java/package.json b/packages/http-client-java/package.json index 63f510b4c5a..061c137213c 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.6.0", + "version": "0.6.1", "description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding", "keywords": [ "TypeSpec" @@ -49,19 +49,19 @@ "generator/http-client-generator/target/classes/PerfAutomation.jfc" ], "peerDependencies": { - "@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.1 <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" + "@azure-tools/typespec-autorest": ">=0.63.0 <1.0.0", + "@azure-tools/typespec-azure-core": ">=0.63.0 <1.0.0", + "@azure-tools/typespec-azure-resource-manager": ">=0.63.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.63.0 <1.0.0", + "@typespec/compiler": "^1.7.0", + "@typespec/events": ">=0.77.0 <1.0.0", + "@typespec/http": "^1.7.0", + "@typespec/openapi": "^1.7.0", + "@typespec/rest": ">=0.77.0 <1.0.0", + "@typespec/sse": ">=0.77.0 <1.0.0", + "@typespec/streams": ">=0.77.0 <1.0.0", + "@typespec/versioning": ">=0.77.0 <1.0.0", + "@typespec/xml": ">=0.77.0 <1.0.0" }, "dependencies": { "@autorest/codemodel": "~4.20.1", @@ -69,26 +69,26 @@ "lodash": "~4.17.21" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.62.0", - "@azure-tools/typespec-azure-core": "0.62.0", - "@azure-tools/typespec-azure-resource-manager": "0.62.1", - "@azure-tools/typespec-azure-rulesets": "0.62.0", - "@azure-tools/typespec-client-generator-core": "0.62.0", + "@azure-tools/typespec-autorest": "0.63.0", + "@azure-tools/typespec-azure-core": "0.63.0", + "@azure-tools/typespec-azure-resource-manager": "0.63.0", + "@azure-tools/typespec-azure-rulesets": "0.63.0", + "@azure-tools/typespec-client-generator-core": "0.63.0", "@microsoft/api-extractor": "^7.55.1", "@microsoft/api-extractor-model": "^7.32.1", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.21", "@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", + "@typespec/compiler": "1.7.0", + "@typespec/events": "0.77.0", + "@typespec/http": "1.7.0", + "@typespec/openapi": "1.7.0", + "@typespec/rest": "0.77.0", + "@typespec/spector": "0.1.0-alpha.21", + "@typespec/sse": "0.77.0", + "@typespec/streams": "0.77.0", + "@typespec/versioning": "0.77.0", + "@typespec/xml": "0.77.0", "@vitest/coverage-v8": "^4.0.14", "@vitest/ui": "^4.0.14", "c8": "~10.1.3",