diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsAsyncClient.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsAsyncClient.java index 860c350328..3f6c33ab99 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsAsyncClient.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsAsyncClient.java @@ -54,9 +54,11 @@ public final class DocumentModelsAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param contentType Upload file type. Allowed values: "application/octet-stream", "application/pdf", "image/bmp", @@ -79,7 +81,8 @@ public PollerFlux beginAnalyzeDocument(String modelId, S * Gets the result of document analysis. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     status: String(notStarted/running/failed/succeeded) (Required)
      *     createdDateTime: OffsetDateTime (Required)
@@ -282,7 +285,8 @@ public PollerFlux beginAnalyzeDocument(String modelId, S
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param resultId Analyze operation result ID. @@ -304,7 +308,8 @@ public Mono> getAnalyzeResultWithResponse(String modelId, S * Builds a custom document analysis model. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -317,7 +322,8 @@ public Mono> getAnalyzeResultWithResponse(String modelId, S
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param buildRequest Building request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -337,7 +343,8 @@ public PollerFlux beginBuildModel(BinaryData buildReques * Creates a new document model from document types of existing document models. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -350,7 +357,8 @@ public PollerFlux beginBuildModel(BinaryData buildReques
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param composeRequest Compose request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -372,7 +380,8 @@ public PollerFlux beginComposeModel(BinaryData composeRe * description. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -380,11 +389,13 @@ public PollerFlux beginComposeModel(BinaryData composeRe
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -393,7 +404,8 @@ public PollerFlux beginComposeModel(BinaryData composeRe
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param authorizeCopyRequest Authorize copy request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -415,7 +427,8 @@ public Mono> authorizeModelCopyWithResponse(BinaryData auth * Copies document model to the target resource, region, and modelId. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -424,7 +437,8 @@ public Mono> authorizeModelCopyWithResponse(BinaryData auth
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param copyToRequest Copy to request parameters. @@ -446,7 +460,8 @@ public PollerFlux beginCopyModelTo(String modelId, Binar * List all document models. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -456,7 +471,8 @@ public PollerFlux beginCopyModelTo(String modelId, Binar
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -475,7 +491,8 @@ public PagedFlux listModels(RequestOptions requestOptions) { * Gets detailed document model information. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -505,7 +522,8 @@ public PagedFlux listModels(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClient.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClient.java index b6a0739803..09fde8e4e3 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClient.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClient.java @@ -53,9 +53,11 @@ public final class DocumentModelsClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param contentType Upload file type. Allowed values: "application/octet-stream", "application/pdf", "image/bmp", @@ -78,7 +80,8 @@ public SyncPoller beginAnalyzeDocument(String modelId, S * Gets the result of document analysis. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     status: String(notStarted/running/failed/succeeded) (Required)
      *     createdDateTime: OffsetDateTime (Required)
@@ -281,7 +284,8 @@ public SyncPoller beginAnalyzeDocument(String modelId, S
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param resultId Analyze operation result ID. @@ -303,7 +307,8 @@ public Response getAnalyzeResultWithResponse(String modelId, String * Builds a custom document analysis model. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -316,7 +321,8 @@ public Response getAnalyzeResultWithResponse(String modelId, String
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param buildRequest Building request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -336,7 +342,8 @@ public SyncPoller beginBuildModel(BinaryData buildReques * Creates a new document model from document types of existing document models. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -349,7 +356,8 @@ public SyncPoller beginBuildModel(BinaryData buildReques
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param composeRequest Compose request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -371,7 +379,8 @@ public SyncPoller beginComposeModel(BinaryData composeRe * description. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -379,11 +388,13 @@ public SyncPoller beginComposeModel(BinaryData composeRe
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -392,7 +403,8 @@ public SyncPoller beginComposeModel(BinaryData composeRe
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param authorizeCopyRequest Authorize copy request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -414,7 +426,8 @@ public Response authorizeModelCopyWithResponse(BinaryData authorizeC * Copies document model to the target resource, region, and modelId. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -423,7 +436,8 @@ public Response authorizeModelCopyWithResponse(BinaryData authorizeC
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param copyToRequest Copy to request parameters. @@ -445,7 +459,8 @@ public SyncPoller beginCopyModelTo(String modelId, Binar * List all document models. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -455,7 +470,8 @@ public SyncPoller beginCopyModelTo(String modelId, Binar
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -474,7 +490,8 @@ public PagedIterable listModels(RequestOptions requestOptions) { * Gets detailed document model information. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -504,7 +521,8 @@ public PagedIterable listModels(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClientBuilder.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClientBuilder.java index c38b9340b8..e6a556124f 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClientBuilder.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/DocumentModelsClientBuilder.java @@ -20,8 +20,8 @@ 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.HttpLoggingPolicy; 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.KeyCredentialPolicy; diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousAsyncClient.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousAsyncClient.java index 358ebf828f..0e3a339a53 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousAsyncClient.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousAsyncClient.java @@ -41,7 +41,8 @@ public final class MiscellaneousAsyncClient { * Lists all operations. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -55,7 +56,8 @@ public final class MiscellaneousAsyncClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -74,7 +76,8 @@ public PagedFlux listOperations(RequestOptions requestOptions) { * Gets operation info. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     operationId: String (Required)
@@ -101,7 +104,8 @@ public PagedFlux listOperations(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param operationId Unique operation ID. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -121,14 +125,16 @@ public Mono> getOperationWithResponse(String operationId, R * Return information about the current resource. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     customDocumentModels (Required): {
      *         count: int (Required)
      *         limit: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClient.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClient.java index 4cd5449341..5d697fa670 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClient.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClient.java @@ -40,7 +40,8 @@ public final class MiscellaneousClient { * Lists all operations. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -54,7 +55,8 @@ public final class MiscellaneousClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -73,7 +75,8 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * Gets operation info. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     operationId: String (Required)
@@ -100,7 +103,8 @@ public PagedIterable listOperations(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param operationId Unique operation ID. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -120,14 +124,16 @@ public Response getOperationWithResponse(String operationId, Request * Return information about the current resource. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     customDocumentModels (Required): {
      *         count: int (Required)
      *         limit: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClientBuilder.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClientBuilder.java index 5912ce96f3..dd224d8e9d 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClientBuilder.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/MiscellaneousClientBuilder.java @@ -20,8 +20,8 @@ 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.HttpLoggingPolicy; 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.KeyCredentialPolicy; diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/DocumentModelsImpl.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/DocumentModelsImpl.java index d3d81ec5ba..5e964bf6ab 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/DocumentModelsImpl.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/DocumentModelsImpl.java @@ -308,9 +308,11 @@ Response listModelsNextSync(@PathParam(value = "nextLink", encoded = * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param contentType Upload file type. Allowed values: "application/octet-stream", "application/pdf", "image/bmp", @@ -346,9 +348,11 @@ private Mono> analyzeDocumentWithResponseAsync(String modelId, St * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param contentType Upload file type. Allowed values: "application/octet-stream", "application/pdf", "image/bmp", @@ -384,9 +388,11 @@ private Response analyzeDocumentWithResponse(String modelId, String conten * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param contentType Upload file type. Allowed values: "application/octet-stream", "application/pdf", "image/bmp", @@ -428,9 +434,11 @@ public PollerFlux beginAnalyzeDocumentAsync(String model * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param contentType Upload file type. Allowed values: "application/octet-stream", "application/pdf", "image/bmp", @@ -460,7 +468,8 @@ public SyncPoller beginAnalyzeDocument(String modelId, S * Gets the result of document analysis. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     status: String(notStarted/running/failed/succeeded) (Required)
      *     createdDateTime: OffsetDateTime (Required)
@@ -663,7 +672,8 @@ public SyncPoller beginAnalyzeDocument(String modelId, S
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param resultId Analyze operation result ID. @@ -686,7 +696,8 @@ public Mono> getAnalyzeResultWithResponseAsync(String model * Gets the result of document analysis. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     status: String(notStarted/running/failed/succeeded) (Required)
      *     createdDateTime: OffsetDateTime (Required)
@@ -889,7 +900,8 @@ public Mono> getAnalyzeResultWithResponseAsync(String model
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param resultId Analyze operation result ID. @@ -912,7 +924,8 @@ public Response getAnalyzeResultWithResponse(String modelId, String * Builds a custom document analysis model. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -925,7 +938,8 @@ public Response getAnalyzeResultWithResponse(String modelId, String
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param buildRequest Building request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -946,7 +960,8 @@ private Mono> buildModelWithResponseAsync(BinaryData buildRequest * Builds a custom document analysis model. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -959,7 +974,8 @@ private Mono> buildModelWithResponseAsync(BinaryData buildRequest
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param buildRequest Building request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -980,7 +996,8 @@ private Response buildModelWithResponse(BinaryData buildRequest, RequestOp * Builds a custom document analysis model. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -993,7 +1010,8 @@ private Response buildModelWithResponse(BinaryData buildRequest, RequestOp
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param buildRequest Building request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1021,7 +1039,8 @@ public PollerFlux beginBuildModelAsync(BinaryData buildR * Builds a custom document analysis model. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1034,7 +1053,8 @@ public PollerFlux beginBuildModelAsync(BinaryData buildR
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param buildRequest Building request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1061,7 +1081,8 @@ public SyncPoller beginBuildModel(BinaryData buildReques * Creates a new document model from document types of existing document models. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1074,7 +1095,8 @@ public SyncPoller beginBuildModel(BinaryData buildReques
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param composeRequest Compose request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1096,7 +1118,8 @@ private Mono> composeModelWithResponseAsync(BinaryData composeReq * Creates a new document model from document types of existing document models. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1109,7 +1132,8 @@ private Mono> composeModelWithResponseAsync(BinaryData composeReq
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param composeRequest Compose request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1130,7 +1154,8 @@ private Response composeModelWithResponse(BinaryData composeRequest, Reque * Creates a new document model from document types of existing document models. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1143,7 +1168,8 @@ private Response composeModelWithResponse(BinaryData composeRequest, Reque
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param composeRequest Compose request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1171,7 +1197,8 @@ public PollerFlux beginComposeModelAsync(BinaryData comp * Creates a new document model from document types of existing document models. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1184,7 +1211,8 @@ public PollerFlux beginComposeModelAsync(BinaryData comp
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param composeRequest Compose request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1213,7 +1241,8 @@ public SyncPoller beginComposeModel(BinaryData composeRe * description. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1221,11 +1250,13 @@ public SyncPoller beginComposeModel(BinaryData composeRe
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -1234,7 +1265,8 @@ public SyncPoller beginComposeModel(BinaryData composeRe
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param authorizeCopyRequest Authorize copy request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1258,7 +1290,8 @@ public Mono> authorizeModelCopyWithResponseAsync(BinaryData * description. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1266,11 +1299,13 @@ public Mono> authorizeModelCopyWithResponseAsync(BinaryData
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -1279,7 +1314,8 @@ public Mono> authorizeModelCopyWithResponseAsync(BinaryData
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param authorizeCopyRequest Authorize copy request parameters. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1302,7 +1338,8 @@ public Response authorizeModelCopyWithResponse(BinaryData authorizeC * Copies document model to the target resource, region, and modelId. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -1311,7 +1348,8 @@ public Response authorizeModelCopyWithResponse(BinaryData authorizeC
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param copyToRequest Copy to request parameters. @@ -1334,7 +1372,8 @@ private Mono> copyModelToWithResponseAsync(String modelId, Binary * Copies document model to the target resource, region, and modelId. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -1343,7 +1382,8 @@ private Mono> copyModelToWithResponseAsync(String modelId, Binary
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param copyToRequest Copy to request parameters. @@ -1366,7 +1406,8 @@ private Response copyModelToWithResponse(String modelId, BinaryData copyTo * Copies document model to the target resource, region, and modelId. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -1375,7 +1416,8 @@ private Response copyModelToWithResponse(String modelId, BinaryData copyTo
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param copyToRequest Copy to request parameters. @@ -1404,7 +1446,8 @@ public PollerFlux beginCopyModelToAsync(String modelId, * Copies document model to the target resource, region, and modelId. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     targetResourceId: String (Required)
      *     targetResourceRegion: String (Required)
@@ -1413,7 +1456,8 @@ public PollerFlux beginCopyModelToAsync(String modelId,
      *     accessToken: String (Required)
      *     expirationDateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param copyToRequest Copy to request parameters. @@ -1442,7 +1486,8 @@ public SyncPoller beginCopyModelTo(String modelId, Binar * List all document models. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1452,7 +1497,8 @@ public SyncPoller beginCopyModelTo(String modelId, Binar
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1476,7 +1522,8 @@ private Mono> listModelsSinglePageAsync(RequestOptions * List all document models. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1486,7 +1533,8 @@ private Mono> listModelsSinglePageAsync(RequestOptions
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1508,7 +1556,8 @@ public PagedFlux listModelsAsync(RequestOptions requestOptions) { * List all document models. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1518,7 +1567,8 @@ public PagedFlux listModelsAsync(RequestOptions requestOptions) {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1540,7 +1590,8 @@ private PagedResponse listModelsSinglePage(RequestOptions requestOpt * List all document models. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1550,7 +1601,8 @@ private PagedResponse listModelsSinglePage(RequestOptions requestOpt
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1572,7 +1624,8 @@ public PagedIterable listModels(RequestOptions requestOptions) { * Gets detailed document model information. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1602,7 +1655,8 @@ public PagedIterable listModels(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1623,7 +1677,8 @@ public Mono> getModelWithResponseAsync(String modelId, Requ * Gets detailed document model information. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1653,7 +1708,8 @@ public Mono> getModelWithResponseAsync(String modelId, Requ
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param modelId Unique document model name. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1710,7 +1766,8 @@ public Response deleteModelWithResponse(String modelId, RequestOptions req * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1720,7 +1777,8 @@ public Response deleteModelWithResponse(String modelId, RequestOptions req
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1746,7 +1804,8 @@ private Mono> listModelsNextSinglePageAsync(String nex * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     modelId: String (Required)
      *     description: String (Optional)
@@ -1756,7 +1815,8 @@ private Mono> listModelsNextSinglePageAsync(String nex
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/MiscellaneousImpl.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/MiscellaneousImpl.java index c012a8990b..f702fc2951 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/MiscellaneousImpl.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/dpg/implementation/MiscellaneousImpl.java @@ -161,7 +161,8 @@ Response listOperationsNextSync(@PathParam(value = "nextLink", encod * Lists all operations. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -175,7 +176,8 @@ Response listOperationsNextSync(@PathParam(value = "nextLink", encod
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -199,7 +201,8 @@ private Mono> listOperationsSinglePageAsync(RequestOpt * Lists all operations. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -213,7 +216,8 @@ private Mono> listOperationsSinglePageAsync(RequestOpt
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -235,7 +239,8 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions) * Lists all operations. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -249,7 +254,8 @@ public PagedFlux listOperationsAsync(RequestOptions requestOptions)
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -271,7 +277,8 @@ private PagedResponse listOperationsSinglePage(RequestOptions reques * Lists all operations. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -285,7 +292,8 @@ private PagedResponse listOperationsSinglePage(RequestOptions reques
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -307,7 +315,8 @@ public PagedIterable listOperations(RequestOptions requestOptions) { * Gets operation info. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     operationId: String (Required)
@@ -334,7 +343,8 @@ public PagedIterable listOperations(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param operationId Unique operation ID. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -355,7 +365,8 @@ public Mono> getOperationWithResponseAsync(String operation * Gets operation info. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     operationId: String (Required)
@@ -382,7 +393,8 @@ public Mono> getOperationWithResponseAsync(String operation
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param operationId Unique operation ID. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -403,14 +415,16 @@ public Response getOperationWithResponse(String operationId, Request * Return information about the current resource. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     customDocumentModels (Required): {
      *         count: int (Required)
      *         limit: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -431,14 +445,16 @@ public Mono> getResourceInfoWithResponseAsync(RequestOption * Return information about the current resource. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     customDocumentModels (Required): {
      *         count: int (Required)
      *         limit: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -458,7 +474,8 @@ public Response getResourceInfoWithResponse(RequestOptions requestOp * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -472,7 +489,8 @@ public Response getResourceInfoWithResponse(RequestOptions requestOp
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -497,7 +515,8 @@ private Mono> listOperationsNextSinglePageAsync(String * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     operationId: String (Required)
      *     status: String(notStarted/running/failed/succeeded/canceled) (Required)
@@ -511,7 +530,8 @@ private Mono> listOperationsNextSinglePageAsync(String
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/DocumentModelsImpl.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/DocumentModelsImpl.java index c03535e1ab..4d0c61ee4f 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/DocumentModelsImpl.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/DocumentModelsImpl.java @@ -12,11 +12,11 @@ import com.azure.ai.formrecognizer.documentanalysis.implementation.models.ContentType; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.CopyAuthorization; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelDetails; +import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelSummary; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelsAnalyzeDocumentHeaders; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelsBuildModelHeaders; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelsComposeModelHeaders; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelsCopyModelToHeaders; -import com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentModelSummary; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.ErrorResponseException; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.GetDocumentModelsResponse; import com.azure.ai.formrecognizer.documentanalysis.implementation.models.StringIndexType; diff --git a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/FormRecognizerClientImplBuilder.java b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/FormRecognizerClientImplBuilder.java index 7639e289ba..5f6dfa37ca 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/FormRecognizerClientImplBuilder.java +++ b/azure-dataplane-tests/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/FormRecognizerClientImplBuilder.java @@ -20,8 +20,8 @@ import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.AddHeadersPolicy; import com.azure.core.http.policy.AzureKeyCredentialPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; 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; diff --git a/azure-dataplane-tests/src/main/java/com/azure/data/schemaregistry/implementation/SchemasImpl.java b/azure-dataplane-tests/src/main/java/com/azure/data/schemaregistry/implementation/SchemasImpl.java index fd4d623e9d..8a01ab1fec 100644 --- a/azure-dataplane-tests/src/main/java/com/azure/data/schemaregistry/implementation/SchemasImpl.java +++ b/azure-dataplane-tests/src/main/java/com/azure/data/schemaregistry/implementation/SchemasImpl.java @@ -31,11 +31,11 @@ import com.azure.core.util.FluxUtil; import com.azure.data.schemaregistry.implementation.models.ErrorException; import com.azure.data.schemaregistry.implementation.models.SchemaFormat; +import com.azure.data.schemaregistry.implementation.models.SchemaVersions; import com.azure.data.schemaregistry.implementation.models.SchemasGetByIdHeaders; import com.azure.data.schemaregistry.implementation.models.SchemasGetSchemaVersionHeaders; import com.azure.data.schemaregistry.implementation.models.SchemasQueryIdByContentHeaders; import com.azure.data.schemaregistry.implementation.models.SchemasRegisterHeaders; -import com.azure.data.schemaregistry.implementation.models.SchemaVersions; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/azure-tests/src/main/java/fixtures/azureparametergrouping/AutoRestParameterGroupingTestServiceBuilder.java b/azure-tests/src/main/java/fixtures/azureparametergrouping/AutoRestParameterGroupingTestServiceBuilder.java index c24b549281..99951562b3 100644 --- a/azure-tests/src/main/java/fixtures/azureparametergrouping/AutoRestParameterGroupingTestServiceBuilder.java +++ b/azure-tests/src/main/java/fixtures/azureparametergrouping/AutoRestParameterGroupingTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/azure-tests/src/main/java/fixtures/azurereport/AutoRestReportServiceForAzureBuilder.java b/azure-tests/src/main/java/fixtures/azurereport/AutoRestReportServiceForAzureBuilder.java index 85faf688fc..bd7dee8616 100644 --- a/azure-tests/src/main/java/fixtures/azurereport/AutoRestReportServiceForAzureBuilder.java +++ b/azure-tests/src/main/java/fixtures/azurereport/AutoRestReportServiceForAzureBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/azure-tests/src/main/java/fixtures/azurespecials/AutoRestAzureSpecialParametersTestClientBuilder.java b/azure-tests/src/main/java/fixtures/azurespecials/AutoRestAzureSpecialParametersTestClientBuilder.java index af25074d54..c04d4afab0 100644 --- a/azure-tests/src/main/java/fixtures/azurespecials/AutoRestAzureSpecialParametersTestClientBuilder.java +++ b/azure-tests/src/main/java/fixtures/azurespecials/AutoRestAzureSpecialParametersTestClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/azure-tests/src/main/java/fixtures/azurespecials/Headers.java b/azure-tests/src/main/java/fixtures/azurespecials/Headers.java index 59079048c4..b182d9521f 100644 --- a/azure-tests/src/main/java/fixtures/azurespecials/Headers.java +++ b/azure-tests/src/main/java/fixtures/azurespecials/Headers.java @@ -21,8 +21,8 @@ import com.azure.core.util.FluxUtil; import fixtures.azurespecials.models.ErrorException; import fixtures.azurespecials.models.HeaderCustomNamedRequestIdParamGroupingParameters; -import fixtures.azurespecials.models.HeadersCustomNamedRequestIdHeaders; import fixtures.azurespecials.models.HeadersCustomNamedRequestIdHeadHeaders; +import fixtures.azurespecials.models.HeadersCustomNamedRequestIdHeaders; import fixtures.azurespecials.models.HeadersCustomNamedRequestIdParamGroupingHeaders; import reactor.core.publisher.Mono; diff --git a/azure-tests/src/main/java/fixtures/custombaseuri/paging/AutoRestParameterizedHostTestPagingClientBuilder.java b/azure-tests/src/main/java/fixtures/custombaseuri/paging/AutoRestParameterizedHostTestPagingClientBuilder.java index 70afee745e..2f5e2b76e1 100644 --- a/azure-tests/src/main/java/fixtures/custombaseuri/paging/AutoRestParameterizedHostTestPagingClientBuilder.java +++ b/azure-tests/src/main/java/fixtures/custombaseuri/paging/AutoRestParameterizedHostTestPagingClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/azure-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceBuilder.java b/azure-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceBuilder.java index 6c3c185c47..af260ddb1b 100644 --- a/azure-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceBuilder.java +++ b/azure-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/azure-tests/src/main/java/fixtures/subscriptionidapiversion/MicrosoftAzureTestUrlBuilder.java b/azure-tests/src/main/java/fixtures/subscriptionidapiversion/MicrosoftAzureTestUrlBuilder.java index a3b63d4460..9f45c6bbd9 100644 --- a/azure-tests/src/main/java/fixtures/subscriptionidapiversion/MicrosoftAzureTestUrlBuilder.java +++ b/azure-tests/src/main/java/fixtures/subscriptionidapiversion/MicrosoftAzureTestUrlBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/core b/core index e7704d4643..f4a8257154 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e7704d464324e7f7f238eb5a625a4c243dc88983 +Subproject commit f4a8257154ab26279a20dad3f8fbae5e496f8105 diff --git a/core.diff b/core.diff index b360254ba4..4edeaafaec 100644 --- a/core.diff +++ b/core.diff @@ -1,8 +1,8 @@ diff --git a/packages/http-client-java/emitter/src/code-model-builder.ts b/packages/http-client-java/emitter/src/code-model-builder.ts -index 263da6dd..121a62f2 100644 +index 5375778e0..917a4a957 100644 --- a/packages/http-client-java/emitter/src/code-model-builder.ts +++ b/packages/http-client-java/emitter/src/code-model-builder.ts -@@ -240,7 +240,7 @@ export class CodeModelBuilder { +@@ -241,7 +241,7 @@ export class CodeModelBuilder { } public async build(): Promise { @@ -12,7 +12,7 @@ index 263da6dd..121a62f2 100644 }); // include all versions and do the filter by ourselves diff --git a/packages/http-client-java/emitter/src/emitter.ts b/packages/http-client-java/emitter/src/emitter.ts -index b3527bd6..1130efff 100644 +index 317e746d2..848b46275 100644 --- a/packages/http-client-java/emitter/src/emitter.ts +++ b/packages/http-client-java/emitter/src/emitter.ts @@ -98,7 +98,7 @@ const EmitterOptionsSchema: JSONSchemaType = { @@ -25,10 +25,10 @@ index b3527bd6..1130efff 100644 emitter: { options: EmitterOptionsSchema, diff --git a/packages/http-client-java/generator/http-client-generator-core/pom.xml b/packages/http-client-java/generator/http-client-generator-core/pom.xml -index 33442326..e57b77bb 100644 +index afa83e5c4..db70c748e 100644 --- a/packages/http-client-java/generator/http-client-generator-core/pom.xml +++ b/packages/http-client-java/generator/http-client-generator-core/pom.xml -@@ -19,6 +19,11 @@ +@@ -21,6 +21,11 @@ @@ -41,22 +41,23 @@ index 33442326..e57b77bb 100644 com.azure azure-core diff --git a/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/postprocessor/Postprocessor.java b/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/postprocessor/Postprocessor.java -index 0ff22ae8..33e7b162 100644 +index d44ce8ec4..7953870bc 100644 --- a/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/postprocessor/Postprocessor.java +++ b/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/postprocessor/Postprocessor.java -@@ -3,8 +3,8 @@ +@@ -3,9 +3,9 @@ package com.microsoft.typespec.http.client.generator.core.postprocessor; --import com.microsoft.typespec.http.client.generator.core.customization.Customization; --import com.microsoft.typespec.http.client.generator.core.customization.implementation.Utils; +import com.azure.autorest.customization.Customization; +import com.azure.autorest.customization.implementation.Utils; + import com.azure.json.JsonReader; +-import com.microsoft.typespec.http.client.generator.core.customization.Customization; +-import com.microsoft.typespec.http.client.generator.core.customization.implementation.Utils; + import com.microsoft.typespec.http.client.generator.core.extension.base.util.FileUtils; import com.microsoft.typespec.http.client.generator.core.extension.plugin.JavaSettings; import com.microsoft.typespec.http.client.generator.core.extension.plugin.NewPlugin; - import com.microsoft.typespec.http.client.generator.core.extension.plugin.PluginLogger; diff --git a/packages/http-client-java/generator/http-client-generator/src/main/resources/readme/pom.xml b/packages/http-client-java/generator/http-client-generator/src/main/resources/readme/pom.xml -index b009d250..6ef31a2d 100644 +index c99896650..358938595 100644 --- a/packages/http-client-java/generator/http-client-generator/src/main/resources/readme/pom.xml +++ b/packages/http-client-java/generator/http-client-generator/src/main/resources/readme/pom.xml @@ -16,9 +16,9 @@ diff --git a/customization-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java b/customization-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java index 5318084f9f..7dd23c27c7 100644 --- a/customization-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java +++ b/customization-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java b/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java index 587337d7b5..4f252a1eff 100644 --- a/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java +++ b/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java @@ -12,9 +12,9 @@ import fixtures.bodycomplex.implementation.PrimitivesImpl; import fixtures.bodycomplex.implementation.models.BooleanWrapper; import fixtures.bodycomplex.implementation.models.ByteWrapper; -import fixtures.bodycomplex.implementation.models.Datetimerfc1123Wrapper; -import fixtures.bodycomplex.implementation.models.DatetimeWrapper; import fixtures.bodycomplex.implementation.models.DateWrapper; +import fixtures.bodycomplex.implementation.models.DatetimeWrapper; +import fixtures.bodycomplex.implementation.models.Datetimerfc1123Wrapper; import fixtures.bodycomplex.implementation.models.DoubleWrapper; import fixtures.bodycomplex.implementation.models.DurationWrapper; import fixtures.bodycomplex.implementation.models.ErrorException; diff --git a/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java b/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java index 3ade1a3912..c5cc7f5889 100644 --- a/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java +++ b/customization-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java @@ -13,9 +13,9 @@ import fixtures.bodycomplex.implementation.PrimitivesImpl; import fixtures.bodycomplex.implementation.models.BooleanWrapper; import fixtures.bodycomplex.implementation.models.ByteWrapper; -import fixtures.bodycomplex.implementation.models.Datetimerfc1123Wrapper; -import fixtures.bodycomplex.implementation.models.DatetimeWrapper; import fixtures.bodycomplex.implementation.models.DateWrapper; +import fixtures.bodycomplex.implementation.models.DatetimeWrapper; +import fixtures.bodycomplex.implementation.models.Datetimerfc1123Wrapper; import fixtures.bodycomplex.implementation.models.DoubleWrapper; import fixtures.bodycomplex.implementation.models.DurationWrapper; import fixtures.bodycomplex.implementation.models.ErrorException; diff --git a/customization-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java b/customization-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java index b649590ac9..0026bc7165 100644 --- a/customization-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java +++ b/customization-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java @@ -21,9 +21,9 @@ import com.azure.core.util.FluxUtil; import fixtures.bodycomplex.implementation.models.BooleanWrapper; import fixtures.bodycomplex.implementation.models.ByteWrapper; -import fixtures.bodycomplex.implementation.models.Datetimerfc1123Wrapper; -import fixtures.bodycomplex.implementation.models.DatetimeWrapper; import fixtures.bodycomplex.implementation.models.DateWrapper; +import fixtures.bodycomplex.implementation.models.DatetimeWrapper; +import fixtures.bodycomplex.implementation.models.Datetimerfc1123Wrapper; import fixtures.bodycomplex.implementation.models.DoubleWrapper; import fixtures.bodycomplex.implementation.models.DurationWrapper; import fixtures.bodycomplex.implementation.models.ErrorException; diff --git a/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/DotSalmon.java b/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/DotSalmon.java index 2da12ebf4d..0b439ddbc4 100644 --- a/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/DotSalmon.java +++ b/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/DotSalmon.java @@ -4,13 +4,12 @@ package fixtures.bodycomplex.implementation.models; -import java.io.IOException; - import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; /** * The DotSalmon model. diff --git a/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/ReadonlyObj.java b/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/ReadonlyObj.java index 1e120ba270..75dedbac17 100644 --- a/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/ReadonlyObj.java +++ b/customization-tests/src/main/java/fixtures/bodycomplex/implementation/models/ReadonlyObj.java @@ -4,14 +4,13 @@ package fixtures.bodycomplex.implementation.models; -import java.io.IOException; -import java.util.UUID; - import com.azure.core.annotation.Fluent; 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.UUID; /** * The ReadonlyObj model. diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/AutoRestSwaggerBatServiceClientBuilder.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/AutoRestSwaggerBatServiceClientBuilder.java index dbf0212235..d5ccc5b0c6 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/AutoRestSwaggerBatServiceClientBuilder.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/AutoRestSwaggerBatServiceClientBuilder.java @@ -15,8 +15,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumAsyncClient.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumAsyncClient.java index c52d76ac45..8cf88e3662 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumAsyncClient.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumAsyncClient.java @@ -40,9 +40,11 @@ public final class EnumAsyncClient { * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> getNotExpandableWithResponse(RequestOptions re * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBodyUpdated string body updated. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -85,9 +89,11 @@ public Mono> putNotExpandableWithResponse(BinaryData stringBodyUp * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -107,9 +113,11 @@ public Mono> getReferencedWithResponse(RequestOptions reque * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumClient.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumClient.java index 7b552bd5aa..e1440654b6 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumClient.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/EnumClient.java @@ -39,9 +39,11 @@ public final class EnumClient { * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response getNotExpandableWithResponse(RequestOptions requestO * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBodyUpdated string body updated. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -83,9 +87,11 @@ public Response putNotExpandableWithResponse(BinaryData stringBodyUpdated, * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -105,9 +111,11 @@ public Response getReferencedWithResponse(RequestOptions requestOpti * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java index 110a0ceeb6..840a04746a 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java @@ -40,9 +40,11 @@ public final class StringOperationAsyncClient { * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,9 +71,11 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,9 +94,11 @@ public Mono> putNullWithResponse(RequestOptions requestOptions) { * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -111,9 +117,11 @@ public Mono> getEmptyWithResponse(RequestOptions requestOpt * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -132,9 +140,11 @@ public Mono> putEmptyWithResponse(RequestOptions requestOptions) * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -154,9 +164,11 @@ public Mono> getMbcsWithResponse(RequestOptions requestOpti * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -176,9 +188,11 @@ public Mono> putMbcsWithResponse(RequestOptions requestOptions) { * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -200,9 +214,11 @@ public Mono> getWhitespaceWithResponse(RequestOptions reque * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -221,9 +237,11 @@ public Mono> putWhitespaceWithResponse(RequestOptions requestOpti * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -243,9 +261,11 @@ public Mono> getNotProvidedWithResponse(RequestOptions requ * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -264,9 +284,11 @@ public Mono> getBase64EncodedWithResponse(RequestOptions re * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -285,9 +307,11 @@ public Mono> getBase64UrlEncodedWithResponse(RequestOptions * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -307,9 +331,11 @@ public Mono> putBase64UrlEncodedWithResponse(BinaryData stringBod * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -329,9 +355,11 @@ public Mono> getNullBase64UrlEncodedWithResponse(RequestOpt * This is an added method. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationClient.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationClient.java index 5b738893d6..e8eaebe600 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationClient.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/StringOperationClient.java @@ -14,8 +14,8 @@ import com.azure.core.http.rest.RequestOptions; import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; -import fixtures.bodystring.implementation.StringOperationsImpl; import fixtures.bodystring.implementation.EnumsImpl; +import fixtures.bodystring.implementation.StringOperationsImpl; /** * Initializes a new instance of the synchronous AutoRestSwaggerBatServiceClient type. @@ -53,9 +53,11 @@ public final class StringOperationClient { * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,9 +88,11 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * *

Request Body Schema * - *

{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @param test the parameter. @@ -108,9 +112,11 @@ public Response putNullWithResponse(RequestOptions requestOptions, String * *

Response Body Schema * - *

{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,9 +134,11 @@ Response getEmptyWithResponse(RequestOptions requestOptions) { * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -149,9 +157,11 @@ public Response putEmptyWithResponse(RequestOptions requestOptions) { * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -171,9 +181,11 @@ public Response getMbcsWithResponse(RequestOptions requestOptions) { * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -193,9 +205,11 @@ public Response putMbcsWithResponse(RequestOptions requestOptions) { * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,9 +231,11 @@ public Response getWhitespaceWithResponse(RequestOptions requestOpti * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -238,9 +254,11 @@ public Response putWhitespaceWithResponse(RequestOptions requestOptions) { * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -259,9 +277,11 @@ public Response getNotProvidedWithResponse(RequestOptions requestOpt * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -280,9 +300,11 @@ public Response getBase64EncodedWithResponse(RequestOptions requestO * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -301,9 +323,11 @@ public Response getBase64UrlEncodedWithResponse(RequestOptions reque * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -323,9 +347,11 @@ public Response putBase64UrlEncodedWithResponse(BinaryData stringBody, Req * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -353,9 +379,11 @@ public String manuallyAddedMethod() { * This is an added method. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java index db44993498..b8e12617dc 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java @@ -149,9 +149,11 @@ Response putReferencedSync(@HostParam("$host") String host, * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -172,9 +174,11 @@ public Mono> getNotExpandableWithResponseAsync(RequestOptio * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -194,9 +198,11 @@ public Response getNotExpandableWithResponse(RequestOptions requestO * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBodyUpdated string body updated. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -218,9 +224,11 @@ public Mono> putNotExpandableWithResponseAsync(BinaryData stringB * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBodyUpdated string body updated. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -241,9 +249,11 @@ public Response putNotExpandableWithResponse(BinaryData stringBodyUpdated, * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -264,9 +274,11 @@ public Mono> getReferencedWithResponseAsync(RequestOptions * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -286,9 +298,11 @@ public Response getReferencedWithResponse(RequestOptions requestOpti * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,9 +324,11 @@ public Mono> putReferencedWithResponseAsync(BinaryData enumString * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java b/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java index 697005f005..962675d874 100644 --- a/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java +++ b/partial-update-tests/generated/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java @@ -335,9 +335,11 @@ Response getNullBase64UrlEncodedSync(@HostParam("$host") String host * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -356,9 +358,11 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -385,9 +389,11 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -421,9 +427,11 @@ public Mono> putNullWithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -448,9 +456,11 @@ public Response putNullWithResponse(RequestOptions requestOptions) { * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -470,9 +480,11 @@ public Mono> getEmptyWithResponseAsync(RequestOptions reque * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -491,9 +503,11 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -514,9 +528,11 @@ public Mono> putEmptyWithResponseAsync(RequestOptions requestOpti * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -536,9 +552,11 @@ public Response putEmptyWithResponse(RequestOptions requestOptions) { * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -558,9 +576,11 @@ public Mono> getMbcsWithResponseAsync(RequestOptions reques * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -580,9 +600,11 @@ public Response getMbcsWithResponse(RequestOptions requestOptions) { * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -604,9 +626,11 @@ public Mono> putMbcsWithResponseAsync(RequestOptions requestOptio * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -628,9 +652,11 @@ public Response putMbcsWithResponse(RequestOptions requestOptions) { * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -653,9 +679,11 @@ public Mono> getWhitespaceWithResponseAsync(RequestOptions * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -677,9 +705,11 @@ public Response getWhitespaceWithResponse(RequestOptions requestOpti * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -702,9 +732,11 @@ public Mono> putWhitespaceWithResponseAsync(RequestOptions reques * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -725,9 +757,11 @@ public Response putWhitespaceWithResponse(RequestOptions requestOptions) { * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -748,9 +782,11 @@ public Mono> getNotProvidedWithResponseAsync(RequestOptions * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -769,9 +805,11 @@ public Response getNotProvidedWithResponse(RequestOptions requestOpt * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -791,9 +829,11 @@ public Mono> getBase64EncodedWithResponseAsync(RequestOptio * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -812,9 +852,11 @@ public Response getBase64EncodedWithResponse(RequestOptions requestO * This is an added method. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -834,9 +876,11 @@ public Mono> getStringAddedWithResponseAsync(RequestOptions * This is an added method. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -855,9 +899,11 @@ public Response getStringAddedWithResponse(RequestOptions requestOpt * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -877,9 +923,11 @@ public Mono> getBase64UrlEncodedWithResponseAsync(RequestOp * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -898,9 +946,11 @@ public Response getBase64UrlEncodedWithResponse(RequestOptions reque * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -922,9 +972,11 @@ public Mono> putBase64UrlEncodedWithResponseAsync(BinaryData stri * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -944,9 +996,11 @@ public Response putBase64UrlEncodedWithResponse(BinaryData stringBody, Req * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -967,9 +1021,11 @@ public Mono> getNullBase64UrlEncodedWithResponseAsync(Reque * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgAsyncClient.java b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgAsyncClient.java index af1c3f60c8..c5d8f49da8 100644 --- a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgAsyncClient.java +++ b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgAsyncClient.java @@ -41,9 +41,11 @@ public final class DpgAsyncClient { * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> headNoParamsWithResponse(RequestOptions reques * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -95,9 +99,11 @@ public Mono> getRequiredWithResponse(String parameter, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -118,17 +124,21 @@ public Mono> putRequiredOptionalWithResponse(String require * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -156,9 +166,11 @@ public Mono> postParametersWithResponse(BinaryData paramete * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClient.java b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClient.java index 02b774fed8..9bd77df8c0 100644 --- a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClient.java +++ b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClient.java @@ -40,9 +40,11 @@ public final class DpgClient { * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -93,9 +97,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -115,17 +121,21 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -153,9 +163,11 @@ public Response postParametersWithResponse(BinaryData parameter, Req * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClientBuilder.java b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClientBuilder.java index 6dbd7b7f27..d141b7bd05 100644 --- a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClientBuilder.java +++ b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/DpgClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java index 8505e3ddc6..caceef6d60 100644 --- a/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java +++ b/protocol-resilience-test/llcinitial/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java @@ -172,9 +172,11 @@ Response getOptionalSync(@HostParam("$host") String host, @HeaderPar * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -195,9 +197,11 @@ public Mono> headNoParamsWithResponseAsync(RequestOptions r * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,9 +221,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -243,9 +249,11 @@ public Mono> getRequiredWithResponseAsync(String parameter, * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -274,9 +282,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -306,9 +316,11 @@ public Mono> putRequiredOptionalWithResponseAsync(String re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -329,17 +341,21 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -361,17 +377,21 @@ public Mono> postParametersWithResponseAsync(BinaryData par * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -399,9 +419,11 @@ public Response postParametersWithResponse(BinaryData parameter, Req * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -430,9 +452,11 @@ public Mono> getOptionalWithResponseAsync(RequestOptions re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgAsyncClient.java b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgAsyncClient.java index 17bedaca95..85c3f18c9c 100644 --- a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgAsyncClient.java +++ b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgAsyncClient.java @@ -48,9 +48,11 @@ public final class DpgAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -77,9 +79,11 @@ public Mono> headNoParamsWithResponse(RequestOptions reques * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,9 +114,11 @@ public Mono> getRequiredWithResponse(String parameter, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -133,15 +139,19 @@ public Mono> putRequiredOptionalWithResponse(String require * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -190,9 +200,11 @@ public Mono> deleteParametersWithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,9 +225,11 @@ public Mono> getOptionalWithResponse(RequestOptions request * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClient.java b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClient.java index e26529f250..b31a349610 100644 --- a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClient.java +++ b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClient.java @@ -47,9 +47,11 @@ public final class DpgClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -76,9 +78,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,9 +112,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -130,15 +136,19 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -187,9 +197,11 @@ public Response deleteParametersWithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -210,9 +222,11 @@ public Response getOptionalWithResponse(RequestOptions requestOption * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClientBuilder.java b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClientBuilder.java index 6dbd7b7f27..d141b7bd05 100644 --- a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClientBuilder.java +++ b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/DpgClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java index b695594b16..06106f71b3 100644 --- a/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java +++ b/protocol-resilience-test/llcupdate1/src/main/java/fixtures/llcresi/implementation/ParamsImpl.java @@ -216,9 +216,11 @@ Response getNewOperationSync(@HostParam("$host") String host, @Heade * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -246,9 +248,11 @@ public Mono> headNoParamsWithResponseAsync(RequestOptions r * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -275,9 +279,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -308,9 +314,11 @@ public Mono> getRequiredWithResponseAsync(String parameter, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -340,9 +348,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -373,9 +383,11 @@ public Mono> putRequiredOptionalWithResponseAsync(String re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -396,15 +408,19 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -428,15 +444,19 @@ public Mono> postParametersWithResponseAsync(String content * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -502,9 +522,11 @@ public Response deleteParametersWithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -534,9 +556,11 @@ public Mono> getOptionalWithResponseAsync(RequestOptions re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -557,9 +581,11 @@ public Response getOptionalWithResponse(RequestOptions requestOption * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -580,9 +606,11 @@ public Mono> getNewOperationWithResponseAsync(RequestOption * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayAsyncClient.java index 217a35e206..ed4b0c8d0a 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayAsyncClient.java @@ -40,13 +40,15 @@ public final class ArrayAsyncClient { * Get complex types with array property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,13 +67,15 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Put complex types with array property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The quick brown fox * jumps over the lazy dog". @@ -92,13 +96,15 @@ public Mono> putValidWithResponse(BinaryData complexBody, Request * Get complex types with array property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -118,13 +124,15 @@ public Mono> getEmptyWithResponse(RequestOptions requestOpt * Put complex types with array property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty array. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -144,13 +152,15 @@ public Mono> putEmptyWithResponse(BinaryData complexBody, Request * Get complex types with array property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClient.java index 72eaf3816a..95fb71486e 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClient.java @@ -39,13 +39,15 @@ public final class ArrayClient { * Get complex types with array property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,13 +66,15 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types with array property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The quick brown fox * jumps over the lazy dog". @@ -91,13 +95,15 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get complex types with array property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -116,13 +122,15 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Put complex types with array property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty array. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -142,13 +150,15 @@ public Response putEmptyWithResponse(BinaryData complexBody, RequestOption * Get complex types with array property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClientBuilder.java index a6438b9218..a9b650e9ae 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/ArrayClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/BasicAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/BasicAsyncClient.java index 1ab1089ffc..fd2d24f1b2 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/BasicAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/BasicAsyncClient.java @@ -40,13 +40,15 @@ public final class BasicAsyncClient { * Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,13 +68,15 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Please put {id: 2, name: 'abc', color: 'Magenta'}. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put {id: 2, name: 'abc', color: 'Magenta'}. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -92,13 +96,15 @@ public Mono> putValidWithResponse(BinaryData complexBody, Request * Get a basic complex type that is invalid for the local strong type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -118,13 +124,15 @@ public Mono> getInvalidWithResponse(RequestOptions requestO * Get a basic complex type that is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -143,13 +151,15 @@ public Mono> getEmptyWithResponse(RequestOptions requestOpt * Get a basic complex type whose properties are null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -169,13 +179,15 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Get a basic complex type while the server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClient.java index 3395ec0a20..77c866510c 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClient.java @@ -39,13 +39,15 @@ public final class BasicClient { * Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,13 +66,15 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Please put {id: 2, name: 'abc', color: 'Magenta'}. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put {id: 2, name: 'abc', color: 'Magenta'}. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -90,13 +94,15 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get a basic complex type that is invalid for the local strong type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -115,13 +121,15 @@ public Response getInvalidWithResponse(RequestOptions requestOptions * Get a basic complex type that is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -140,13 +148,15 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Get a basic complex type whose properties are null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,13 +175,15 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Get a basic complex type while the server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClientBuilder.java index 7d572d8a14..6f3a5f627f 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/BasicClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryAsyncClient.java index 2196953d48..500821f4ab 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryAsyncClient.java @@ -40,13 +40,15 @@ public final class DictionaryAsyncClient { * Get complex types with dictionary property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,13 +68,15 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Put complex types with dictionary property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put a dictionary with 5 key-value pairs: "txt":"notepad", "bmp":"mspaint", * "xls":"excel", "exe":"", "":null. @@ -93,13 +97,15 @@ public Mono> putValidWithResponse(BinaryData complexBody, Request * Get complex types with dictionary property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -119,13 +125,15 @@ public Mono> getEmptyWithResponse(RequestOptions requestOpt * Put complex types with dictionary property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty dictionary. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -145,13 +153,15 @@ public Mono> putEmptyWithResponse(BinaryData complexBody, Request * Get complex types with dictionary property which is null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -171,13 +181,15 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Get complex types with dictionary property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClient.java index 5d1e757263..6db52a69c1 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClient.java @@ -39,13 +39,15 @@ public final class DictionaryClient { * Get complex types with dictionary property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,13 +66,15 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types with dictionary property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put a dictionary with 5 key-value pairs: "txt":"notepad", "bmp":"mspaint", * "xls":"excel", "exe":"", "":null. @@ -91,13 +95,15 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get complex types with dictionary property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -116,13 +122,15 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Put complex types with dictionary property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty dictionary. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -142,13 +150,15 @@ public Response putEmptyWithResponse(BinaryData complexBody, RequestOption * Get complex types with dictionary property which is null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,13 +177,15 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Get complex types with dictionary property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClientBuilder.java index bc4b1614ca..da05ef2d65 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/DictionaryClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexAsyncClient.java index 3b836674ed..1c48f62df3 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexAsyncClient.java @@ -40,7 +40,8 @@ public final class FlattencomplexAsyncClient { * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(Kind1) (Required)
      *     propB1: String (Optional)
@@ -48,7 +49,8 @@ public final class FlattencomplexAsyncClient {
      *         propBH1: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClient.java index 862ef58cb4..d4499fd0c1 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClient.java @@ -39,7 +39,8 @@ public final class FlattencomplexClient { * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(Kind1) (Required)
      *     propB1: String (Optional)
@@ -47,7 +48,8 @@ public final class FlattencomplexClient {
      *         propBH1: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClientBuilder.java index c9b71b1f5c..82a73a14c7 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/FlattencomplexClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceAsyncClient.java index fc442d418e..983a200a93 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceAsyncClient.java @@ -40,7 +40,8 @@ public final class InheritanceAsyncClient { * Get complex types that extend others. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -54,7 +55,8 @@ public final class InheritanceAsyncClient {
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -73,7 +75,8 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Put complex types that extend others. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -87,7 +90,8 @@ public Mono> getValidWithResponse(RequestOptions requestOpt
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put a siamese with id=2, name="Siameee", color=green, breed=persion, which hates 2 * dogs, the 1st one named "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClient.java index 8570af5313..cfa034e257 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClient.java @@ -39,7 +39,8 @@ public final class InheritanceClient { * Get complex types that extend others. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -53,7 +54,8 @@ public final class InheritanceClient {
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that extend others. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -86,7 +89,8 @@ public Response getValidWithResponse(RequestOptions requestOptions)
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put a siamese with id=2, name="Siameee", color=green, breed=persion, which hates 2 * dogs, the 1st one named "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClientBuilder.java index ddcc157953..4b58769cbe 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/InheritanceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveAsyncClient.java index f5df6673ee..89d7a20545 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveAsyncClient.java @@ -40,7 +40,8 @@ public final class PolymorphicrecursiveAsyncClient { * Get complex types that are polymorphic and have recursive references. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -49,7 +50,8 @@ public final class PolymorphicrecursiveAsyncClient {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Put complex types that are polymorphic and have recursive references. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -78,7 +81,8 @@ public Mono> getValidWithResponse(RequestOptions requestOpt
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClient.java index 69799a3cfd..1c38cd21ec 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClient.java @@ -39,7 +39,8 @@ public final class PolymorphicrecursiveClient { * Get complex types that are polymorphic and have recursive references. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -48,7 +49,8 @@ public final class PolymorphicrecursiveClient {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that are polymorphic and have recursive references. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -76,7 +79,8 @@ public Response getValidWithResponse(RequestOptions requestOptions)
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClientBuilder.java index f7e414e012..20688e4595 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphicrecursiveClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismAsyncClient.java index 7f27dd90ab..5f7301abd3 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismAsyncClient.java @@ -40,7 +40,8 @@ public final class PolymorphismAsyncClient { * Get complex types that are polymorphic. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -49,7 +50,8 @@ public final class PolymorphismAsyncClient {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Put complex types that are polymorphic. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -77,7 +80,8 @@ public Mono> getValidWithResponse(RequestOptions requestOpt
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { @@ -129,12 +133,14 @@ public Mono> putValidWithResponse(BinaryData complexBody, Request * Get complex types that are polymorphic, JSON key contains a dot. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fish.type: String (Required)
      *     species: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,7 +161,8 @@ public Mono> getDotSyntaxWithResponse(RequestOptions reques * discriminator specified. Deserialization must NOT fail and use the discriminator type specified on the wire. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -174,7 +181,8 @@ public Mono> getDotSyntaxWithResponse(RequestOptions reques
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -195,7 +203,8 @@ public Mono> getComposedWithDiscriminatorWithResponse(Reque * without discriminator specified on wire. Deserialization must NOT fail and use the explicit type of the property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -214,7 +223,8 @@ public Mono> getComposedWithDiscriminatorWithResponse(Reque
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -234,7 +244,8 @@ public Mono> getComposedWithoutDiscriminatorWithResponse(Re * Get complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -252,7 +263,8 @@ public Mono> getComposedWithoutDiscriminatorWithResponse(Re
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -272,7 +284,8 @@ public Mono> getComplicatedWithResponse(RequestOptions requ * Put complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -290,7 +303,8 @@ public Mono> getComplicatedWithResponse(RequestOptions requ
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,7 +324,8 @@ public Mono> putComplicatedWithResponse(BinaryData complexBody, R * Put complex types that are polymorphic, omitting the discriminator. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -328,11 +343,13 @@ public Mono> putComplicatedWithResponse(BinaryData complexBody, R
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -350,7 +367,8 @@ public Mono> putComplicatedWithResponse(BinaryData complexBody, R
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -372,7 +390,8 @@ public Mono> putMissingDiscriminatorWithResponse(BinaryData * allowed from the client. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -381,7 +400,8 @@ public Mono> putMissingDiscriminatorWithResponse(BinaryData
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please attempt put a sawshark that looks like this, the client should not allow this data to * be sent: diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClient.java index 119fc5cdca..f79f065688 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClient.java @@ -39,7 +39,8 @@ public final class PolymorphismClient { * Get complex types that are polymorphic. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -48,7 +49,8 @@ public final class PolymorphismClient {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that are polymorphic. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -76,7 +79,8 @@ public Response getValidWithResponse(RequestOptions requestOptions)
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { @@ -128,12 +132,14 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get complex types that are polymorphic, JSON key contains a dot. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fish.type: String (Required)
      *     species: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,7 +159,8 @@ public Response getDotSyntaxWithResponse(RequestOptions requestOptio * discriminator specified. Deserialization must NOT fail and use the discriminator type specified on the wire. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -172,7 +179,8 @@ public Response getDotSyntaxWithResponse(RequestOptions requestOptio
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -193,7 +201,8 @@ public Response getComposedWithDiscriminatorWithResponse(RequestOpti * without discriminator specified on wire. Deserialization must NOT fail and use the explicit type of the property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -212,7 +221,8 @@ public Response getComposedWithDiscriminatorWithResponse(RequestOpti
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -232,7 +242,8 @@ public Response getComposedWithoutDiscriminatorWithResponse(RequestO * Get complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -250,7 +261,8 @@ public Response getComposedWithoutDiscriminatorWithResponse(RequestO
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -270,7 +282,8 @@ public Response getComplicatedWithResponse(RequestOptions requestOpt * Put complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -288,7 +301,8 @@ public Response getComplicatedWithResponse(RequestOptions requestOpt
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -308,7 +322,8 @@ public Response putComplicatedWithResponse(BinaryData complexBody, Request * Put complex types that are polymorphic, omitting the discriminator. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -326,11 +341,13 @@ public Response putComplicatedWithResponse(BinaryData complexBody, Request
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -348,7 +365,8 @@ public Response putComplicatedWithResponse(BinaryData complexBody, Request
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -370,7 +388,8 @@ public Response putMissingDiscriminatorWithResponse(BinaryData compl * allowed from the client. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -379,7 +398,8 @@ public Response putMissingDiscriminatorWithResponse(BinaryData compl
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please attempt put a sawshark that looks like this, the client should not allow this data to * be sent: diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClientBuilder.java index 7d70632e2b..51877cf71b 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PolymorphismClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java index 9431c12123..d92e8fd755 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveAsyncClient.java @@ -40,12 +40,14 @@ public final class PrimitiveAsyncClient { * Get complex types with integer properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Mono> getIntWithResponse(RequestOptions requestOptio * Put complex types with integer properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put -1 and 2. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -90,12 +94,14 @@ public Mono> putIntWithResponse(BinaryData complexBody, RequestOp * Get complex types with long properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -114,12 +120,14 @@ public Mono> getLongWithResponse(RequestOptions requestOpti * Put complex types with long properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1099511627775 and -999511627788. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -139,12 +147,14 @@ public Mono> putLongWithResponse(BinaryData complexBody, RequestO * Get complex types with float properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -163,12 +173,14 @@ public Mono> getFloatWithResponse(RequestOptions requestOpt * Put complex types with float properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1.05 and -0.003. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,12 +200,14 @@ public Mono> putFloatWithResponse(BinaryData complexBody, Request * Get complex types with double properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,12 +227,14 @@ public Mono> getDoubleWithResponse(RequestOptions requestOp * Put complex types with double properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 3e-100 and -0.000000000000000000000000000000000000000000000000000000005. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -238,12 +254,14 @@ public Mono> putDoubleWithResponse(BinaryData complexBody, Reques * Get complex types with bool properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -262,12 +280,14 @@ public Mono> getBoolWithResponse(RequestOptions requestOpti * Put complex types with bool properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put true and false. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -287,13 +307,15 @@ public Mono> putBoolWithResponse(BinaryData complexBody, RequestO * Get complex types with string properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -313,13 +335,15 @@ public Mono> getStringWithResponse(RequestOptions requestOp * Put complex types with string properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'goodrequest', '', and null. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -339,12 +363,14 @@ public Mono> putStringWithResponse(BinaryData complexBody, Reques * Get complex types with date properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -363,12 +389,14 @@ public Mono> getDateWithResponse(RequestOptions requestOpti * Put complex types with date properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01' and '2016-02-29'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -388,12 +416,14 @@ public Mono> putDateWithResponse(BinaryData complexBody, RequestO * Get complex types with datetime properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -413,12 +443,14 @@ public Mono> getDateTimeWithResponse(RequestOptions request * Put complex types with datetime properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -438,12 +470,14 @@ public Mono> putDateTimeWithResponse(BinaryData complexBody, Requ * Get complex types with datetimeRfc1123 properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -463,12 +497,14 @@ public Mono> getDateTimeRfc1123WithResponse(RequestOptions * Put complex types with datetimeRfc1123 properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 GMT'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -488,11 +524,13 @@ public Mono> putDateTimeRfc1123WithResponse(BinaryData complexBod * Get complex types with duration properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -512,11 +550,13 @@ public Mono> getDurationWithResponse(RequestOptions request * Put complex types with duration properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'P123DT22H14M12.011S'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -536,11 +576,13 @@ public Mono> putDurationWithResponse(BinaryData complexBody, Requ * Get complex types with byte properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -559,11 +601,13 @@ public Mono> getByteWithResponse(RequestOptions requestOpti * Put complex types with byte properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6). * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java index 602fab35fd..15baea9a26 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClient.java @@ -39,12 +39,14 @@ public final class PrimitiveClient { * Get complex types with integer properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,12 +65,14 @@ public Response getIntWithResponse(RequestOptions requestOptions) { * Put complex types with integer properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put -1 and 2. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -88,12 +92,14 @@ public Response putIntWithResponse(BinaryData complexBody, RequestOptions * Get complex types with long properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -112,12 +118,14 @@ public Response getLongWithResponse(RequestOptions requestOptions) { * Put complex types with long properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1099511627775 and -999511627788. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -137,12 +145,14 @@ public Response putLongWithResponse(BinaryData complexBody, RequestOptions * Get complex types with float properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -161,12 +171,14 @@ public Response getFloatWithResponse(RequestOptions requestOptions) * Put complex types with float properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1.05 and -0.003. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -186,12 +198,14 @@ public Response putFloatWithResponse(BinaryData complexBody, RequestOption * Get complex types with double properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -210,12 +224,14 @@ public Response getDoubleWithResponse(RequestOptions requestOptions) * Put complex types with double properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 3e-100 and -0.000000000000000000000000000000000000000000000000000000005. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -235,12 +251,14 @@ public Response putDoubleWithResponse(BinaryData complexBody, RequestOptio * Get complex types with bool properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -259,12 +277,14 @@ public Response getBoolWithResponse(RequestOptions requestOptions) { * Put complex types with bool properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put true and false. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -284,13 +304,15 @@ public Response putBoolWithResponse(BinaryData complexBody, RequestOptions * Get complex types with string properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -309,13 +331,15 @@ public Response getStringWithResponse(RequestOptions requestOptions) * Put complex types with string properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'goodrequest', '', and null. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -335,12 +359,14 @@ public Response putStringWithResponse(BinaryData complexBody, RequestOptio * Get complex types with date properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -359,12 +385,14 @@ public Response getDateWithResponse(RequestOptions requestOptions) { * Put complex types with date properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01' and '2016-02-29'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -384,12 +412,14 @@ public Response putDateWithResponse(BinaryData complexBody, RequestOptions * Get complex types with datetime properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -408,12 +438,14 @@ public Response getDateTimeWithResponse(RequestOptions requestOption * Put complex types with datetime properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -433,12 +465,14 @@ public Response putDateTimeWithResponse(BinaryData complexBody, RequestOpt * Get complex types with datetimeRfc1123 properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -457,12 +491,14 @@ public Response getDateTimeRfc1123WithResponse(RequestOptions reques * Put complex types with datetimeRfc1123 properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 GMT'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -482,11 +518,13 @@ public Response putDateTimeRfc1123WithResponse(BinaryData complexBody, Req * Get complex types with duration properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -505,11 +543,13 @@ public Response getDurationWithResponse(RequestOptions requestOption * Put complex types with duration properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'P123DT22H14M12.011S'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -529,11 +569,13 @@ public Response putDurationWithResponse(BinaryData complexBody, RequestOpt * Get complex types with byte properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -552,11 +594,13 @@ public Response getByteWithResponse(RequestOptions requestOptions) { * Put complex types with byte properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6). * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClientBuilder.java index 0d0e700242..d5c0cdbe06 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/PrimitiveClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyAsyncClient.java index 6bb8dcf565..7eee3a935e 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyAsyncClient.java @@ -40,12 +40,14 @@ public final class ReadonlypropertyAsyncClient { * Get complex types that have readonly properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * Put complex types that have readonly properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClient.java b/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClient.java index 82aa27e79b..f2c2fd8d06 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClient.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClient.java @@ -39,12 +39,14 @@ public final class ReadonlypropertyClient { * Get complex types that have readonly properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,12 +65,14 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that have readonly properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClientBuilder.java index 480c1cadfb..49ddd965da 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/ReadonlypropertyClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ArraysImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ArraysImpl.java index 4045c16ae7..3f1a252cce 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ArraysImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ArraysImpl.java @@ -167,13 +167,15 @@ Response getNotProvidedSync(@HostParam("$host") String host, @Header * Get complex types with array property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -193,13 +195,15 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex types with array property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -218,13 +222,15 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types with array property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The quick brown fox * jumps over the lazy dog". @@ -246,13 +252,15 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Put complex types with array property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The quick brown fox * jumps over the lazy dog". @@ -273,13 +281,15 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get complex types with array property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -300,13 +310,15 @@ public Mono> getEmptyWithResponseAsync(RequestOptions reque * Get complex types with array property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -325,13 +337,15 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Put complex types with array property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty array. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -352,13 +366,15 @@ public Mono> putEmptyWithResponseAsync(BinaryData complexBody, Re * Put complex types with array property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty array. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -378,13 +394,15 @@ public Response putEmptyWithResponse(BinaryData complexBody, RequestOption * Get complex types with array property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -405,13 +423,15 @@ public Mono> getNotProvidedWithResponseAsync(RequestOptions * Get complex types with array property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     array (Optional): [
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/BasicsImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/BasicsImpl.java index 9e668c0a60..95689866f9 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/BasicsImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/BasicsImpl.java @@ -184,13 +184,15 @@ Response getNotProvidedSync(@HostParam("$host") String host, @Header * Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -211,13 +213,15 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,13 +240,15 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Please put {id: 2, name: 'abc', color: 'Magenta'}. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put {id: 2, name: 'abc', color: 'Magenta'}. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -263,13 +269,15 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Please put {id: 2, name: 'abc', color: 'Magenta'}. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put {id: 2, name: 'abc', color: 'Magenta'}. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -290,13 +298,15 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get a basic complex type that is invalid for the local strong type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -317,13 +327,15 @@ public Mono> getInvalidWithResponseAsync(RequestOptions req * Get a basic complex type that is invalid for the local strong type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -342,13 +354,15 @@ public Response getInvalidWithResponse(RequestOptions requestOptions * Get a basic complex type that is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -368,13 +382,15 @@ public Mono> getEmptyWithResponseAsync(RequestOptions reque * Get a basic complex type that is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -393,13 +409,15 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Get a basic complex type whose properties are null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -419,13 +437,15 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get a basic complex type whose properties are null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -444,13 +464,15 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Get a basic complex type while the server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -471,13 +493,15 @@ public Mono> getNotProvidedWithResponseAsync(RequestOptions * Get a basic complex type while the server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
      *     color: String(cyan/Magenta/YELLOW/blacK) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/DictionariesImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/DictionariesImpl.java index 7f64f22289..774ad4e86f 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/DictionariesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/DictionariesImpl.java @@ -186,13 +186,15 @@ Response getNotProvidedSync(@HostParam("$host") String host, @Header * Get complex types with dictionary property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,13 +215,15 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex types with dictionary property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -238,13 +242,15 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types with dictionary property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put a dictionary with 5 key-value pairs: "txt":"notepad", "bmp":"mspaint", * "xls":"excel", "exe":"", "":null. @@ -266,13 +272,15 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Put complex types with dictionary property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put a dictionary with 5 key-value pairs: "txt":"notepad", "bmp":"mspaint", * "xls":"excel", "exe":"", "":null. @@ -293,13 +301,15 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get complex types with dictionary property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -320,13 +330,15 @@ public Mono> getEmptyWithResponseAsync(RequestOptions reque * Get complex types with dictionary property which is empty. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -345,13 +357,15 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Put complex types with dictionary property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty dictionary. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -372,13 +386,15 @@ public Mono> putEmptyWithResponseAsync(BinaryData complexBody, Re * Put complex types with dictionary property which is empty. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param complexBody Please put an empty dictionary. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -398,13 +414,15 @@ public Response putEmptyWithResponse(BinaryData complexBody, RequestOption * Get complex types with dictionary property which is null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -424,13 +442,15 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get complex types with dictionary property which is null. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -449,13 +469,15 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Get complex types with dictionary property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -476,13 +498,15 @@ public Mono> getNotProvidedWithResponseAsync(RequestOptions * Get complex types with dictionary property while server doesn't provide a response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultProgram (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/FlattencomplexesImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/FlattencomplexesImpl.java index 1e2b4d1688..5ebb20f2ed 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/FlattencomplexesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/FlattencomplexesImpl.java @@ -90,7 +90,8 @@ Response getValidSync(@HostParam("$host") String host, @HeaderParam( * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(Kind1) (Required)
      *     propB1: String (Optional)
@@ -98,7 +99,8 @@ Response getValidSync(@HostParam("$host") String host, @HeaderParam(
      *         propBH1: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -118,7 +120,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(Kind1) (Required)
      *     propB1: String (Optional)
@@ -126,7 +129,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque
      *         propBH1: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/InheritancesImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/InheritancesImpl.java index 7a74cc414a..f77d6e1e4b 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/InheritancesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/InheritancesImpl.java @@ -112,7 +112,8 @@ Response putValidSync(@HostParam("$host") String host, * Get complex types that extend others. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -126,7 +127,8 @@ Response putValidSync(@HostParam("$host") String host,
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -146,7 +148,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex types that extend others. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -160,7 +163,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -179,7 +183,8 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that extend others. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -193,7 +198,8 @@ public Response getValidWithResponse(RequestOptions requestOptions)
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put a siamese with id=2, name="Siameee", color=green, breed=persion, which hates 2 * dogs, the 1st one named "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and @@ -216,7 +222,8 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Put complex types that extend others. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: Integer (Optional)
      *     name: String (Optional)
@@ -230,7 +237,8 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re
      *     ]
      *     breed: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put a siamese with id=2, name="Siameee", color=green, breed=persion, which hates 2 * dogs, the 1st one named "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphicrecursivesImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphicrecursivesImpl.java index fd8695c7d7..c5c9454c5f 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphicrecursivesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphicrecursivesImpl.java @@ -112,7 +112,8 @@ Response putValidSync(@HostParam("$host") String host, * Get complex types that are polymorphic and have recursive references. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -121,7 +122,8 @@ Response putValidSync(@HostParam("$host") String host,
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -142,7 +144,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex types that are polymorphic and have recursive references. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -151,7 +154,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -170,7 +174,8 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that are polymorphic and have recursive references. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -179,7 +184,8 @@ public Response getValidWithResponse(RequestOptions requestOptions)
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { @@ -252,7 +258,8 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Put complex types that are polymorphic and have recursive references. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -261,7 +268,8 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphismsImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphismsImpl.java index 4d8af929f7..22d4e8e211 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphismsImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PolymorphismsImpl.java @@ -244,7 +244,8 @@ Response putValidMissingRequiredSync(@HostParam("$host") String host, * Get complex types that are polymorphic. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -253,7 +254,8 @@ Response putValidMissingRequiredSync(@HostParam("$host") String host,
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -273,7 +275,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex types that are polymorphic. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -282,7 +285,8 @@ public Mono> getValidWithResponseAsync(RequestOptions reque
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -301,7 +305,8 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that are polymorphic. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -310,7 +315,8 @@ public Response getValidWithResponse(RequestOptions requestOptions)
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { @@ -363,7 +369,8 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Put complex types that are polymorphic. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -372,7 +379,8 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please put a salmon that looks like this: * { @@ -424,12 +432,14 @@ public Response putValidWithResponse(BinaryData complexBody, RequestOption * Get complex types that are polymorphic, JSON key contains a dot. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fish.type: String (Required)
      *     species: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -450,12 +460,14 @@ public Mono> getDotSyntaxWithResponseAsync(RequestOptions r * Get complex types that are polymorphic, JSON key contains a dot. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fish.type: String (Required)
      *     species: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -475,7 +487,8 @@ public Response getDotSyntaxWithResponse(RequestOptions requestOptio * discriminator specified. Deserialization must NOT fail and use the discriminator type specified on the wire. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -494,7 +507,8 @@ public Response getDotSyntaxWithResponse(RequestOptions requestOptio
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -516,7 +530,8 @@ public Mono> getComposedWithDiscriminatorWithResponseAsync( * discriminator specified. Deserialization must NOT fail and use the discriminator type specified on the wire. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -535,7 +550,8 @@ public Mono> getComposedWithDiscriminatorWithResponseAsync(
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -556,7 +572,8 @@ public Response getComposedWithDiscriminatorWithResponse(RequestOpti * without discriminator specified on wire. Deserialization must NOT fail and use the explicit type of the property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -575,7 +592,8 @@ public Response getComposedWithDiscriminatorWithResponse(RequestOpti
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -597,7 +615,8 @@ public Mono> getComposedWithoutDiscriminatorWithResponseAsy * without discriminator specified on wire. Deserialization must NOT fail and use the explicit type of the property. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     sampleSalmon (Optional): {
      *         fish.type: String (Required)
@@ -616,7 +635,8 @@ public Mono> getComposedWithoutDiscriminatorWithResponseAsy
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -636,7 +656,8 @@ public Response getComposedWithoutDiscriminatorWithResponse(RequestO * Get complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -654,7 +675,8 @@ public Response getComposedWithoutDiscriminatorWithResponse(RequestO
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -675,7 +697,8 @@ public Mono> getComplicatedWithResponseAsync(RequestOptions * Get complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -693,7 +716,8 @@ public Mono> getComplicatedWithResponseAsync(RequestOptions
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -713,7 +737,8 @@ public Response getComplicatedWithResponse(RequestOptions requestOpt * Put complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -731,7 +756,8 @@ public Response getComplicatedWithResponse(RequestOptions requestOpt
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -752,7 +778,8 @@ public Mono> putComplicatedWithResponseAsync(BinaryData complexBo * Put complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -770,7 +797,8 @@ public Mono> putComplicatedWithResponseAsync(BinaryData complexBo
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -790,7 +818,8 @@ public Response putComplicatedWithResponse(BinaryData complexBody, Request * Put complex types that are polymorphic, omitting the discriminator. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -808,11 +837,13 @@ public Response putComplicatedWithResponse(BinaryData complexBody, Request
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -830,7 +861,8 @@ public Response putComplicatedWithResponse(BinaryData complexBody, Request
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -852,7 +884,8 @@ public Mono> putMissingDiscriminatorWithResponseAsync(Binar * Put complex types that are polymorphic, omitting the discriminator. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -870,11 +903,13 @@ public Mono> putMissingDiscriminatorWithResponseAsync(Binar
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -892,7 +927,8 @@ public Mono> putMissingDiscriminatorWithResponseAsync(Binar
      *     location: String (Optional)
      *     iswild: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -915,7 +951,8 @@ public Response putMissingDiscriminatorWithResponse(BinaryData compl * allowed from the client. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -924,7 +961,8 @@ public Response putMissingDiscriminatorWithResponse(BinaryData compl
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please attempt put a sawshark that looks like this, the client should not allow this data to * be sent: @@ -973,7 +1011,8 @@ public Mono> putValidMissingRequiredWithResponseAsync(BinaryData * allowed from the client. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     fishtype: String (Required)
      *     species: String (Optional)
@@ -982,7 +1021,8 @@ public Mono> putValidMissingRequiredWithResponseAsync(BinaryData
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param complexBody Please attempt put a sawshark that looks like this, the client should not allow this data to * be sent: diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java index fe889e6b31..d3c7ba140c 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/PrimitivesImpl.java @@ -492,12 +492,14 @@ Response putByteSync(@HostParam("$host") String host, * Get complex types with integer properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -517,12 +519,14 @@ public Mono> getIntWithResponseAsync(RequestOptions request * Get complex types with integer properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -541,12 +545,14 @@ public Response getIntWithResponse(RequestOptions requestOptions) { * Put complex types with integer properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put -1 and 2. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -567,12 +573,14 @@ public Mono> putIntWithResponseAsync(BinaryData complexBody, Requ * Put complex types with integer properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Integer (Optional)
      *     field2: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put -1 and 2. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -592,12 +600,14 @@ public Response putIntWithResponse(BinaryData complexBody, RequestOptions * Get complex types with long properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -616,12 +626,14 @@ public Mono> getLongWithResponseAsync(RequestOptions reques * Get complex types with long properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -640,12 +652,14 @@ public Response getLongWithResponse(RequestOptions requestOptions) { * Put complex types with long properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1099511627775 and -999511627788. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -666,12 +680,14 @@ public Mono> putLongWithResponseAsync(BinaryData complexBody, Req * Put complex types with long properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Long (Optional)
      *     field2: Long (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1099511627775 and -999511627788. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -691,12 +707,14 @@ public Response putLongWithResponse(BinaryData complexBody, RequestOptions * Get complex types with float properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -716,12 +734,14 @@ public Mono> getFloatWithResponseAsync(RequestOptions reque * Get complex types with float properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -740,12 +760,14 @@ public Response getFloatWithResponse(RequestOptions requestOptions) * Put complex types with float properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1.05 and -0.003. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -766,12 +788,14 @@ public Mono> putFloatWithResponseAsync(BinaryData complexBody, Re * Put complex types with float properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Float (Optional)
      *     field2: Float (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 1.05 and -0.003. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -791,12 +815,14 @@ public Response putFloatWithResponse(BinaryData complexBody, RequestOption * Get complex types with double properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -817,12 +843,14 @@ public Mono> getDoubleWithResponseAsync(RequestOptions requ * Get complex types with double properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -841,12 +869,14 @@ public Response getDoubleWithResponse(RequestOptions requestOptions) * Put complex types with double properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 3e-100 and -0.000000000000000000000000000000000000000000000000000000005. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -867,12 +897,14 @@ public Mono> putDoubleWithResponseAsync(BinaryData complexBody, R * Put complex types with double properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field1: Double (Optional)
      *     field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Double (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 3e-100 and -0.000000000000000000000000000000000000000000000000000000005. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -892,12 +924,14 @@ public Response putDoubleWithResponse(BinaryData complexBody, RequestOptio * Get complex types with bool properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -916,12 +950,14 @@ public Mono> getBoolWithResponseAsync(RequestOptions reques * Get complex types with bool properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -940,12 +976,14 @@ public Response getBoolWithResponse(RequestOptions requestOptions) { * Put complex types with bool properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put true and false. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -966,12 +1004,14 @@ public Mono> putBoolWithResponseAsync(BinaryData complexBody, Req * Put complex types with bool properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field_true: Boolean (Optional)
      *     field_false: Boolean (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put true and false. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -991,13 +1031,15 @@ public Response putBoolWithResponse(BinaryData complexBody, RequestOptions * Get complex types with string properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1018,13 +1060,15 @@ public Mono> getStringWithResponseAsync(RequestOptions requ * Get complex types with string properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1043,13 +1087,15 @@ public Response getStringWithResponse(RequestOptions requestOptions) * Put complex types with string properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'goodrequest', '', and null. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1070,13 +1116,15 @@ public Mono> putStringWithResponseAsync(BinaryData complexBody, R * Put complex types with string properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     empty: String (Optional)
      *     null: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'goodrequest', '', and null. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1096,12 +1144,14 @@ public Response putStringWithResponse(BinaryData complexBody, RequestOptio * Get complex types with date properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1120,12 +1170,14 @@ public Mono> getDateWithResponseAsync(RequestOptions reques * Get complex types with date properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1144,12 +1196,14 @@ public Response getDateWithResponse(RequestOptions requestOptions) { * Put complex types with date properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01' and '2016-02-29'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1170,12 +1224,14 @@ public Mono> putDateWithResponseAsync(BinaryData complexBody, Req * Put complex types with date properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: String (Optional)
      *     leap: String (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01' and '2016-02-29'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1195,12 +1251,14 @@ public Response putDateWithResponse(BinaryData complexBody, RequestOptions * Get complex types with datetime properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1221,12 +1279,14 @@ public Mono> getDateTimeWithResponseAsync(RequestOptions re * Get complex types with datetime properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1245,12 +1305,14 @@ public Response getDateTimeWithResponse(RequestOptions requestOption * Put complex types with datetime properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1271,12 +1333,14 @@ public Mono> putDateTimeWithResponseAsync(BinaryData complexBody, * Put complex types with datetime properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: OffsetDateTime (Optional)
      *     now: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1296,12 +1360,14 @@ public Response putDateTimeWithResponse(BinaryData complexBody, RequestOpt * Get complex types with datetimeRfc1123 properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1322,12 +1388,14 @@ public Mono> getDateTimeRfc1123WithResponseAsync(RequestOpt * Get complex types with datetimeRfc1123 properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1346,12 +1414,14 @@ public Response getDateTimeRfc1123WithResponse(RequestOptions reques * Put complex types with datetimeRfc1123 properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 GMT'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1373,12 +1443,14 @@ public Mono> putDateTimeRfc1123WithResponseAsync(BinaryData compl * Put complex types with datetimeRfc1123 properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: DateTimeRfc1123 (Optional)
      *     now: DateTimeRfc1123 (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 GMT'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1398,11 +1470,13 @@ public Response putDateTimeRfc1123WithResponse(BinaryData complexBody, Req * Get complex types with duration properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1423,11 +1497,13 @@ public Mono> getDurationWithResponseAsync(RequestOptions re * Get complex types with duration properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1446,11 +1522,13 @@ public Response getDurationWithResponse(RequestOptions requestOption * Put complex types with duration properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'P123DT22H14M12.011S'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1471,11 +1549,13 @@ public Mono> putDurationWithResponseAsync(BinaryData complexBody, * Put complex types with duration properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put 'P123DT22H14M12.011S'. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1495,11 +1575,13 @@ public Response putDurationWithResponse(BinaryData complexBody, RequestOpt * Get complex types with byte properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1518,11 +1600,13 @@ public Mono> getByteWithResponseAsync(RequestOptions reques * Get complex types with byte properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1541,11 +1625,13 @@ public Response getByteWithResponse(RequestOptions requestOptions) { * Put complex types with byte properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6). * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1566,11 +1652,13 @@ public Mono> putByteWithResponseAsync(BinaryData complexBody, Req * Put complex types with byte properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     field: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody Please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6). * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ReadonlypropertiesImpl.java b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ReadonlypropertiesImpl.java index 0c20ae948d..6c8a57aad2 100644 --- a/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ReadonlypropertiesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodycomplex/implementation/ReadonlypropertiesImpl.java @@ -112,12 +112,14 @@ Response putValidSync(@HostParam("$host") String host, * Get complex types that have readonly properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -138,12 +140,14 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * Get complex types that have readonly properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -162,12 +166,14 @@ public Response getValidWithResponse(RequestOptions requestOptions) * Put complex types that have readonly properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,12 +194,14 @@ public Mono> putValidWithResponseAsync(BinaryData complexBody, Re * Put complex types that have readonly properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     size: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param complexBody The complexBody parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceAsyncClient.java index 9c0a3794a2..cf9ad20267 100644 --- a/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceAsyncClient.java @@ -40,9 +40,11 @@ public final class AutoRestSwaggerBatFileServiceAsyncClient { * Get file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Mono> getFileWithResponse(RequestOptions requestOpti * Get a large file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -82,9 +86,11 @@ public Mono> getFileLargeWithResponse(RequestOptions reques * Get empty file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClient.java b/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClient.java index f7b9755a4d..e27f9ea6fe 100644 --- a/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClient.java +++ b/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClient.java @@ -39,9 +39,11 @@ public final class AutoRestSwaggerBatFileServiceClient { * Get file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response getFileWithResponse(RequestOptions requestOptions) { * Get a large file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -81,9 +85,11 @@ public Response getFileLargeWithResponse(RequestOptions requestOptio * Get empty file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClientBuilder.java index c1f9adf208..50ffed81a8 100644 --- a/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBatFileServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodyfile/implementation/FilesImpl.java b/protocol-tests/src/main/java/fixtures/bodyfile/implementation/FilesImpl.java index 34a97e410a..5299f5cfad 100644 --- a/protocol-tests/src/main/java/fixtures/bodyfile/implementation/FilesImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodyfile/implementation/FilesImpl.java @@ -125,9 +125,11 @@ Response getEmptyFileSync(@HostParam("$host") String host, @HeaderPa * Get file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -146,9 +148,11 @@ public Mono> getFileWithResponseAsync(RequestOptions reques * Get file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,9 +171,11 @@ public Response getFileWithResponse(RequestOptions requestOptions) { * Get a large file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -189,9 +195,11 @@ public Mono> getFileLargeWithResponseAsync(RequestOptions r * Get a large file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -210,9 +218,11 @@ public Response getFileLargeWithResponse(RequestOptions requestOptio * Get empty file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -232,9 +242,11 @@ public Mono> getEmptyFileWithResponseAsync(RequestOptions r * Get empty file. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodystring/EnumAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodystring/EnumAsyncClient.java index da933d9316..a34786977f 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/EnumAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/EnumAsyncClient.java @@ -40,9 +40,11 @@ public final class EnumAsyncClient { * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> getNotExpandableWithResponse(RequestOptions re * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -84,9 +88,11 @@ public Mono> putNotExpandableWithResponse(BinaryData stringBody, * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -106,9 +112,11 @@ public Mono> getReferencedWithResponse(RequestOptions reque * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -128,12 +136,14 @@ public Mono> putReferencedWithResponse(BinaryData enumStringBody, * Get value 'green-color' from the constant. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,12 +163,14 @@ public Mono> getReferencedConstantWithResponse(RequestOptio * Sends value 'green-color' from a constant. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodystring/EnumClient.java b/protocol-tests/src/main/java/fixtures/bodystring/EnumClient.java index dbc3c0a6d4..e41f0a7a7d 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/EnumClient.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/EnumClient.java @@ -39,9 +39,11 @@ public final class EnumClient { * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response getNotExpandableWithResponse(RequestOptions requestO * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -83,9 +87,11 @@ public Response putNotExpandableWithResponse(BinaryData stringBody, Reques * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -105,9 +111,11 @@ public Response getReferencedWithResponse(RequestOptions requestOpti * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -127,12 +135,14 @@ public Response putReferencedWithResponse(BinaryData enumStringBody, Reque * Get value 'green-color' from the constant. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -151,12 +161,14 @@ public Response getReferencedConstantWithResponse(RequestOptions req * Sends value 'green-color' from a constant. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodystring/EnumClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodystring/EnumClientBuilder.java index 5cde8c0757..9b66577103 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/EnumClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/EnumClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java b/protocol-tests/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java index 5151392f62..4c41281625 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/StringOperationAsyncClient.java @@ -40,9 +40,11 @@ public final class StringOperationAsyncClient { * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,9 +71,11 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,9 +94,11 @@ public Mono> putNullWithResponse(RequestOptions requestOptions) { * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -111,9 +117,11 @@ public Mono> getEmptyWithResponse(RequestOptions requestOpt * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -132,9 +140,11 @@ public Mono> putEmptyWithResponse(RequestOptions requestOptions) * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -154,9 +164,11 @@ public Mono> getMbcsWithResponse(RequestOptions requestOpti * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -176,9 +188,11 @@ public Mono> putMbcsWithResponse(RequestOptions requestOptions) { * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -200,9 +214,11 @@ public Mono> getWhitespaceWithResponse(RequestOptions reque * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -221,9 +237,11 @@ public Mono> putWhitespaceWithResponse(RequestOptions requestOpti * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -243,9 +261,11 @@ public Mono> getNotProvidedWithResponse(RequestOptions requ * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -264,9 +284,11 @@ public Mono> getBase64EncodedWithResponse(RequestOptions re * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -285,9 +307,11 @@ public Mono> getBase64UrlEncodedWithResponse(RequestOptions * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -307,9 +331,11 @@ public Mono> putBase64UrlEncodedWithResponse(BinaryData stringBod * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClient.java b/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClient.java index 9395c0af67..bc03471548 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClient.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClient.java @@ -39,9 +39,11 @@ public final class StringOperationClient { * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,9 +70,11 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -89,9 +93,11 @@ public Response putNullWithResponse(RequestOptions requestOptions) { * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -110,9 +116,11 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -131,9 +139,11 @@ public Response putEmptyWithResponse(RequestOptions requestOptions) { * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,9 +163,11 @@ public Response getMbcsWithResponse(RequestOptions requestOptions) { * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -175,9 +187,11 @@ public Response putMbcsWithResponse(RequestOptions requestOptions) { * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -199,9 +213,11 @@ public Response getWhitespaceWithResponse(RequestOptions requestOpti * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -220,9 +236,11 @@ public Response putWhitespaceWithResponse(RequestOptions requestOptions) { * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -241,9 +259,11 @@ public Response getNotProvidedWithResponse(RequestOptions requestOpt * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -262,9 +282,11 @@ public Response getBase64EncodedWithResponse(RequestOptions requestO * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -283,9 +305,11 @@ public Response getBase64UrlEncodedWithResponse(RequestOptions reque * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -305,9 +329,11 @@ public Response putBase64UrlEncodedWithResponse(BinaryData stringBody, Req * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClientBuilder.java b/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClientBuilder.java index f5ac94f9a0..3759888288 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/StringOperationClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java b/protocol-tests/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java index 02ab15bfb0..2d979fde53 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/implementation/EnumsImpl.java @@ -187,9 +187,11 @@ Response putReferencedConstantSync(@HostParam("$host") String host, * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -210,9 +212,11 @@ public Mono> getNotExpandableWithResponseAsync(RequestOptio * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -232,9 +236,11 @@ public Response getNotExpandableWithResponse(RequestOptions requestO * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -256,9 +262,11 @@ public Mono> putNotExpandableWithResponseAsync(BinaryData stringB * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -278,9 +286,11 @@ public Response putNotExpandableWithResponse(BinaryData stringBody, Reques * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -301,9 +311,11 @@ public Mono> getReferencedWithResponseAsync(RequestOptions * Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -323,9 +335,11 @@ public Response getReferencedWithResponse(RequestOptions requestOpti * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -347,9 +361,11 @@ public Mono> putReferencedWithResponseAsync(BinaryData enumString * Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(red color/green-color/blue_color)
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -369,12 +385,14 @@ public Response putReferencedWithResponse(BinaryData enumStringBody, Reque * Get value 'green-color' from the constant. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -395,12 +413,14 @@ public Mono> getReferencedConstantWithResponseAsync(Request * Get value 'green-color' from the constant. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -419,12 +439,14 @@ public Response getReferencedConstantWithResponse(RequestOptions req * Sends value 'green-color' from a constant. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -446,12 +468,14 @@ public Mono> putReferencedConstantWithResponseAsync(BinaryData en * Sends value 'green-color' from a constant. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     ColorConstant: String (Required)
      *     field1: String (Optional)
      * }
-     * }
+ * } + *
* * @param enumStringBody enum string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java b/protocol-tests/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java index 11b7151005..d7492d570d 100644 --- a/protocol-tests/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java +++ b/protocol-tests/src/main/java/fixtures/bodystring/implementation/StringOperationsImpl.java @@ -317,9 +317,11 @@ Response getNullBase64UrlEncodedSync(@HostParam("$host") String host * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -338,9 +340,11 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get null string value value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -367,9 +371,11 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -403,9 +409,11 @@ public Mono> putNullWithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -430,9 +438,11 @@ public Response putNullWithResponse(RequestOptions requestOptions) { * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -452,9 +462,11 @@ public Mono> getEmptyWithResponseAsync(RequestOptions reque * Get empty string value value ''. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -473,9 +485,11 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -496,9 +510,11 @@ public Mono> putEmptyWithResponseAsync(RequestOptions requestOpti * Set string value empty ''. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -518,9 +534,11 @@ public Response putEmptyWithResponse(RequestOptions requestOptions) { * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -540,9 +558,11 @@ public Mono> getMbcsWithResponseAsync(RequestOptions reques * Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -562,9 +582,11 @@ public Response getMbcsWithResponse(RequestOptions requestOptions) { * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -586,9 +608,11 @@ public Mono> putMbcsWithResponseAsync(RequestOptions requestOptio * Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -610,9 +634,11 @@ public Response putMbcsWithResponse(RequestOptions requestOptions) { * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -635,9 +661,11 @@ public Mono> getWhitespaceWithResponseAsync(RequestOptions * all good men to come to the aid of their country<tab><space><space>'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -659,9 +687,11 @@ public Response getWhitespaceWithResponse(RequestOptions requestOpti * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -684,9 +714,11 @@ public Mono> putWhitespaceWithResponseAsync(RequestOptions reques * all good men to come to the aid of their country<tab><space><space>'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -707,9 +739,11 @@ public Response putWhitespaceWithResponse(RequestOptions requestOptions) { * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -730,9 +764,11 @@ public Mono> getNotProvidedWithResponseAsync(RequestOptions * Get String value when no string value is sent in response payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -751,9 +787,11 @@ public Response getNotProvidedWithResponse(RequestOptions requestOpt * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -773,9 +811,11 @@ public Mono> getBase64EncodedWithResponseAsync(RequestOptio * Get value that is base64 encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -794,9 +834,11 @@ public Response getBase64EncodedWithResponse(RequestOptions requestO * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -816,9 +858,11 @@ public Mono> getBase64UrlEncodedWithResponseAsync(RequestOp * Get value that is base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -837,9 +881,11 @@ public Response getBase64UrlEncodedWithResponse(RequestOptions reque * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -861,9 +907,11 @@ public Mono> putBase64UrlEncodedWithResponseAsync(BinaryData stri * Put value that is base64url encoded. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param stringBody string body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -883,9 +931,11 @@ public Response putBase64UrlEncodedWithResponse(BinaryData stringBody, Req * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -906,9 +956,11 @@ public Mono> getNullBase64UrlEncodedWithResponseAsync(Reque * Get null value that is expected to be base64url encoded. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/constantandclientparam/ConstantAndClientParameterServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/constantandclientparam/ConstantAndClientParameterServiceClientBuilder.java index 668b8b7055..996d77841e 100644 --- a/protocol-tests/src/main/java/fixtures/constantandclientparam/ConstantAndClientParameterServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/constantandclientparam/ConstantAndClientParameterServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceClientBuilder.java index ba171b294e..144867b5e7 100644 --- a/protocol-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgAsyncClient.java b/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgAsyncClient.java index ca25995295..af348b73b9 100644 --- a/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgAsyncClient.java @@ -42,11 +42,13 @@ public final class DpgAsyncClient { * Get models that you will either return to end users as a raw body, or with a model added during grow up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -69,19 +71,23 @@ public Mono> getModelWithResponse(String mode, RequestOptio * instead, and put in 'model' as mode. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     hello: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -104,11 +110,13 @@ public Mono> postModelWithResponse(String mode, BinaryData * Get pages that you will either return to users in pages of raw bodies, or pages of models following growup. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -131,12 +139,14 @@ public PagedFlux getPages(String mode, RequestOptions requestOptions * of a model after the SDK has grown up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      *     provisioningState: String (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. diff --git a/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClient.java b/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClient.java index 3685cb41e8..84378cb91e 100644 --- a/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClient.java +++ b/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClient.java @@ -41,11 +41,13 @@ public final class DpgClient { * Get models that you will either return to end users as a raw body, or with a model added during grow up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -68,19 +70,23 @@ public Response getModelWithResponse(String mode, RequestOptions req * instead, and put in 'model' as mode. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     hello: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -102,11 +108,13 @@ public Response postModelWithResponse(String mode, BinaryData input, * Get pages that you will either return to users in pages of raw bodies, or pages of models following growup. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -129,12 +137,14 @@ public PagedIterable getPages(String mode, RequestOptions requestOpt * of a model after the SDK has grown up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      *     provisioningState: String (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. diff --git a/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClientBuilder.java b/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClientBuilder.java index 74733a88a3..096809b45f 100644 --- a/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/dpgcustomization/DpgClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/dpgcustomization/implementation/DpgClientImpl.java b/protocol-tests/src/main/java/fixtures/dpgcustomization/implementation/DpgClientImpl.java index 565a2afc08..a3fc60b1a6 100644 --- a/protocol-tests/src/main/java/fixtures/dpgcustomization/implementation/DpgClientImpl.java +++ b/protocol-tests/src/main/java/fixtures/dpgcustomization/implementation/DpgClientImpl.java @@ -265,11 +265,13 @@ Response getPagesNextSync(@PathParam(value = "nextLink", encoded = t * Get models that you will either return to end users as a raw body, or with a model added during grow up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -291,11 +293,13 @@ public Mono> getModelWithResponseAsync(String mode, Request * Get models that you will either return to end users as a raw body, or with a model added during grow up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -318,19 +322,23 @@ public Response getModelWithResponse(String mode, RequestOptions req * instead, and put in 'model' as mode. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     hello: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -355,19 +363,23 @@ public Mono> postModelWithResponseAsync(String mode, Binary * instead, and put in 'model' as mode. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     hello: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -389,11 +401,13 @@ public Response postModelWithResponse(String mode, BinaryData input, * Get pages that you will either return to users in pages of raw bodies, or pages of models following growup. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -417,11 +431,13 @@ private Mono> getPagesSinglePageAsync(String mode, Req * Get pages that you will either return to users in pages of raw bodies, or pages of models following growup. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -446,11 +462,13 @@ public PagedFlux getPagesAsync(String mode, RequestOptions requestOp * Get pages that you will either return to users in pages of raw bodies, or pages of models following growup. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -474,11 +492,13 @@ private PagedResponse getPagesSinglePage(String mode, RequestOptions * Get pages that you will either return to users in pages of raw bodies, or pages of models following growup. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -504,12 +524,14 @@ public PagedIterable getPages(String mode, RequestOptions requestOpt * of a model after the SDK has grown up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      *     provisioningState: String (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -531,12 +553,14 @@ private Mono> lroWithResponseAsync(String mode, RequestOpti * of a model after the SDK has grown up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      *     provisioningState: String (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -558,12 +582,14 @@ private Response lroWithResponse(String mode, RequestOptions request * of a model after the SDK has grown up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      *     provisioningState: String (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -590,12 +616,14 @@ public PollerFlux beginLroAsync(String mode, RequestOpti * of a model after the SDK has grown up. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      *     provisioningState: String (Required)
      * }
-     * }
+ * } + *
* * @param mode The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, * and 'model' if you are going to convert the raw body to a customized body before returning to users. @@ -621,11 +649,13 @@ public SyncPoller beginLro(String mode, RequestOptions r * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -649,11 +679,13 @@ private Mono> getPagesNextSinglePageAsync(String nextL * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     received: String(raw/model) (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointAsyncClient.java b/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointAsyncClient.java index c6cb6ff0d0..8ce0562022 100644 --- a/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointAsyncClient.java @@ -48,25 +48,29 @@ public final class LroEndpointAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClient.java b/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClient.java index 36f9f0a611..6ddab9afa8 100644 --- a/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClient.java +++ b/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClient.java @@ -48,25 +48,29 @@ public final class LroEndpointClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClientBuilder.java b/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClientBuilder.java index 1df69da03b..c618d647c1 100644 --- a/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/endpointlro/LroEndpointClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/endpointlro/implementation/LROsImpl.java b/protocol-tests/src/main/java/fixtures/endpointlro/implementation/LROsImpl.java index cdc04ec441..3e9796e76e 100644 --- a/protocol-tests/src/main/java/fixtures/endpointlro/implementation/LROsImpl.java +++ b/protocol-tests/src/main/java/fixtures/endpointlro/implementation/LROsImpl.java @@ -108,25 +108,29 @@ Response put200SucceededSync(@HostParam("Endpoint") String endpoint, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -161,25 +165,29 @@ private Mono> put200SucceededWithResponseAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -214,25 +222,29 @@ private Response put200SucceededWithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -267,25 +279,29 @@ public PollerFlux beginPut200SucceededAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         provisioningState: String (Optional)
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/enums/EnumServiceAsyncClient.java b/protocol-tests/src/main/java/fixtures/enums/EnumServiceAsyncClient.java index d9eda72c60..b66afcc5fb 100644 --- a/protocol-tests/src/main/java/fixtures/enums/EnumServiceAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/enums/EnumServiceAsyncClient.java @@ -97,9 +97,11 @@ public Mono> putHeaderEnumsWithResponse(String headerRequiredStri * enums required body operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(test1/test2/test@)
-     * }
+ * } + *
* * @param bodyRequiredEnum body required enum. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -128,9 +130,11 @@ public Mono> putRequiredBodyEnumsWithResponse(BinaryData bodyRequ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
-     * String(test1 / test2)
-     * }
+ *
+     * {@code
+     * String(test1/test2)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/enums/EnumServiceClient.java b/protocol-tests/src/main/java/fixtures/enums/EnumServiceClient.java index 5b48b3f1b7..f578cf70a5 100644 --- a/protocol-tests/src/main/java/fixtures/enums/EnumServiceClient.java +++ b/protocol-tests/src/main/java/fixtures/enums/EnumServiceClient.java @@ -95,9 +95,11 @@ public Response putHeaderEnumsWithResponse(String headerRequiredStringEnum * enums required body operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(test1/test2/test@)
-     * }
+ * } + *
* * @param bodyRequiredEnum body required enum. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -125,9 +127,11 @@ public Response putRequiredBodyEnumsWithResponse(BinaryData bodyRequiredEn * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
-     * String(test1 / test2)
-     * }
+ *
+     * {@code
+     * String(test1/test2)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/enums/EnumServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/enums/EnumServiceClientBuilder.java index 7984a28499..3e30382551 100644 --- a/protocol-tests/src/main/java/fixtures/enums/EnumServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/enums/EnumServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/enums/implementation/EnumServiceClientImpl.java b/protocol-tests/src/main/java/fixtures/enums/implementation/EnumServiceClientImpl.java index 532513b6f3..a02d8ef43a 100644 --- a/protocol-tests/src/main/java/fixtures/enums/implementation/EnumServiceClientImpl.java +++ b/protocol-tests/src/main/java/fixtures/enums/implementation/EnumServiceClientImpl.java @@ -341,9 +341,11 @@ public Response putHeaderEnumsWithResponse(String headerRequiredStringEnum * enums required body operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(test1/test2/test@)
-     * }
+ * } + *
* * @param bodyRequiredEnum body required enum. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -364,9 +366,11 @@ public Mono> putRequiredBodyEnumsWithResponseAsync(BinaryData bod * enums required body operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(test1/test2/test@)
-     * }
+ * } + *
* * @param bodyRequiredEnum body required enum. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -393,9 +397,11 @@ public Response putRequiredBodyEnumsWithResponse(BinaryData bodyRequiredEn * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
-     * String(test1 / test2)
-     * }
+ *
+     * {@code
+     * String(test1/test2)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -428,9 +434,11 @@ public Mono> putNonRequiredBodyEnumsWithResponseAsync(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
-     * String(test1 / test2)
-     * }
+ *
+     * {@code
+     * String(test1/test2)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/header/AutoRestSwaggerBatHeaderServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/header/AutoRestSwaggerBatHeaderServiceClientBuilder.java index ec9c872b5f..803c066241 100644 --- a/protocol-tests/src/main/java/fixtures/header/AutoRestSwaggerBatHeaderServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/header/AutoRestSwaggerBatHeaderServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceClientBuilder.java index d6a19ff645..cd85f4d065 100644 --- a/protocol-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureAsyncClient.java index 2cef0fedbf..be52050d1f 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureAsyncClient.java @@ -95,9 +95,11 @@ public Mono> options400WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,9 +126,11 @@ public Mono> put400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,9 +157,11 @@ public Mono> patch400WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -182,9 +188,11 @@ public Mono> post400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -275,9 +283,11 @@ public Mono> get403WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -304,9 +314,11 @@ public Mono> put404WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -333,9 +345,11 @@ public Mono> patch405WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -362,9 +376,11 @@ public Mono> post406WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -391,9 +407,11 @@ public Mono> delete407WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -484,9 +502,11 @@ public Mono> get412WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -513,9 +533,11 @@ public Mono> put413WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -542,9 +564,11 @@ public Mono> patch414WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -587,9 +611,11 @@ public Mono> get416WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClient.java index f2c81520bc..1f0f369824 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClient.java @@ -94,9 +94,11 @@ public Response options400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,9 +125,11 @@ public Response put400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -152,9 +156,11 @@ public Response patch400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -181,9 +187,11 @@ public Response post400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -274,9 +282,11 @@ public Response get403WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -303,9 +313,11 @@ public Response put404WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -332,9 +344,11 @@ public Response patch405WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -361,9 +375,11 @@ public Response post406WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -390,9 +406,11 @@ public Response delete407WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -483,9 +501,11 @@ public Response get412WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -512,9 +532,11 @@ public Response put413WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -541,9 +563,11 @@ public Response patch414WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -586,9 +610,11 @@ public Response get416WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClientBuilder.java index d4415443c8..ec5a8660fa 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpClientFailureClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureAsyncClient.java index 03a899a8ea..816ffbee2a 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureAsyncClient.java @@ -40,9 +40,11 @@ public final class HttpFailureAsyncClient { * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Mono> getEmptyErrorWithResponse(RequestOptions reque * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -82,9 +86,11 @@ public Mono> getNoModelErrorWithResponse(RequestOptions req * Get empty response from server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClient.java index 2899082e17..9457470330 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClient.java @@ -39,9 +39,11 @@ public final class HttpFailureClient { * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response getEmptyErrorWithResponse(RequestOptions requestOpti * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -81,9 +85,11 @@ public Response getNoModelErrorWithResponse(RequestOptions requestOp * Get empty response from server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClientBuilder.java index b2f0b24df1..25f70065fa 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpFailureClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsAsyncClient.java index ad372ec2ee..61e62d586a 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsAsyncClient.java @@ -56,11 +56,13 @@ public Mono> head300WithResponse(RequestOptions requestOptions) { * Return 300 status code and redirect to /http/success/200. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -120,9 +122,11 @@ public Mono> get301WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -182,9 +186,11 @@ public Mono> get302WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -212,9 +218,11 @@ public Mono> patch302WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -289,9 +297,11 @@ public Mono> options307WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -318,9 +328,11 @@ public Mono> put307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -347,9 +359,11 @@ public Mono> patch307WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -376,9 +390,11 @@ public Mono> post307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClient.java index 2713c57dff..b682dc0a6a 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClient.java @@ -55,11 +55,13 @@ public Response head300WithResponse(RequestOptions requestOptions) { * Return 300 status code and redirect to /http/success/200. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -119,9 +121,11 @@ public Response get301WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -181,9 +185,11 @@ public Response get302WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -211,9 +217,11 @@ public Response patch302WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -288,9 +296,11 @@ public Response options307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -317,9 +327,11 @@ public Response put307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -346,9 +358,11 @@ public Response patch307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -375,9 +389,11 @@ public Response post307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClientBuilder.java index adf0568b60..1387b208c4 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRedirectsClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryAsyncClient.java index 947c1e4434..0e712f75d5 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryAsyncClient.java @@ -64,9 +64,11 @@ public Mono> head408WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,9 +95,11 @@ public Mono> put500WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -130,9 +134,11 @@ public Mono> get502WithResponse(RequestOptions requestOptions) { * Return 502 status code, then 200 after retry. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -159,9 +165,11 @@ public Mono> options502WithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,9 +196,11 @@ public Mono> post503WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,9 +227,11 @@ public Mono> delete503WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -246,9 +258,11 @@ public Mono> put504WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClient.java index 0639e39aea..c5a90a19b0 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClient.java @@ -63,9 +63,11 @@ public Response head408WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -92,9 +94,11 @@ public Response put500WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,9 +133,11 @@ public Response get502WithResponse(RequestOptions requestOptions) { * Return 502 status code, then 200 after retry. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -158,9 +164,11 @@ public Response options502WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -187,9 +195,11 @@ public Response post503WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,9 +226,11 @@ public Response delete503WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -245,9 +257,11 @@ public Response put504WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClientBuilder.java index 9a3d626d02..7d97c52814 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpRetryClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureAsyncClient.java index 6a6b4db710..e035b148ef 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureAsyncClient.java @@ -79,9 +79,11 @@ public Mono> get501WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -108,9 +110,11 @@ public Mono> post505WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClient.java index d8dd7436e8..9028954d82 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClient.java @@ -78,9 +78,11 @@ public Response get501WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -107,9 +109,11 @@ public Response post505WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClientBuilder.java index 5235bf6e13..dca0777bab 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpServerFailureClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessAsyncClient.java index ab8f6a623b..bfaa53458d 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessAsyncClient.java @@ -56,9 +56,11 @@ public Mono> head200WithResponse(RequestOptions requestOptions) { * Get 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -77,9 +79,11 @@ public Mono> get200WithResponse(RequestOptions requestOptio * Options 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -106,9 +110,11 @@ public Mono> options200WithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -135,9 +141,11 @@ public Mono> put200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -164,9 +172,11 @@ public Mono> patch200WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -193,9 +203,11 @@ public Mono> post200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -222,9 +234,11 @@ public Mono> delete200WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -251,9 +265,11 @@ public Mono> put201WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -280,9 +296,11 @@ public Mono> post201WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -309,9 +327,11 @@ public Mono> put202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -338,9 +358,11 @@ public Mono> patch202WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -367,9 +389,11 @@ public Mono> post202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -412,9 +436,11 @@ public Mono> head204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -441,9 +467,11 @@ public Mono> put204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -470,9 +498,11 @@ public Mono> patch204WithResponse(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -499,9 +529,11 @@ public Mono> post204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -520,9 +552,11 @@ public Mono> delete204WithResponse(RequestOptions requestOptions) * Return 404 status code. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClient.java index 7f708fb6fd..5653c45a77 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClient.java @@ -55,9 +55,11 @@ public Response head200WithResponse(RequestOptions requestOptions) { * Get 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -76,9 +78,11 @@ public Response get200WithResponse(RequestOptions requestOptions) { * Options 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -105,9 +109,11 @@ public Response options200WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -134,9 +140,11 @@ public Response put200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -163,9 +171,11 @@ public Response patch200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -192,9 +202,11 @@ public Response post200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -221,9 +233,11 @@ public Response delete200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -250,9 +264,11 @@ public Response put201WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -279,9 +295,11 @@ public Response post201WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -308,9 +326,11 @@ public Response put202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -337,9 +357,11 @@ public Response patch202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -366,9 +388,11 @@ public Response post202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -411,9 +435,11 @@ public Response head204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -440,9 +466,11 @@ public Response put204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -469,9 +497,11 @@ public Response patch204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -498,9 +528,11 @@ public Response post204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -519,9 +551,11 @@ public Response delete204WithResponse(RequestOptions requestOptions) { * Return 404 status code. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClientBuilder.java index 009caa5ba8..d063cb9679 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/HttpSuccessClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesAsyncClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesAsyncClient.java index 9fe2e9c7db..73c28d5116 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesAsyncClient.java @@ -40,11 +40,13 @@ public final class MultipleResponsesAsyncClient { * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public final class MultipleResponsesAsyncClient { * Send a 204 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -88,11 +92,13 @@ public final class MultipleResponsesAsyncClient { * Send a 201 response with valid payload: {'statusCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -112,11 +118,13 @@ public final class MultipleResponsesAsyncClient { * Send a 202 response with no payload:. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -136,11 +144,13 @@ public final class MultipleResponsesAsyncClient { * Send a 400 response with valid error payload: {'status': 400, 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -160,11 +170,13 @@ public final class MultipleResponsesAsyncClient { * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -184,11 +196,13 @@ public final class MultipleResponsesAsyncClient { * Send a 201 response with valid payload: {'statusCode': '201', 'textStatusCode': 'Created'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -208,11 +222,13 @@ public final class MultipleResponsesAsyncClient { * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -232,9 +248,11 @@ public final class MultipleResponsesAsyncClient { * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -253,9 +271,11 @@ public final class MultipleResponsesAsyncClient { * Send a 200 response with valid payload: {'httpCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -274,9 +294,11 @@ public final class MultipleResponsesAsyncClient { * Send a 200 response with valid payload: {'httpStatusCode': '404'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -295,9 +317,11 @@ public final class MultipleResponsesAsyncClient { * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -428,11 +452,13 @@ public Mono> get202None204NoneDefaultNone400InvalidWithResponse(R * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -451,11 +477,13 @@ public Mono> getDefaultModelA200ValidWithResponse(RequestOp * Send a 200 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -571,11 +599,13 @@ public Mono> getDefaultNone400NoneWithResponse(RequestOptions req * for model A. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -594,11 +624,13 @@ public Mono> get200ModelA200NoneWithResponse(RequestOptions * Send a 200 response with payload {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -617,11 +649,13 @@ public Mono> get200ModelA200ValidWithResponse(RequestOption * Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -640,11 +674,13 @@ public Mono> get200ModelA200InvalidWithResponse(RequestOpti * Send a 400 response with no payload client should treat as an http error with no error model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -663,11 +699,13 @@ public Mono> get200ModelA400NoneWithResponse(RequestOptions * Send a 200 response with payload {'statusCode': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -686,11 +724,13 @@ public Mono> get200ModelA400ValidWithResponse(RequestOption * Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -709,11 +749,13 @@ public Mono> get200ModelA400InvalidWithResponse(RequestOpti * Send a 202 response with payload {'statusCode': '202'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClient.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClient.java index 49c4d4b80e..7243f04d69 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClient.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClient.java @@ -39,11 +39,13 @@ public final class MultipleResponsesClient { * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,11 +64,13 @@ public Response get200Model204NoModelDefaultError200ValidWithRespons * Send a 204 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -85,11 +89,13 @@ public Response get200Model204NoModelDefaultError204ValidWithRespons * Send a 201 response with valid payload: {'statusCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -108,11 +114,13 @@ public Response get200Model204NoModelDefaultError201InvalidWithRespo * Send a 202 response with no payload:. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -131,11 +139,13 @@ public Response get200Model204NoModelDefaultError202NoneWithResponse * Send a 400 response with valid error payload: {'status': 400, 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -154,11 +164,13 @@ public Response get200Model204NoModelDefaultError400ValidWithRespons * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -177,11 +189,13 @@ public Response get200Model201ModelDefaultError200ValidWithResponse( * Send a 201 response with valid payload: {'statusCode': '201', 'textStatusCode': 'Created'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -200,11 +214,13 @@ public Response get200Model201ModelDefaultError201ValidWithResponse( * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -223,9 +239,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -244,9 +262,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'httpCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -265,9 +285,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'httpStatusCode': '404'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -286,9 +308,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -419,11 +443,13 @@ public Response get202None204NoneDefaultNone400InvalidWithResponse(Request * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -442,11 +468,13 @@ public Response getDefaultModelA200ValidWithResponse(RequestOptions * Send a 200 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -562,11 +590,13 @@ public Response getDefaultNone400NoneWithResponse(RequestOptions requestOp * for model A. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -585,11 +615,13 @@ public Response get200ModelA200NoneWithResponse(RequestOptions reque * Send a 200 response with payload {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -608,11 +640,13 @@ public Response get200ModelA200ValidWithResponse(RequestOptions requ * Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -631,11 +665,13 @@ public Response get200ModelA200InvalidWithResponse(RequestOptions re * Send a 400 response with no payload client should treat as an http error with no error model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -654,11 +690,13 @@ public Response get200ModelA400NoneWithResponse(RequestOptions reque * Send a 200 response with payload {'statusCode': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -677,11 +715,13 @@ public Response get200ModelA400ValidWithResponse(RequestOptions requ * Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -700,11 +740,13 @@ public Response get200ModelA400InvalidWithResponse(RequestOptions re * Send a 202 response with payload {'statusCode': '202'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClientBuilder.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClientBuilder.java index 1a042ebb77..60e1d53e13 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/MultipleResponsesClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpClientFailuresImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpClientFailuresImpl.java index a3394a8579..37922de5ae 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpClientFailuresImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpClientFailuresImpl.java @@ -625,9 +625,11 @@ public Response options400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -656,9 +658,11 @@ public Mono> put400WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -686,9 +690,11 @@ public Response put400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -717,9 +723,11 @@ public Mono> patch400WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -747,9 +755,11 @@ public Response patch400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -778,9 +788,11 @@ public Mono> post400WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -808,9 +820,11 @@ public Response post400WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -839,9 +853,11 @@ public Mono> delete400WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -998,9 +1014,11 @@ public Response get403WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1029,9 +1047,11 @@ public Mono> put404WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1059,9 +1079,11 @@ public Response put404WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1090,9 +1112,11 @@ public Mono> patch405WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1120,9 +1144,11 @@ public Response patch405WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1151,9 +1177,11 @@ public Mono> post406WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1181,9 +1209,11 @@ public Response post406WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1212,9 +1242,11 @@ public Mono> delete407WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1242,9 +1274,11 @@ public Response delete407WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1273,9 +1307,11 @@ public Mono> put409WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1432,9 +1468,11 @@ public Response get412WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1463,9 +1501,11 @@ public Mono> put413WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1493,9 +1533,11 @@ public Response put413WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1524,9 +1566,11 @@ public Mono> patch414WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1554,9 +1598,11 @@ public Response patch414WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1585,9 +1631,11 @@ public Mono> post415WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1647,9 +1695,11 @@ public Response get416WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1678,9 +1728,11 @@ public Mono> delete417WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpFailuresImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpFailuresImpl.java index 6938890f76..114d9f268f 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpFailuresImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpFailuresImpl.java @@ -126,9 +126,11 @@ Response getNoModelEmptySync(@HostParam("$host") String host, @Heade * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -148,9 +150,11 @@ public Mono> getEmptyErrorWithResponseAsync(RequestOptions * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -169,9 +173,11 @@ public Response getEmptyErrorWithResponse(RequestOptions requestOpti * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -191,9 +197,11 @@ public Mono> getNoModelErrorWithResponseAsync(RequestOption * Get empty error form server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -212,9 +220,11 @@ public Response getNoModelErrorWithResponse(RequestOptions requestOp * Get empty response from server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -234,9 +244,11 @@ public Mono> getNoModelEmptyWithResponseAsync(RequestOption * Get empty response from server. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRedirectsImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRedirectsImpl.java index 51c3d5b3a0..d8d5511872 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRedirectsImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRedirectsImpl.java @@ -413,11 +413,13 @@ public Response head300WithResponse(RequestOptions requestOptions) { * Return 300 status code and redirect to /http/success/200. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -436,11 +438,13 @@ public Mono> get300WithResponseAsync(RequestOptions request * Return 300 status code and redirect to /http/success/200. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -532,9 +536,11 @@ public Response get301WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -564,9 +570,11 @@ public Mono> put301WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -659,9 +667,11 @@ public Response get302WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -691,9 +701,11 @@ public Mono> patch302WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -722,9 +734,11 @@ public Response patch302WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -754,9 +768,11 @@ public Mono> post303WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -881,9 +897,11 @@ public Response options307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -912,9 +930,11 @@ public Mono> put307WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -942,9 +962,11 @@ public Response put307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -973,9 +995,11 @@ public Mono> patch307WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1003,9 +1027,11 @@ public Response patch307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1034,9 +1060,11 @@ public Mono> post307WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1064,9 +1092,11 @@ public Response post307WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1095,9 +1125,11 @@ public Mono> delete307WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRetriesImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRetriesImpl.java index 79434dbad1..67696dc90c 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRetriesImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpRetriesImpl.java @@ -293,9 +293,11 @@ public Response head408WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -324,9 +326,11 @@ public Mono> put500WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -354,9 +358,11 @@ public Response put500WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -385,9 +391,11 @@ public Mono> patch500WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -439,9 +447,11 @@ public Response get502WithResponse(RequestOptions requestOptions) { * Return 502 status code, then 200 after retry. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -461,9 +471,11 @@ public Mono> options502WithResponseAsync(RequestOptions req * Return 502 status code, then 200 after retry. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -490,9 +502,11 @@ public Response options502WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -521,9 +535,11 @@ public Mono> post503WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -551,9 +567,11 @@ public Response post503WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -582,9 +600,11 @@ public Mono> delete503WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -612,9 +632,11 @@ public Response delete503WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -643,9 +665,11 @@ public Mono> put504WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -673,9 +697,11 @@ public Response put504WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -704,9 +730,11 @@ public Mono> patch504WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpServerFailuresImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpServerFailuresImpl.java index 898365633b..5f1d77371b 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpServerFailuresImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpServerFailuresImpl.java @@ -215,9 +215,11 @@ public Response get501WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -246,9 +248,11 @@ public Mono> post505WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -276,9 +280,11 @@ public Response post505WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -307,9 +313,11 @@ public Mono> delete505WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpSuccessImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpSuccessImpl.java index b23bff3a1e..2d83883579 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpSuccessImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/HttpSuccessImpl.java @@ -479,9 +479,11 @@ public Response head200WithResponse(RequestOptions requestOptions) { * Get 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -500,9 +502,11 @@ public Mono> get200WithResponseAsync(RequestOptions request * Get 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -521,9 +525,11 @@ public Response get200WithResponse(RequestOptions requestOptions) { * Options 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -543,9 +549,11 @@ public Mono> options200WithResponseAsync(RequestOptions req * Options 200 success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -572,9 +580,11 @@ public Response options200WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -603,9 +613,11 @@ public Mono> put200WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -633,9 +645,11 @@ public Response put200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -664,9 +678,11 @@ public Mono> patch200WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -694,9 +710,11 @@ public Response patch200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -725,9 +743,11 @@ public Mono> post200WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -755,9 +775,11 @@ public Response post200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -786,9 +808,11 @@ public Mono> delete200WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -816,9 +840,11 @@ public Response delete200WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -847,9 +873,11 @@ public Mono> put201WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -877,9 +905,11 @@ public Response put201WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -908,9 +938,11 @@ public Mono> post201WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -938,9 +970,11 @@ public Response post201WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -969,9 +1003,11 @@ public Mono> put202WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -999,9 +1035,11 @@ public Response put202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1030,9 +1068,11 @@ public Mono> patch202WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1060,9 +1100,11 @@ public Response patch202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1091,9 +1133,11 @@ public Mono> post202WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1121,9 +1165,11 @@ public Response post202WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1152,9 +1198,11 @@ public Mono> delete202WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1214,9 +1262,11 @@ public Response head204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1245,9 +1295,11 @@ public Mono> put204WithResponseAsync(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1275,9 +1327,11 @@ public Response put204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1306,9 +1360,11 @@ public Mono> patch204WithResponseAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1336,9 +1392,11 @@ public Response patch204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1367,9 +1425,11 @@ public Mono> post204WithResponseAsync(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1397,9 +1457,11 @@ public Response post204WithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1428,9 +1490,11 @@ public Mono> delete204WithResponseAsync(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1450,9 +1514,11 @@ public Response delete204WithResponse(RequestOptions requestOptions) { * Return 404 status code. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1470,9 +1536,11 @@ public Mono> head404WithResponseAsync(RequestOptions requestOp * Return 404 status code. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/MultipleResponsesImpl.java b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/MultipleResponsesImpl.java index 75885779c2..9104f2928b 100644 --- a/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/MultipleResponsesImpl.java +++ b/protocol-tests/src/main/java/fixtures/httpinfrastructure/implementation/MultipleResponsesImpl.java @@ -676,11 +676,13 @@ Response get200ModelA202ValidSync(@HostParam("$host") String host, * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -701,11 +703,13 @@ Response get200ModelA202ValidSync(@HostParam("$host") String host, * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -725,11 +729,13 @@ public Response get200Model204NoModelDefaultError200ValidWithRespons * Send a 204 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -750,11 +756,13 @@ public Response get200Model204NoModelDefaultError200ValidWithRespons * Send a 204 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -774,11 +782,13 @@ public Response get200Model204NoModelDefaultError204ValidWithRespons * Send a 201 response with valid payload: {'statusCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -799,11 +809,13 @@ public Response get200Model204NoModelDefaultError204ValidWithRespons * Send a 201 response with valid payload: {'statusCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -823,11 +835,13 @@ public Response get200Model204NoModelDefaultError201InvalidWithRespo * Send a 202 response with no payload:. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -848,11 +862,13 @@ public Response get200Model204NoModelDefaultError201InvalidWithRespo * Send a 202 response with no payload:. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -872,11 +888,13 @@ public Response get200Model204NoModelDefaultError202NoneWithResponse * Send a 400 response with valid error payload: {'status': 400, 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -897,11 +915,13 @@ public Response get200Model204NoModelDefaultError202NoneWithResponse * Send a 400 response with valid error payload: {'status': 400, 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -921,11 +941,13 @@ public Response get200Model204NoModelDefaultError400ValidWithRespons * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -946,11 +968,13 @@ public Response get200Model204NoModelDefaultError400ValidWithRespons * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -970,11 +994,13 @@ public Response get200Model201ModelDefaultError200ValidWithResponse( * Send a 201 response with valid payload: {'statusCode': '201', 'textStatusCode': 'Created'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -995,11 +1021,13 @@ public Response get200Model201ModelDefaultError200ValidWithResponse( * Send a 201 response with valid payload: {'statusCode': '201', 'textStatusCode': 'Created'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1019,11 +1047,13 @@ public Response get200Model201ModelDefaultError201ValidWithResponse( * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1044,11 +1074,13 @@ public Response get200Model201ModelDefaultError201ValidWithResponse( * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1068,9 +1100,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1091,9 +1125,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1113,9 +1149,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'httpCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1136,9 +1174,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'httpCode': '201'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1158,9 +1198,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'httpStatusCode': '404'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1181,9 +1223,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 200 response with valid payload: {'httpStatusCode': '404'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1203,9 +1247,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1226,9 +1272,11 @@ public Response get200Model201ModelDefaultError400ValidWithResponse( * Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1474,11 +1522,13 @@ public Response get202None204NoneDefaultNone400InvalidWithResponse(Request * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1498,11 +1548,13 @@ public Mono> getDefaultModelA200ValidWithResponseAsync(Requ * Send a 200 response with valid payload: {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1521,11 +1573,13 @@ public Response getDefaultModelA200ValidWithResponse(RequestOptions * Send a 200 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1545,11 +1599,13 @@ public Mono> getDefaultModelA200NoneWithResponseAsync(Reque * Send a 200 response with no payload. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1759,11 +1815,13 @@ public Response getDefaultNone400NoneWithResponse(RequestOptions requestOp * for model A. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1784,11 +1842,13 @@ public Mono> get200ModelA200NoneWithResponseAsync(RequestOp * for model A. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1807,11 +1867,13 @@ public Response get200ModelA200NoneWithResponse(RequestOptions reque * Send a 200 response with payload {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1831,11 +1893,13 @@ public Mono> get200ModelA200ValidWithResponseAsync(RequestO * Send a 200 response with payload {'statusCode': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1854,11 +1918,13 @@ public Response get200ModelA200ValidWithResponse(RequestOptions requ * Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1878,11 +1944,13 @@ public Mono> get200ModelA200InvalidWithResponseAsync(Reques * Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1901,11 +1969,13 @@ public Response get200ModelA200InvalidWithResponse(RequestOptions re * Send a 400 response with no payload client should treat as an http error with no error model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1925,11 +1995,13 @@ public Mono> get200ModelA400NoneWithResponseAsync(RequestOp * Send a 400 response with no payload client should treat as an http error with no error model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1948,11 +2020,13 @@ public Response get200ModelA400NoneWithResponse(RequestOptions reque * Send a 200 response with payload {'statusCode': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1972,11 +2046,13 @@ public Mono> get200ModelA400ValidWithResponseAsync(RequestO * Send a 200 response with payload {'statusCode': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1995,11 +2071,13 @@ public Response get200ModelA400ValidWithResponse(RequestOptions requ * Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2019,11 +2097,13 @@ public Mono> get200ModelA400InvalidWithResponseAsync(Reques * Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2042,11 +2122,13 @@ public Response get200ModelA400InvalidWithResponse(RequestOptions re * Send a 202 response with payload {'statusCode': '202'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2066,11 +2148,13 @@ public Mono> get200ModelA202ValidWithResponseAsync(RequestO * Send a 202 response with payload {'statusCode': '202'}. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     statusCode: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/llcinitial/DpgAsyncClient.java b/protocol-tests/src/main/java/fixtures/llcinitial/DpgAsyncClient.java index 43a9d6ce90..99a3a4f08e 100644 --- a/protocol-tests/src/main/java/fixtures/llcinitial/DpgAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/llcinitial/DpgAsyncClient.java @@ -41,9 +41,11 @@ public final class DpgAsyncClient { * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> headNoParamsWithResponse(RequestOptions reques * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -95,9 +99,11 @@ public Mono> getRequiredWithResponse(String parameter, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -118,17 +124,21 @@ public Mono> putRequiredOptionalWithResponse(String require * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -156,9 +166,11 @@ public Mono> postParametersWithResponse(BinaryData paramete * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/llcinitial/DpgClient.java b/protocol-tests/src/main/java/fixtures/llcinitial/DpgClient.java index e1b7ef8367..87f3dbe7ba 100644 --- a/protocol-tests/src/main/java/fixtures/llcinitial/DpgClient.java +++ b/protocol-tests/src/main/java/fixtures/llcinitial/DpgClient.java @@ -40,9 +40,11 @@ public final class DpgClient { * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -93,9 +97,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -115,17 +121,21 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -153,9 +163,11 @@ public Response postParametersWithResponse(BinaryData parameter, Req * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/llcinitial/DpgClientBuilder.java b/protocol-tests/src/main/java/fixtures/llcinitial/DpgClientBuilder.java index f36cfc7849..d6249a7d6b 100644 --- a/protocol-tests/src/main/java/fixtures/llcinitial/DpgClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/llcinitial/DpgClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/llcinitial/implementation/ParamsImpl.java b/protocol-tests/src/main/java/fixtures/llcinitial/implementation/ParamsImpl.java index b52023c24e..c6cb623ad2 100644 --- a/protocol-tests/src/main/java/fixtures/llcinitial/implementation/ParamsImpl.java +++ b/protocol-tests/src/main/java/fixtures/llcinitial/implementation/ParamsImpl.java @@ -172,9 +172,11 @@ Response getOptionalSync(@HostParam("$host") String host, @HeaderPar * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -195,9 +197,11 @@ public Mono> headNoParamsWithResponseAsync(RequestOptions r * Initially has no query parameters. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,9 +221,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -243,9 +249,11 @@ public Mono> getRequiredWithResponseAsync(String parameter, * Initially only has one required Query Parameter. After evolution, a new optional query parameter is added. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -274,9 +282,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -306,9 +316,11 @@ public Mono> putRequiredOptionalWithResponseAsync(String re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -329,17 +341,21 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -361,17 +377,21 @@ public Mono> postParametersWithResponseAsync(BinaryData par * POST a JSON. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     url: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a body parameter. My only valid JSON entry is { url: "http://example.org/myimage.jpeg" }. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -399,9 +419,11 @@ public Response postParametersWithResponse(BinaryData parameter, Req * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -430,9 +452,11 @@ public Mono> getOptionalWithResponseAsync(RequestOptions re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/llcupdate1/DpgAsyncClient.java b/protocol-tests/src/main/java/fixtures/llcupdate1/DpgAsyncClient.java index 54f074a437..523eb8aa5b 100644 --- a/protocol-tests/src/main/java/fixtures/llcupdate1/DpgAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/llcupdate1/DpgAsyncClient.java @@ -48,9 +48,11 @@ public final class DpgAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -77,9 +79,11 @@ public Mono> headNoParamsWithResponse(RequestOptions reques * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,9 +114,11 @@ public Mono> getRequiredWithResponse(String parameter, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -133,15 +139,19 @@ public Mono> putRequiredOptionalWithResponse(String require * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -190,9 +200,11 @@ public Mono> deleteParametersWithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,9 +225,11 @@ public Mono> getOptionalWithResponse(RequestOptions request * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClient.java b/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClient.java index 1992d2d440..75bda82a3d 100644 --- a/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClient.java +++ b/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClient.java @@ -47,9 +47,11 @@ public final class DpgClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -76,9 +78,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,9 +112,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -130,15 +136,19 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -187,9 +197,11 @@ public Response deleteParametersWithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -210,9 +222,11 @@ public Response getOptionalWithResponse(RequestOptions requestOption * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClientBuilder.java b/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClientBuilder.java index 5ee8205ee0..1322e20026 100644 --- a/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/llcupdate1/DpgClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/llcupdate1/implementation/ParamsImpl.java b/protocol-tests/src/main/java/fixtures/llcupdate1/implementation/ParamsImpl.java index d2455bbfd5..316b218243 100644 --- a/protocol-tests/src/main/java/fixtures/llcupdate1/implementation/ParamsImpl.java +++ b/protocol-tests/src/main/java/fixtures/llcupdate1/implementation/ParamsImpl.java @@ -216,9 +216,11 @@ Response getNewOperationSync(@HostParam("$host") String host, @Heade * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -246,9 +248,11 @@ public Mono> headNoParamsWithResponseAsync(RequestOptions r * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -275,9 +279,11 @@ public Response headNoParamsWithResponse(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -308,9 +314,11 @@ public Mono> getRequiredWithResponseAsync(String parameter, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameter I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -340,9 +348,11 @@ public Response getRequiredWithResponse(String parameter, RequestOpt * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -373,9 +383,11 @@ public Mono> putRequiredOptionalWithResponseAsync(String re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requiredParam I am a required parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -396,15 +408,19 @@ public Response putRequiredOptionalWithResponse(String requiredParam * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -428,15 +444,19 @@ public Mono> postParametersWithResponseAsync(String content * POST a JSON or a JPEG. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param parameter I am a body parameter with a new content type. My only valid JSON entry is { url: @@ -502,9 +522,11 @@ public Response deleteParametersWithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -534,9 +556,11 @@ public Mono> getOptionalWithResponseAsync(RequestOptions re * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -557,9 +581,11 @@ public Response getOptionalWithResponse(RequestOptions requestOption * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -580,9 +606,11 @@ public Mono> getNewOperationWithResponseAsync(RequestOption * Initiallty neither path or method exist for this operation. After evolution, this is a new method in a new path. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LROsAsyncClient.java b/protocol-tests/src/main/java/fixtures/lro/LROsAsyncClient.java index 00ce271136..5abf14bead 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LROsAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LROsAsyncClient.java @@ -48,7 +48,8 @@ public final class LROsAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -62,11 +63,13 @@ public final class LROsAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -80,7 +83,8 @@ public final class LROsAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -108,7 +112,8 @@ public PollerFlux beginPut200Succeeded(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -122,11 +127,13 @@ public PollerFlux beginPut200Succeeded(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -140,7 +147,8 @@ public PollerFlux beginPut200Succeeded(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,7 +175,8 @@ public PollerFlux beginPatch200SucceededIgnoreHeaders(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -181,11 +190,13 @@ public PollerFlux beginPatch200SucceededIgnoreHeaders(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -199,7 +210,8 @@ public PollerFlux beginPatch200SucceededIgnoreHeaders(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -226,7 +238,8 @@ public PollerFlux beginPatch201RetryWithAsyncHeader(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -240,11 +253,13 @@ public PollerFlux beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -258,7 +273,8 @@ public PollerFlux beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -287,7 +303,8 @@ public PollerFlux beginPatch201RetryWithAsyncHeader(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -301,11 +318,13 @@ public PollerFlux beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -319,7 +338,8 @@ public PollerFlux beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -339,7 +359,8 @@ public PollerFlux beginPut201Succeeded(RequestOptions re * 'id': '100', 'name': 'foo' }]. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Optional)
@@ -355,7 +376,8 @@ public PollerFlux beginPut201Succeeded(RequestOptions re
      *         }
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -383,7 +405,8 @@ public PollerFlux beginPost202List(RequestOptions reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -397,11 +420,13 @@ public PollerFlux beginPost202List(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -415,7 +440,8 @@ public PollerFlux beginPost202List(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -443,7 +469,8 @@ public PollerFlux beginPut200SucceededNoState(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -457,11 +484,13 @@ public PollerFlux beginPut200SucceededNoState(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -475,7 +504,8 @@ public PollerFlux beginPut200SucceededNoState(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -504,7 +534,8 @@ public PollerFlux beginPut202Retry200(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -518,11 +549,13 @@ public PollerFlux beginPut202Retry200(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -536,7 +569,8 @@ public PollerFlux beginPut202Retry200(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -565,7 +599,8 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -579,11 +614,13 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -597,7 +634,8 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -626,7 +664,8 @@ public PollerFlux beginPut200UpdatingSucceeded204(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -640,11 +679,13 @@ public PollerFlux beginPut200UpdatingSucceeded204(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -658,7 +699,8 @@ public PollerFlux beginPut200UpdatingSucceeded204(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -687,7 +729,8 @@ public PollerFlux beginPut201CreatingFailed200(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -701,11 +744,13 @@ public PollerFlux beginPut201CreatingFailed200(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -719,7 +764,8 @@ public PollerFlux beginPut201CreatingFailed200(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -747,7 +793,8 @@ public PollerFlux beginPut200Acceptedcanceled200(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -761,11 +808,13 @@ public PollerFlux beginPut200Acceptedcanceled200(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -779,7 +828,8 @@ public PollerFlux beginPut200Acceptedcanceled200(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -808,7 +858,8 @@ public PollerFlux beginPutNoHeaderInRetry(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -822,11 +873,13 @@ public PollerFlux beginPutNoHeaderInRetry(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -840,7 +893,8 @@ public PollerFlux beginPutNoHeaderInRetry(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -869,7 +923,8 @@ public PollerFlux beginPutAsyncRetrySucceeded(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -883,11 +938,13 @@ public PollerFlux beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -901,7 +958,8 @@ public PollerFlux beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -930,7 +988,8 @@ public PollerFlux beginPutAsyncNoRetrySucceeded(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -944,11 +1003,13 @@ public PollerFlux beginPutAsyncNoRetrySucceeded(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -962,7 +1023,8 @@ public PollerFlux beginPutAsyncNoRetrySucceeded(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -991,7 +1053,8 @@ public PollerFlux beginPutAsyncRetryFailed(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1005,11 +1068,13 @@ public PollerFlux beginPutAsyncRetryFailed(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1023,7 +1088,8 @@ public PollerFlux beginPutAsyncRetryFailed(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1051,7 +1117,8 @@ public PollerFlux beginPutAsyncNoRetrycanceled(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1065,11 +1132,13 @@ public PollerFlux beginPutAsyncNoRetrycanceled(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1083,7 +1152,8 @@ public PollerFlux beginPutAsyncNoRetrycanceled(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1110,21 +1180,25 @@ public PollerFlux beginPutAsyncNoHeaderInRetry(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1151,21 +1225,25 @@ public PollerFlux beginPutNonResource(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1192,7 +1270,8 @@ public PollerFlux beginPutAsyncNonResource(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1200,11 +1279,13 @@ public PollerFlux beginPutAsyncNonResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1212,7 +1293,8 @@ public PollerFlux beginPutAsyncNonResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1239,7 +1321,8 @@ public PollerFlux beginPutSubResource(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1247,11 +1330,13 @@ public PollerFlux beginPutSubResource(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1259,7 +1344,8 @@ public PollerFlux beginPutSubResource(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1280,7 +1366,8 @@ public PollerFlux beginPutAsyncSubResource(RequestOption * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1294,7 +1381,8 @@ public PollerFlux beginPutAsyncSubResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1315,7 +1403,8 @@ public PollerFlux beginDeleteProvisioning202Accepted200Succeed * ProvisioningState=’Failed’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1329,7 +1418,8 @@ public PollerFlux beginDeleteProvisioning202Accepted200Succeed
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1350,7 +1440,8 @@ public PollerFlux beginDeleteProvisioning202DeletingFailed200( * ProvisioningState=’Canceled’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1364,7 +1455,8 @@ public PollerFlux beginDeleteProvisioning202DeletingFailed200(
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1400,7 +1492,8 @@ public PollerFlux beginDelete204Succeeded(RequestOptions reque * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1414,7 +1507,8 @@ public PollerFlux beginDelete204Succeeded(RequestOptions reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1434,7 +1528,8 @@ public PollerFlux beginDelete202Retry200(RequestOptions reques * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1448,7 +1543,8 @@ public PollerFlux beginDelete202Retry200(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1570,12 +1666,14 @@ public PollerFlux beginDeleteAsyncRetrycanceled(RequestOptions * 200 with a response body after success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1603,7 +1701,8 @@ public PollerFlux beginPost200WithPayload(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1617,7 +1716,8 @@ public PollerFlux beginPost200WithPayload(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1645,7 +1745,8 @@ public PollerFlux beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1659,11 +1760,13 @@ public PollerFlux beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1677,7 +1780,8 @@ public PollerFlux beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1697,7 +1801,8 @@ public PollerFlux beginPost202NoRetry204(RequestOptions * header. Poll Azure-Async and it's success. Should poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1711,7 +1816,8 @@ public PollerFlux beginPost202NoRetry204(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1731,7 +1837,8 @@ public PollerFlux beginPostDoubleHeadersFinalLocationGet * header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1745,7 +1852,8 @@ public PollerFlux beginPostDoubleHeadersFinalLocationGet
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1766,7 +1874,8 @@ public PollerFlux beginPostDoubleHeadersFinalAzureHeader * initial Autorest behavior. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1780,7 +1889,8 @@ public PollerFlux beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1810,7 +1920,8 @@ public PollerFlux beginPostDoubleHeadersFinalAzureHeader * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1824,11 +1935,13 @@ public PollerFlux beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1842,7 +1955,8 @@ public PollerFlux beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1871,7 +1985,8 @@ public PollerFlux beginPostAsyncRetrySucceeded(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1885,11 +2000,13 @@ public PollerFlux beginPostAsyncRetrySucceeded(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1903,7 +2020,8 @@ public PollerFlux beginPostAsyncRetrySucceeded(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1932,7 +2050,8 @@ public PollerFlux beginPostAsyncNoRetrySucceeded(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1946,7 +2065,8 @@ public PollerFlux beginPostAsyncNoRetrySucceeded(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1975,7 +2095,8 @@ public PollerFlux beginPostAsyncRetryFailed(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1989,7 +2110,8 @@ public PollerFlux beginPostAsyncRetryFailed(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LROsClient.java b/protocol-tests/src/main/java/fixtures/lro/LROsClient.java index 729bee0895..f397006db1 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LROsClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LROsClient.java @@ -48,7 +48,8 @@ public final class LROsClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -62,11 +63,13 @@ public final class LROsClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -80,7 +83,8 @@ public final class LROsClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -108,7 +112,8 @@ public SyncPoller beginPut200Succeeded(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -122,11 +127,13 @@ public SyncPoller beginPut200Succeeded(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -140,7 +147,8 @@ public SyncPoller beginPut200Succeeded(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,7 +175,8 @@ public SyncPoller beginPatch200SucceededIgnoreHeaders(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -181,11 +190,13 @@ public SyncPoller beginPatch200SucceededIgnoreHeaders(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -199,7 +210,8 @@ public SyncPoller beginPatch200SucceededIgnoreHeaders(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -226,7 +238,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -240,11 +253,13 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -258,7 +273,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -287,7 +303,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -301,11 +318,13 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -319,7 +338,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -339,7 +359,8 @@ public SyncPoller beginPut201Succeeded(RequestOptions re * 'id': '100', 'name': 'foo' }]. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Optional)
@@ -355,7 +376,8 @@ public SyncPoller beginPut201Succeeded(RequestOptions re
      *         }
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -383,7 +405,8 @@ public SyncPoller beginPost202List(RequestOptions reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -397,11 +420,13 @@ public SyncPoller beginPost202List(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -415,7 +440,8 @@ public SyncPoller beginPost202List(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -443,7 +469,8 @@ public SyncPoller beginPut200SucceededNoState(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -457,11 +484,13 @@ public SyncPoller beginPut200SucceededNoState(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -475,7 +504,8 @@ public SyncPoller beginPut200SucceededNoState(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -504,7 +534,8 @@ public SyncPoller beginPut202Retry200(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -518,11 +549,13 @@ public SyncPoller beginPut202Retry200(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -536,7 +569,8 @@ public SyncPoller beginPut202Retry200(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -565,7 +599,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -579,11 +614,13 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -597,7 +634,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -626,7 +664,8 @@ public SyncPoller beginPut200UpdatingSucceeded204(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -640,11 +679,13 @@ public SyncPoller beginPut200UpdatingSucceeded204(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -658,7 +699,8 @@ public SyncPoller beginPut200UpdatingSucceeded204(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -687,7 +729,8 @@ public SyncPoller beginPut201CreatingFailed200(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -701,11 +744,13 @@ public SyncPoller beginPut201CreatingFailed200(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -719,7 +764,8 @@ public SyncPoller beginPut201CreatingFailed200(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -747,7 +793,8 @@ public SyncPoller beginPut200Acceptedcanceled200(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -761,11 +808,13 @@ public SyncPoller beginPut200Acceptedcanceled200(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -779,7 +828,8 @@ public SyncPoller beginPut200Acceptedcanceled200(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -808,7 +858,8 @@ public SyncPoller beginPutNoHeaderInRetry(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -822,11 +873,13 @@ public SyncPoller beginPutNoHeaderInRetry(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -840,7 +893,8 @@ public SyncPoller beginPutNoHeaderInRetry(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -869,7 +923,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -883,11 +938,13 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -901,7 +958,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -930,7 +988,8 @@ public SyncPoller beginPutAsyncNoRetrySucceeded(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -944,11 +1003,13 @@ public SyncPoller beginPutAsyncNoRetrySucceeded(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -962,7 +1023,8 @@ public SyncPoller beginPutAsyncNoRetrySucceeded(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -991,7 +1053,8 @@ public SyncPoller beginPutAsyncRetryFailed(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1005,11 +1068,13 @@ public SyncPoller beginPutAsyncRetryFailed(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1023,7 +1088,8 @@ public SyncPoller beginPutAsyncRetryFailed(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1051,7 +1117,8 @@ public SyncPoller beginPutAsyncNoRetrycanceled(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1065,11 +1132,13 @@ public SyncPoller beginPutAsyncNoRetrycanceled(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1083,7 +1152,8 @@ public SyncPoller beginPutAsyncNoRetrycanceled(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1110,21 +1180,25 @@ public SyncPoller beginPutAsyncNoHeaderInRetry(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1151,21 +1225,25 @@ public SyncPoller beginPutNonResource(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1192,7 +1270,8 @@ public SyncPoller beginPutAsyncNonResource(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1200,11 +1279,13 @@ public SyncPoller beginPutAsyncNonResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1212,7 +1293,8 @@ public SyncPoller beginPutAsyncNonResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1239,7 +1321,8 @@ public SyncPoller beginPutSubResource(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1247,11 +1330,13 @@ public SyncPoller beginPutSubResource(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -1259,7 +1344,8 @@ public SyncPoller beginPutSubResource(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1280,7 +1366,8 @@ public SyncPoller beginPutAsyncSubResource(RequestOption * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1294,7 +1381,8 @@ public SyncPoller beginPutAsyncSubResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1315,7 +1403,8 @@ public SyncPoller beginDeleteProvisioning202Accepted200Succeed * ProvisioningState=’Failed’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1329,7 +1418,8 @@ public SyncPoller beginDeleteProvisioning202Accepted200Succeed
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1350,7 +1440,8 @@ public SyncPoller beginDeleteProvisioning202DeletingFailed200( * ProvisioningState=’Canceled’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1364,7 +1455,8 @@ public SyncPoller beginDeleteProvisioning202DeletingFailed200(
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1400,7 +1492,8 @@ public SyncPoller beginDelete204Succeeded(RequestOptions reque * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1414,7 +1507,8 @@ public SyncPoller beginDelete204Succeeded(RequestOptions reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1434,7 +1528,8 @@ public SyncPoller beginDelete202Retry200(RequestOptions reques * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1448,7 +1543,8 @@ public SyncPoller beginDelete202Retry200(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1570,12 +1666,14 @@ public SyncPoller beginDeleteAsyncRetrycanceled(RequestOptions * 200 with a response body after success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1603,7 +1701,8 @@ public SyncPoller beginPost200WithPayload(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1617,7 +1716,8 @@ public SyncPoller beginPost200WithPayload(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1645,7 +1745,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1659,11 +1760,13 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1677,7 +1780,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1697,7 +1801,8 @@ public SyncPoller beginPost202NoRetry204(RequestOptions * header. Poll Azure-Async and it's success. Should poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1711,7 +1816,8 @@ public SyncPoller beginPost202NoRetry204(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1731,7 +1837,8 @@ public SyncPoller beginPostDoubleHeadersFinalLocationGet * header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1745,7 +1852,8 @@ public SyncPoller beginPostDoubleHeadersFinalLocationGet
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1766,7 +1874,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * initial Autorest behavior. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1780,7 +1889,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1810,7 +1920,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1824,11 +1935,13 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1842,7 +1955,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1871,7 +1985,8 @@ public SyncPoller beginPostAsyncRetrySucceeded(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1885,11 +2000,13 @@ public SyncPoller beginPostAsyncRetrySucceeded(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1903,7 +2020,8 @@ public SyncPoller beginPostAsyncRetrySucceeded(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1932,7 +2050,8 @@ public SyncPoller beginPostAsyncNoRetrySucceeded(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1946,7 +2065,8 @@ public SyncPoller beginPostAsyncNoRetrySucceeded(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1975,7 +2095,8 @@ public SyncPoller beginPostAsyncRetryFailed(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1989,7 +2110,8 @@ public SyncPoller beginPostAsyncRetryFailed(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LROsClientBuilder.java b/protocol-tests/src/main/java/fixtures/lro/LROsClientBuilder.java index eac291adcf..8194d142e8 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LROsClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/lro/LROsClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/lro/LroRetrysAsyncClient.java b/protocol-tests/src/main/java/fixtures/lro/LroRetrysAsyncClient.java index 555477d240..dad4c006d2 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LroRetrysAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LroRetrysAsyncClient.java @@ -49,7 +49,8 @@ public final class LroRetrysAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -63,11 +64,13 @@ public final class LroRetrysAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -81,7 +84,8 @@ public final class LroRetrysAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -110,7 +114,8 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -124,11 +129,13 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -142,7 +149,8 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -163,7 +171,8 @@ public PollerFlux beginPutAsyncRelativeRetrySucceeded(Re * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -177,7 +186,8 @@ public PollerFlux beginPutAsyncRelativeRetrySucceeded(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -239,7 +249,8 @@ public PollerFlux beginDeleteAsyncRelativeRetrySucceeded(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -253,7 +264,8 @@ public PollerFlux beginDeleteAsyncRelativeRetrySucceeded(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -282,7 +294,8 @@ public PollerFlux beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -296,7 +309,8 @@ public PollerFlux beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LroRetrysClient.java b/protocol-tests/src/main/java/fixtures/lro/LroRetrysClient.java index ed972caa88..8051449c20 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LroRetrysClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LroRetrysClient.java @@ -49,7 +49,8 @@ public final class LroRetrysClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -63,11 +64,13 @@ public final class LroRetrysClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -81,7 +84,8 @@ public final class LroRetrysClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -110,7 +114,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -124,11 +129,13 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -142,7 +149,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -163,7 +171,8 @@ public SyncPoller beginPutAsyncRelativeRetrySucceeded(Re * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -177,7 +186,8 @@ public SyncPoller beginPutAsyncRelativeRetrySucceeded(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -239,7 +249,8 @@ public SyncPoller beginDeleteAsyncRelativeRetrySucceeded(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -253,7 +264,8 @@ public SyncPoller beginDeleteAsyncRelativeRetrySucceeded(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -282,7 +294,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -296,7 +309,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LroRetrysClientBuilder.java b/protocol-tests/src/main/java/fixtures/lro/LroRetrysClientBuilder.java index 0f2c882bc6..858f4acb75 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LroRetrysClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/lro/LroRetrysClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderAsyncClient.java b/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderAsyncClient.java index 91adc4af2e..71dd37adea 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderAsyncClient.java @@ -50,7 +50,8 @@ public final class LrosCustomHeaderAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -64,11 +65,13 @@ public final class LrosCustomHeaderAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -82,7 +85,8 @@ public final class LrosCustomHeaderAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -112,7 +116,8 @@ public PollerFlux beginPutAsyncRetrySucceeded(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -126,11 +131,13 @@ public PollerFlux beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -144,7 +151,8 @@ public PollerFlux beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -173,7 +181,8 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -187,7 +196,8 @@ public PollerFlux beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,7 +227,8 @@ public PollerFlux beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -231,7 +242,8 @@ public PollerFlux beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClient.java b/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClient.java index 8aabcab349..0bc6b04d8a 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClient.java @@ -50,7 +50,8 @@ public final class LrosCustomHeaderClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -64,11 +65,13 @@ public final class LrosCustomHeaderClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -82,7 +85,8 @@ public final class LrosCustomHeaderClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -112,7 +116,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -126,11 +131,13 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -144,7 +151,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -173,7 +181,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -187,7 +196,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,7 +227,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -231,7 +242,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClientBuilder.java b/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClientBuilder.java index 6870b4a412..d87cd21a22 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/lro/LrosCustomHeaderClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/lro/LrosaDsAsyncClient.java b/protocol-tests/src/main/java/fixtures/lro/LrosaDsAsyncClient.java index 4004b52ba7..c5ce704aed 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LrosaDsAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LrosaDsAsyncClient.java @@ -47,7 +47,8 @@ public final class LrosaDsAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -61,11 +62,13 @@ public final class LrosaDsAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -79,7 +82,8 @@ public final class LrosaDsAsyncClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -106,7 +110,8 @@ public PollerFlux beginPutNonRetry400(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -120,11 +125,13 @@ public PollerFlux beginPutNonRetry400(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -138,7 +145,8 @@ public PollerFlux beginPutNonRetry400(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,7 +173,8 @@ public PollerFlux beginPutNonRetry201Creating400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -179,11 +188,13 @@ public PollerFlux beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -197,7 +208,8 @@ public PollerFlux beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -225,7 +237,8 @@ public PollerFlux beginPutNonRetry201Creating400InvalidJ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -239,11 +252,13 @@ public PollerFlux beginPutNonRetry201Creating400InvalidJ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -257,7 +272,8 @@ public PollerFlux beginPutNonRetry201Creating400InvalidJ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -333,7 +349,8 @@ public PollerFlux beginDeleteAsyncRelativeRetry400(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -347,7 +364,8 @@ public PollerFlux beginDeleteAsyncRelativeRetry400(RequestOpti
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -374,7 +392,8 @@ public PollerFlux beginPostNonRetry400(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -388,7 +407,8 @@ public PollerFlux beginPostNonRetry400(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -416,7 +436,8 @@ public PollerFlux beginPost202NonRetry400(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -430,7 +451,8 @@ public PollerFlux beginPost202NonRetry400(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -457,7 +479,8 @@ public PollerFlux beginPostAsyncRelativeRetry400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -471,11 +494,13 @@ public PollerFlux beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -489,7 +514,8 @@ public PollerFlux beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -519,7 +545,8 @@ public PollerFlux beginPostAsyncRelativeRetry400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -533,11 +560,13 @@ public PollerFlux beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -551,7 +580,8 @@ public PollerFlux beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -580,7 +610,8 @@ public PollerFlux beginPutAsyncRelativeRetryNoStatus(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -594,11 +625,13 @@ public PollerFlux beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -612,7 +645,8 @@ public PollerFlux beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -672,7 +706,8 @@ public PollerFlux beginDeleteAsyncRelativeRetryNoStatus(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -686,7 +721,8 @@ public PollerFlux beginDeleteAsyncRelativeRetryNoStatus(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -715,7 +751,8 @@ public PollerFlux beginPost202NoLocation(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -729,7 +766,8 @@ public PollerFlux beginPost202NoLocation(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -756,7 +794,8 @@ public PollerFlux beginPostAsyncRelativeRetryNoPayload(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -770,11 +809,13 @@ public PollerFlux beginPostAsyncRelativeRetryNoPayload(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -788,7 +829,8 @@ public PollerFlux beginPostAsyncRelativeRetryNoPayload(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -816,7 +858,8 @@ public PollerFlux beginPut200InvalidJson(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -830,11 +873,13 @@ public PollerFlux beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -848,7 +893,8 @@ public PollerFlux beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -877,7 +923,8 @@ public PollerFlux beginPutAsyncRelativeRetryInvalidHeade * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -891,11 +938,13 @@ public PollerFlux beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -909,7 +958,8 @@ public PollerFlux beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -989,7 +1039,8 @@ public PollerFlux beginDeleteAsyncRelativeRetryInvalidJsonPoll * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1003,7 +1054,8 @@ public PollerFlux beginDeleteAsyncRelativeRetryInvalidJsonPoll
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1031,7 +1083,8 @@ public PollerFlux beginPost202RetryInvalidHeader(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1045,7 +1098,8 @@ public PollerFlux beginPost202RetryInvalidHeader(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1074,7 +1128,8 @@ public PollerFlux beginPostAsyncRelativeRetryInvalidHead * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1088,7 +1143,8 @@ public PollerFlux beginPostAsyncRelativeRetryInvalidHead
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LrosaDsClient.java b/protocol-tests/src/main/java/fixtures/lro/LrosaDsClient.java index 03e56cadbf..37e656bfa8 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LrosaDsClient.java +++ b/protocol-tests/src/main/java/fixtures/lro/LrosaDsClient.java @@ -47,7 +47,8 @@ public final class LrosaDsClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -61,11 +62,13 @@ public final class LrosaDsClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -79,7 +82,8 @@ public final class LrosaDsClient {
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -106,7 +110,8 @@ public SyncPoller beginPutNonRetry400(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -120,11 +125,13 @@ public SyncPoller beginPutNonRetry400(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -138,7 +145,8 @@ public SyncPoller beginPutNonRetry400(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,7 +173,8 @@ public SyncPoller beginPutNonRetry201Creating400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -179,11 +188,13 @@ public SyncPoller beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -197,7 +208,8 @@ public SyncPoller beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -225,7 +237,8 @@ public SyncPoller beginPutNonRetry201Creating400InvalidJ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -239,11 +252,13 @@ public SyncPoller beginPutNonRetry201Creating400InvalidJ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -257,7 +272,8 @@ public SyncPoller beginPutNonRetry201Creating400InvalidJ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -333,7 +349,8 @@ public SyncPoller beginDeleteAsyncRelativeRetry400(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -347,7 +364,8 @@ public SyncPoller beginDeleteAsyncRelativeRetry400(RequestOpti
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -374,7 +392,8 @@ public SyncPoller beginPostNonRetry400(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -388,7 +407,8 @@ public SyncPoller beginPostNonRetry400(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -416,7 +436,8 @@ public SyncPoller beginPost202NonRetry400(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -430,7 +451,8 @@ public SyncPoller beginPost202NonRetry400(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -457,7 +479,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -471,11 +494,13 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -489,7 +514,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -519,7 +545,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -533,11 +560,13 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -551,7 +580,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -580,7 +610,8 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -594,11 +625,13 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -612,7 +645,8 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -672,7 +706,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryNoStatus(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -686,7 +721,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryNoStatus(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -715,7 +751,8 @@ public SyncPoller beginPost202NoLocation(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -729,7 +766,8 @@ public SyncPoller beginPost202NoLocation(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -756,7 +794,8 @@ public SyncPoller beginPostAsyncRelativeRetryNoPayload(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -770,11 +809,13 @@ public SyncPoller beginPostAsyncRelativeRetryNoPayload(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -788,7 +829,8 @@ public SyncPoller beginPostAsyncRelativeRetryNoPayload(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -816,7 +858,8 @@ public SyncPoller beginPut200InvalidJson(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -830,11 +873,13 @@ public SyncPoller beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -848,7 +893,8 @@ public SyncPoller beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -877,7 +923,8 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -891,11 +938,13 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -909,7 +958,8 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -989,7 +1039,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryInvalidJsonPoll * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1003,7 +1054,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryInvalidJsonPoll
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1031,7 +1083,8 @@ public SyncPoller beginPost202RetryInvalidHeader(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1045,7 +1098,8 @@ public SyncPoller beginPost202RetryInvalidHeader(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1074,7 +1128,8 @@ public SyncPoller beginPostAsyncRelativeRetryInvalidHead * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1088,7 +1143,8 @@ public SyncPoller beginPostAsyncRelativeRetryInvalidHead
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/LrosaDsClientBuilder.java b/protocol-tests/src/main/java/fixtures/lro/LrosaDsClientBuilder.java index 53ee310e23..ee7041beaa 100644 --- a/protocol-tests/src/main/java/fixtures/lro/LrosaDsClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/lro/LrosaDsClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/lro/implementation/LROsImpl.java b/protocol-tests/src/main/java/fixtures/lro/implementation/LROsImpl.java index b33c8f000a..40a667bfdd 100644 --- a/protocol-tests/src/main/java/fixtures/lro/implementation/LROsImpl.java +++ b/protocol-tests/src/main/java/fixtures/lro/implementation/LROsImpl.java @@ -883,7 +883,8 @@ Response postAsyncRetrycanceledSync(@HostParam("$host") String host, @Head * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -897,11 +898,13 @@ Response postAsyncRetrycanceledSync(@HostParam("$host") String host, @Head
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -915,7 +918,8 @@ Response postAsyncRetrycanceledSync(@HostParam("$host") String host, @Head
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -950,7 +954,8 @@ private Mono> put200SucceededWithResponseAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -964,11 +969,13 @@ private Mono> put200SucceededWithResponseAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -982,7 +989,8 @@ private Mono> put200SucceededWithResponseAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1016,7 +1024,8 @@ private Response put200SucceededWithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1030,11 +1039,13 @@ private Response put200SucceededWithResponse(RequestOptions requestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1048,7 +1059,8 @@ private Response put200SucceededWithResponse(RequestOptions requestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1081,7 +1093,8 @@ public PollerFlux beginPut200SucceededAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1095,11 +1108,13 @@ public PollerFlux beginPut200SucceededAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1113,7 +1128,8 @@ public PollerFlux beginPut200SucceededAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1146,7 +1162,8 @@ public SyncPoller beginPut200Succeeded(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1160,11 +1177,13 @@ public SyncPoller beginPut200Succeeded(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1178,7 +1197,8 @@ public SyncPoller beginPut200Succeeded(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1213,7 +1233,8 @@ private Mono> patch200SucceededIgnoreHeadersWithResponseAsy * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1227,11 +1248,13 @@ private Mono> patch200SucceededIgnoreHeadersWithResponseAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1245,7 +1268,8 @@ private Mono> patch200SucceededIgnoreHeadersWithResponseAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1280,7 +1304,8 @@ private Response patch200SucceededIgnoreHeadersWithResponse(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1294,11 +1319,13 @@ private Response patch200SucceededIgnoreHeadersWithResponse(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1312,7 +1339,8 @@ private Response patch200SucceededIgnoreHeadersWithResponse(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1346,7 +1374,8 @@ public PollerFlux beginPatch200SucceededIgnoreHeadersAsy * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1360,11 +1389,13 @@ public PollerFlux beginPatch200SucceededIgnoreHeadersAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1378,7 +1409,8 @@ public PollerFlux beginPatch200SucceededIgnoreHeadersAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1411,7 +1443,8 @@ public SyncPoller beginPatch200SucceededIgnoreHeaders(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1425,11 +1458,13 @@ public SyncPoller beginPatch200SucceededIgnoreHeaders(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1443,7 +1478,8 @@ public SyncPoller beginPatch200SucceededIgnoreHeaders(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1477,7 +1513,8 @@ private Mono> patch201RetryWithAsyncHeaderWithResponseAsync * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1491,11 +1528,13 @@ private Mono> patch201RetryWithAsyncHeaderWithResponseAsync
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1509,7 +1548,8 @@ private Mono> patch201RetryWithAsyncHeaderWithResponseAsync
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1543,7 +1583,8 @@ private Response patch201RetryWithAsyncHeaderWithResponse(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1557,11 +1598,13 @@ private Response patch201RetryWithAsyncHeaderWithResponse(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1575,7 +1618,8 @@ private Response patch201RetryWithAsyncHeaderWithResponse(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1608,7 +1652,8 @@ public PollerFlux beginPatch201RetryWithAsyncHeaderAsync * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1622,11 +1667,13 @@ public PollerFlux beginPatch201RetryWithAsyncHeaderAsync
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1640,7 +1687,8 @@ public PollerFlux beginPatch201RetryWithAsyncHeaderAsync
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1673,7 +1721,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1687,11 +1736,13 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1705,7 +1756,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1740,7 +1792,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1754,11 +1807,13 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1772,7 +1827,8 @@ public SyncPoller beginPatch201RetryWithAsyncHeader(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1806,7 +1862,8 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1820,11 +1877,13 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1838,7 +1897,8 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1872,7 +1932,8 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1886,11 +1947,13 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1904,7 +1967,8 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1939,7 +2003,8 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1953,11 +2018,13 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1971,7 +2038,8 @@ private Response patch202RetryWithAsyncAndLocationHeaderWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2006,7 +2074,8 @@ private Mono> put201SucceededWithResponseAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2020,11 +2089,13 @@ private Mono> put201SucceededWithResponseAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2038,7 +2109,8 @@ private Mono> put201SucceededWithResponseAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2072,7 +2144,8 @@ private Response put201SucceededWithResponse(RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2086,11 +2159,13 @@ private Response put201SucceededWithResponse(RequestOptions requestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2104,7 +2179,8 @@ private Response put201SucceededWithResponse(RequestOptions requestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2137,7 +2213,8 @@ public PollerFlux beginPut201SucceededAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2151,11 +2228,13 @@ public PollerFlux beginPut201SucceededAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2169,7 +2248,8 @@ public PollerFlux beginPut201SucceededAsync(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2194,7 +2274,8 @@ public SyncPoller beginPut201Succeeded(RequestOptions re * 'id': '100', 'name': 'foo' }]. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Optional)
@@ -2210,7 +2291,8 @@ public SyncPoller beginPut201Succeeded(RequestOptions re
      *         }
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2231,7 +2313,8 @@ private Mono> post202ListWithResponseAsync(RequestOptions r * 'id': '100', 'name': 'foo' }]. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Optional)
@@ -2247,7 +2330,8 @@ private Mono> post202ListWithResponseAsync(RequestOptions r
      *         }
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2267,7 +2351,8 @@ private Response post202ListWithResponse(RequestOptions requestOptio * 'id': '100', 'name': 'foo' }]. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Optional)
@@ -2283,7 +2368,8 @@ private Response post202ListWithResponse(RequestOptions requestOptio
      *         }
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2308,7 +2394,8 @@ public PollerFlux beginPost202ListAsync(RequestOptions r * 'id': '100', 'name': 'foo' }]. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Optional)
@@ -2324,7 +2411,8 @@ public PollerFlux beginPost202ListAsync(RequestOptions r
      *         }
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2357,7 +2445,8 @@ public SyncPoller beginPost202List(RequestOptions reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2371,11 +2460,13 @@ public SyncPoller beginPost202List(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2389,7 +2480,8 @@ public SyncPoller beginPost202List(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2424,7 +2516,8 @@ private Mono> put200SucceededNoStateWithResponseAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2438,11 +2531,13 @@ private Mono> put200SucceededNoStateWithResponseAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2456,7 +2551,8 @@ private Mono> put200SucceededNoStateWithResponseAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2490,7 +2586,8 @@ private Response put200SucceededNoStateWithResponse(RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2504,11 +2601,13 @@ private Response put200SucceededNoStateWithResponse(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2522,7 +2621,8 @@ private Response put200SucceededNoStateWithResponse(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2556,7 +2656,8 @@ public PollerFlux beginPut200SucceededNoStateAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2570,11 +2671,13 @@ public PollerFlux beginPut200SucceededNoStateAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2588,7 +2691,8 @@ public PollerFlux beginPut200SucceededNoStateAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2622,7 +2726,8 @@ public SyncPoller beginPut200SucceededNoState(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2636,11 +2741,13 @@ public SyncPoller beginPut200SucceededNoState(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2654,7 +2761,8 @@ public SyncPoller beginPut200SucceededNoState(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2689,7 +2797,8 @@ private Mono> put202Retry200WithResponseAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2703,11 +2812,13 @@ private Mono> put202Retry200WithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2721,7 +2832,8 @@ private Mono> put202Retry200WithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2755,7 +2867,8 @@ private Response put202Retry200WithResponse(RequestOptions requestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2769,11 +2882,13 @@ private Response put202Retry200WithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2787,7 +2902,8 @@ private Response put202Retry200WithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2820,7 +2936,8 @@ public PollerFlux beginPut202Retry200Async(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2834,11 +2951,13 @@ public PollerFlux beginPut202Retry200Async(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2852,7 +2971,8 @@ public PollerFlux beginPut202Retry200Async(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2886,7 +3006,8 @@ public SyncPoller beginPut202Retry200(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2900,11 +3021,13 @@ public SyncPoller beginPut202Retry200(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2918,7 +3041,8 @@ public SyncPoller beginPut202Retry200(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2954,7 +3078,8 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2968,11 +3093,13 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2986,7 +3113,8 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3021,7 +3149,8 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3035,11 +3164,13 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3053,7 +3184,8 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3088,7 +3220,8 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3102,11 +3235,13 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3120,7 +3255,8 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3155,7 +3291,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3169,11 +3306,13 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3187,7 +3326,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3223,7 +3363,8 @@ private Mono> put200UpdatingSucceeded204WithResponseAsync(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3237,11 +3378,13 @@ private Mono> put200UpdatingSucceeded204WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3255,7 +3398,8 @@ private Mono> put200UpdatingSucceeded204WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3290,7 +3434,8 @@ private Response put200UpdatingSucceeded204WithResponse(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3304,11 +3449,13 @@ private Response put200UpdatingSucceeded204WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3322,7 +3469,8 @@ private Response put200UpdatingSucceeded204WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3357,7 +3505,8 @@ public PollerFlux beginPut200UpdatingSucceeded204Async(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3371,11 +3520,13 @@ public PollerFlux beginPut200UpdatingSucceeded204Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3389,7 +3540,8 @@ public PollerFlux beginPut200UpdatingSucceeded204Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3424,7 +3576,8 @@ public SyncPoller beginPut200UpdatingSucceeded204(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3438,11 +3591,13 @@ public SyncPoller beginPut200UpdatingSucceeded204(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3456,7 +3611,8 @@ public SyncPoller beginPut200UpdatingSucceeded204(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3492,7 +3648,8 @@ private Mono> put201CreatingFailed200WithResponseAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3506,11 +3663,13 @@ private Mono> put201CreatingFailed200WithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3524,7 +3683,8 @@ private Mono> put201CreatingFailed200WithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3559,7 +3719,8 @@ private Response put201CreatingFailed200WithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3573,11 +3734,13 @@ private Response put201CreatingFailed200WithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3591,7 +3754,8 @@ private Response put201CreatingFailed200WithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3626,7 +3790,8 @@ public PollerFlux beginPut201CreatingFailed200Async(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3640,11 +3805,13 @@ public PollerFlux beginPut201CreatingFailed200Async(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3658,7 +3825,8 @@ public PollerFlux beginPut201CreatingFailed200Async(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3693,7 +3861,8 @@ public SyncPoller beginPut201CreatingFailed200(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3707,11 +3876,13 @@ public SyncPoller beginPut201CreatingFailed200(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3725,7 +3896,8 @@ public SyncPoller beginPut201CreatingFailed200(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3761,7 +3933,8 @@ private Mono> put200Acceptedcanceled200WithResponseAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3775,11 +3948,13 @@ private Mono> put200Acceptedcanceled200WithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3793,7 +3968,8 @@ private Mono> put200Acceptedcanceled200WithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3828,7 +4004,8 @@ private Response put200Acceptedcanceled200WithResponse(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3842,11 +4019,13 @@ private Response put200Acceptedcanceled200WithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3860,7 +4039,8 @@ private Response put200Acceptedcanceled200WithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3895,7 +4075,8 @@ public PollerFlux beginPut200Acceptedcanceled200Async(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3909,11 +4090,13 @@ public PollerFlux beginPut200Acceptedcanceled200Async(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3927,7 +4110,8 @@ public PollerFlux beginPut200Acceptedcanceled200Async(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3961,7 +4145,8 @@ public SyncPoller beginPut200Acceptedcanceled200(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3975,11 +4160,13 @@ public SyncPoller beginPut200Acceptedcanceled200(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3993,7 +4180,8 @@ public SyncPoller beginPut200Acceptedcanceled200(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4028,7 +4216,8 @@ private Mono> putNoHeaderInRetryWithResponseAsync(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4042,11 +4231,13 @@ private Mono> putNoHeaderInRetryWithResponseAsync(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4060,7 +4251,8 @@ private Mono> putNoHeaderInRetryWithResponseAsync(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4094,7 +4286,8 @@ private Response putNoHeaderInRetryWithResponse(RequestOptions reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4108,11 +4301,13 @@ private Response putNoHeaderInRetryWithResponse(RequestOptions reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4126,7 +4321,8 @@ private Response putNoHeaderInRetryWithResponse(RequestOptions reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4159,7 +4355,8 @@ public PollerFlux beginPutNoHeaderInRetryAsync(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4173,11 +4370,13 @@ public PollerFlux beginPutNoHeaderInRetryAsync(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4191,7 +4390,8 @@ public PollerFlux beginPutNoHeaderInRetryAsync(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4225,7 +4425,8 @@ public SyncPoller beginPutNoHeaderInRetry(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4239,11 +4440,13 @@ public SyncPoller beginPutNoHeaderInRetry(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4257,7 +4460,8 @@ public SyncPoller beginPutNoHeaderInRetry(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4293,7 +4497,8 @@ private Mono> putAsyncRetrySucceededWithResponseAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4307,11 +4512,13 @@ private Mono> putAsyncRetrySucceededWithResponseAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4325,7 +4532,8 @@ private Mono> putAsyncRetrySucceededWithResponseAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4360,7 +4568,8 @@ private Response putAsyncRetrySucceededWithResponse(RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4374,11 +4583,13 @@ private Response putAsyncRetrySucceededWithResponse(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4392,7 +4603,8 @@ private Response putAsyncRetrySucceededWithResponse(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4427,7 +4639,8 @@ public PollerFlux beginPutAsyncRetrySucceededAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4441,11 +4654,13 @@ public PollerFlux beginPutAsyncRetrySucceededAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4459,7 +4674,8 @@ public PollerFlux beginPutAsyncRetrySucceededAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4494,7 +4710,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4508,11 +4725,13 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4526,7 +4745,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4562,7 +4782,8 @@ private Mono> putAsyncNoRetrySucceededWithResponseAsync(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4576,11 +4797,13 @@ private Mono> putAsyncNoRetrySucceededWithResponseAsync(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4594,7 +4817,8 @@ private Mono> putAsyncNoRetrySucceededWithResponseAsync(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4629,7 +4853,8 @@ private Response putAsyncNoRetrySucceededWithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4643,11 +4868,13 @@ private Response putAsyncNoRetrySucceededWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4661,7 +4888,8 @@ private Response putAsyncNoRetrySucceededWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4696,7 +4924,8 @@ public PollerFlux beginPutAsyncNoRetrySucceededAsync(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4710,11 +4939,13 @@ public PollerFlux beginPutAsyncNoRetrySucceededAsync(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4728,7 +4959,8 @@ public PollerFlux beginPutAsyncNoRetrySucceededAsync(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4763,7 +4995,8 @@ public SyncPoller beginPutAsyncNoRetrySucceeded(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4777,11 +5010,13 @@ public SyncPoller beginPutAsyncNoRetrySucceeded(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4795,7 +5030,8 @@ public SyncPoller beginPutAsyncNoRetrySucceeded(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4831,7 +5067,8 @@ private Mono> putAsyncRetryFailedWithResponseAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4845,11 +5082,13 @@ private Mono> putAsyncRetryFailedWithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4863,7 +5102,8 @@ private Mono> putAsyncRetryFailedWithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4898,7 +5138,8 @@ private Response putAsyncRetryFailedWithResponse(RequestOptions requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4912,11 +5153,13 @@ private Response putAsyncRetryFailedWithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4930,7 +5173,8 @@ private Response putAsyncRetryFailedWithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4964,7 +5208,8 @@ public PollerFlux beginPutAsyncRetryFailedAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4978,11 +5223,13 @@ public PollerFlux beginPutAsyncRetryFailedAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4996,7 +5243,8 @@ public PollerFlux beginPutAsyncRetryFailedAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5031,7 +5279,8 @@ public SyncPoller beginPutAsyncRetryFailed(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5045,11 +5294,13 @@ public SyncPoller beginPutAsyncRetryFailed(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5063,7 +5314,8 @@ public SyncPoller beginPutAsyncRetryFailed(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5099,7 +5351,8 @@ private Mono> putAsyncNoRetrycanceledWithResponseAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5113,11 +5366,13 @@ private Mono> putAsyncNoRetrycanceledWithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5131,7 +5386,8 @@ private Mono> putAsyncNoRetrycanceledWithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5166,7 +5422,8 @@ private Response putAsyncNoRetrycanceledWithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5180,11 +5437,13 @@ private Response putAsyncNoRetrycanceledWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5198,7 +5457,8 @@ private Response putAsyncNoRetrycanceledWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5233,7 +5493,8 @@ public PollerFlux beginPutAsyncNoRetrycanceledAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5247,11 +5508,13 @@ public PollerFlux beginPutAsyncNoRetrycanceledAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5265,7 +5528,8 @@ public PollerFlux beginPutAsyncNoRetrycanceledAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5299,7 +5563,8 @@ public SyncPoller beginPutAsyncNoRetrycanceled(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5313,11 +5578,13 @@ public SyncPoller beginPutAsyncNoRetrycanceled(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5331,7 +5598,8 @@ public SyncPoller beginPutAsyncNoRetrycanceled(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5366,7 +5634,8 @@ private Mono> putAsyncNoHeaderInRetryWithResponseAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5380,11 +5649,13 @@ private Mono> putAsyncNoHeaderInRetryWithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5398,7 +5669,8 @@ private Mono> putAsyncNoHeaderInRetryWithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5432,7 +5704,8 @@ private Response putAsyncNoHeaderInRetryWithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5446,11 +5719,13 @@ private Response putAsyncNoHeaderInRetryWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5464,7 +5739,8 @@ private Response putAsyncNoHeaderInRetryWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5498,7 +5774,8 @@ public PollerFlux beginPutAsyncNoHeaderInRetryAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5512,11 +5789,13 @@ public PollerFlux beginPutAsyncNoHeaderInRetryAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5530,7 +5809,8 @@ public PollerFlux beginPutAsyncNoHeaderInRetryAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5563,21 +5843,25 @@ public SyncPoller beginPutAsyncNoHeaderInRetry(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5611,21 +5895,25 @@ private Mono> putNonResourceWithResponseAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5658,21 +5946,25 @@ private Response putNonResourceWithResponse(RequestOptions requestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5704,21 +5996,25 @@ public PollerFlux beginPutNonResourceAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5750,21 +6046,25 @@ public SyncPoller beginPutNonResource(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5798,21 +6098,25 @@ private Mono> putAsyncNonResourceWithResponseAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5845,21 +6149,25 @@ private Response putAsyncNonResourceWithResponse(RequestOptions requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5891,21 +6199,25 @@ public PollerFlux beginPutAsyncNonResourceAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5938,7 +6250,8 @@ public SyncPoller beginPutAsyncNonResource(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -5946,11 +6259,13 @@ public SyncPoller beginPutAsyncNonResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -5958,7 +6273,8 @@ public SyncPoller beginPutAsyncNonResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5992,7 +6308,8 @@ private Mono> putSubResourceWithResponseAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6000,11 +6317,13 @@ private Mono> putSubResourceWithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6012,7 +6331,8 @@ private Mono> putSubResourceWithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6045,7 +6365,8 @@ private Response putSubResourceWithResponse(RequestOptions requestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6053,11 +6374,13 @@ private Response putSubResourceWithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6065,7 +6388,8 @@ private Response putSubResourceWithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6097,7 +6421,8 @@ public PollerFlux beginPutSubResourceAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6105,11 +6430,13 @@ public PollerFlux beginPutSubResourceAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6117,7 +6444,8 @@ public PollerFlux beginPutSubResourceAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6149,7 +6477,8 @@ public SyncPoller beginPutSubResource(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6157,11 +6486,13 @@ public SyncPoller beginPutSubResource(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6169,7 +6500,8 @@ public SyncPoller beginPutSubResource(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6203,7 +6535,8 @@ private Mono> putAsyncSubResourceWithResponseAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6211,11 +6544,13 @@ private Mono> putAsyncSubResourceWithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6223,7 +6558,8 @@ private Mono> putAsyncSubResourceWithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6256,7 +6592,8 @@ private Response putAsyncSubResourceWithResponse(RequestOptions requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6264,11 +6601,13 @@ private Response putAsyncSubResourceWithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6276,7 +6615,8 @@ private Response putAsyncSubResourceWithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6308,7 +6648,8 @@ public PollerFlux beginPutAsyncSubResourceAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6316,11 +6657,13 @@ public PollerFlux beginPutAsyncSubResourceAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     properties (Optional): {
@@ -6328,7 +6671,8 @@ public PollerFlux beginPutAsyncSubResourceAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6355,7 +6699,8 @@ public SyncPoller beginPutAsyncSubResource(RequestOption * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6369,7 +6714,8 @@ public SyncPoller beginPutAsyncSubResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6392,7 +6738,8 @@ public SyncPoller beginPutAsyncSubResource(RequestOption * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6406,7 +6753,8 @@ public SyncPoller beginPutAsyncSubResource(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6428,7 +6776,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6442,7 +6791,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6470,7 +6820,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6484,7 +6835,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6511,7 +6863,8 @@ public SyncPoller beginDeleteProvisioning202Accepted200Succeed * ProvisioningState=’Failed’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6525,7 +6878,8 @@ public SyncPoller beginDeleteProvisioning202Accepted200Succeed
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6548,7 +6902,8 @@ public SyncPoller beginDeleteProvisioning202Accepted200Succeed * ProvisioningState=’Failed’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6562,7 +6917,8 @@ public SyncPoller beginDeleteProvisioning202Accepted200Succeed
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6584,7 +6940,8 @@ private Response deleteProvisioning202DeletingFailed200WithResponse( * ProvisioningState=’Failed’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6598,7 +6955,8 @@ private Response deleteProvisioning202DeletingFailed200WithResponse(
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6626,7 +6984,8 @@ private Response deleteProvisioning202DeletingFailed200WithResponse( * ProvisioningState=’Failed’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6640,7 +6999,8 @@ private Response deleteProvisioning202DeletingFailed200WithResponse(
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6667,7 +7027,8 @@ public SyncPoller beginDeleteProvisioning202DeletingFailed200( * ProvisioningState=’Canceled’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6681,7 +7042,8 @@ public SyncPoller beginDeleteProvisioning202DeletingFailed200(
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6704,7 +7066,8 @@ public SyncPoller beginDeleteProvisioning202DeletingFailed200( * ProvisioningState=’Canceled’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6718,7 +7081,8 @@ public SyncPoller beginDeleteProvisioning202DeletingFailed200(
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6740,7 +7104,8 @@ private Response deleteProvisioning202Deletingcanceled200WithRespons * ProvisioningState=’Canceled’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6754,7 +7119,8 @@ private Response deleteProvisioning202Deletingcanceled200WithRespons
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6782,7 +7148,8 @@ private Response deleteProvisioning202Deletingcanceled200WithRespons * ProvisioningState=’Canceled’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6796,7 +7163,8 @@ private Response deleteProvisioning202Deletingcanceled200WithRespons
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6897,7 +7265,8 @@ public SyncPoller beginDelete204Succeeded(RequestOptions reque * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6911,7 +7280,8 @@ public SyncPoller beginDelete204Succeeded(RequestOptions reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6932,7 +7302,8 @@ private Mono> delete202Retry200WithResponseAsync(RequestOpt * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6946,7 +7317,8 @@ private Mono> delete202Retry200WithResponseAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -6966,7 +7338,8 @@ private Response delete202Retry200WithResponse(RequestOptions reques * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -6980,7 +7353,8 @@ private Response delete202Retry200WithResponse(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7005,7 +7379,8 @@ public PollerFlux beginDelete202Retry200Async(RequestOptions r * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7019,7 +7394,8 @@ public PollerFlux beginDelete202Retry200Async(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7044,7 +7420,8 @@ public SyncPoller beginDelete202Retry200(RequestOptions reques * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7058,7 +7435,8 @@ public SyncPoller beginDelete202Retry200(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7079,7 +7457,8 @@ private Mono> delete202NoRetry204WithResponseAsync(RequestO * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7093,7 +7472,8 @@ private Mono> delete202NoRetry204WithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7113,7 +7493,8 @@ private Response delete202NoRetry204WithResponse(RequestOptions requ * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7127,7 +7508,8 @@ private Response delete202NoRetry204WithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7152,7 +7534,8 @@ public PollerFlux beginDelete202NoRetry204Async(RequestOptions * poll returns a ‘200’ with ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7166,7 +7549,8 @@ public PollerFlux beginDelete202NoRetry204Async(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7678,12 +8062,14 @@ public SyncPoller beginDeleteAsyncRetrycanceled(RequestOptions * 200 with a response body after success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7704,12 +8090,14 @@ private Mono> post200WithPayloadWithResponseAsync(RequestOp * 200 with a response body after success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7729,12 +8117,14 @@ private Response post200WithPayloadWithResponse(RequestOptions reque * 200 with a response body after success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7759,12 +8149,14 @@ public PollerFlux beginPost200WithPayloadAsync(RequestOp * 200 with a response body after success. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      *     id: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7797,7 +8189,8 @@ public SyncPoller beginPost200WithPayload(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7811,7 +8204,8 @@ public SyncPoller beginPost200WithPayload(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7846,7 +8240,8 @@ private Mono> post202Retry200WithResponseAsync(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7860,7 +8255,8 @@ private Mono> post202Retry200WithResponseAsync(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7894,7 +8290,8 @@ private Response post202Retry200WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7908,7 +8305,8 @@ private Response post202Retry200WithResponse(RequestOptions requestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7941,7 +8339,8 @@ public PollerFlux beginPost202Retry200Async(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -7955,7 +8354,8 @@ public PollerFlux beginPost202Retry200Async(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -7988,7 +8388,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8002,11 +8403,13 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8020,7 +8423,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8055,7 +8459,8 @@ private Mono> post202NoRetry204WithResponseAsync(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8069,11 +8474,13 @@ private Mono> post202NoRetry204WithResponseAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8087,7 +8494,8 @@ private Mono> post202NoRetry204WithResponseAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8121,7 +8529,8 @@ private Response post202NoRetry204WithResponse(RequestOptions reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8135,11 +8544,13 @@ private Response post202NoRetry204WithResponse(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8153,7 +8564,8 @@ private Response post202NoRetry204WithResponse(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8186,7 +8598,8 @@ public PollerFlux beginPost202NoRetry204Async(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8200,11 +8613,13 @@ public PollerFlux beginPost202NoRetry204Async(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8218,7 +8633,8 @@ public PollerFlux beginPost202NoRetry204Async(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8243,7 +8659,8 @@ public SyncPoller beginPost202NoRetry204(RequestOptions * header. Poll Azure-Async and it's success. Should poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8257,7 +8674,8 @@ public SyncPoller beginPost202NoRetry204(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8279,7 +8697,8 @@ public SyncPoller beginPost202NoRetry204(RequestOptions * header. Poll Azure-Async and it's success. Should poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8293,7 +8712,8 @@ public SyncPoller beginPost202NoRetry204(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8314,7 +8734,8 @@ private Response postDoubleHeadersFinalLocationGetWithResponse(Reque * header. Poll Azure-Async and it's success. Should poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8328,7 +8749,8 @@ private Response postDoubleHeadersFinalLocationGetWithResponse(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8355,7 +8777,8 @@ private Response postDoubleHeadersFinalLocationGetWithResponse(Reque * header. Poll Azure-Async and it's success. Should poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8369,7 +8792,8 @@ private Response postDoubleHeadersFinalLocationGetWithResponse(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8395,7 +8819,8 @@ public SyncPoller beginPostDoubleHeadersFinalLocationGet * header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8409,7 +8834,8 @@ public SyncPoller beginPostDoubleHeadersFinalLocationGet
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8431,7 +8857,8 @@ public SyncPoller beginPostDoubleHeadersFinalLocationGet * header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8445,7 +8872,8 @@ public SyncPoller beginPostDoubleHeadersFinalLocationGet
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8466,7 +8894,8 @@ private Response postDoubleHeadersFinalAzureHeaderGetWithResponse(Re * header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8480,7 +8909,8 @@ private Response postDoubleHeadersFinalAzureHeaderGetWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8507,7 +8937,8 @@ private Response postDoubleHeadersFinalAzureHeaderGetWithResponse(Re * header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8521,7 +8952,8 @@ private Response postDoubleHeadersFinalAzureHeaderGetWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8548,7 +8980,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * initial Autorest behavior. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8562,7 +8995,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8585,7 +9019,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * initial Autorest behavior. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8599,7 +9034,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8622,7 +9058,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * initial Autorest behavior. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8636,7 +9073,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8664,7 +9102,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * initial Autorest behavior. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8678,7 +9117,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8714,7 +9154,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8728,11 +9169,13 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8746,7 +9189,8 @@ public SyncPoller beginPostDoubleHeadersFinalAzureHeader
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8782,7 +9226,8 @@ private Mono> postAsyncRetrySucceededWithResponseAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8796,11 +9241,13 @@ private Mono> postAsyncRetrySucceededWithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8814,7 +9261,8 @@ private Mono> postAsyncRetrySucceededWithResponseAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8849,7 +9297,8 @@ private Response postAsyncRetrySucceededWithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8863,11 +9312,13 @@ private Response postAsyncRetrySucceededWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8881,7 +9332,8 @@ private Response postAsyncRetrySucceededWithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8916,7 +9368,8 @@ public PollerFlux beginPostAsyncRetrySucceededAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8930,11 +9383,13 @@ public PollerFlux beginPostAsyncRetrySucceededAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8948,7 +9403,8 @@ public PollerFlux beginPostAsyncRetrySucceededAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -8983,7 +9439,8 @@ public SyncPoller beginPostAsyncRetrySucceeded(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -8997,11 +9454,13 @@ public SyncPoller beginPostAsyncRetrySucceeded(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9015,7 +9474,8 @@ public SyncPoller beginPostAsyncRetrySucceeded(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9051,7 +9511,8 @@ private Mono> postAsyncNoRetrySucceededWithResponseAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9065,11 +9526,13 @@ private Mono> postAsyncNoRetrySucceededWithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9083,7 +9546,8 @@ private Mono> postAsyncNoRetrySucceededWithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9118,7 +9582,8 @@ private Response postAsyncNoRetrySucceededWithResponse(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9132,11 +9597,13 @@ private Response postAsyncNoRetrySucceededWithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9150,7 +9617,8 @@ private Response postAsyncNoRetrySucceededWithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9185,7 +9653,8 @@ public PollerFlux beginPostAsyncNoRetrySucceededAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9199,11 +9668,13 @@ public PollerFlux beginPostAsyncNoRetrySucceededAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9217,7 +9688,8 @@ public PollerFlux beginPostAsyncNoRetrySucceededAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9252,7 +9724,8 @@ public SyncPoller beginPostAsyncNoRetrySucceeded(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9266,7 +9739,8 @@ public SyncPoller beginPostAsyncNoRetrySucceeded(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9302,7 +9776,8 @@ private Mono> postAsyncRetryFailedWithResponseAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9316,7 +9791,8 @@ private Mono> postAsyncRetryFailedWithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9351,7 +9827,8 @@ private Response postAsyncRetryFailedWithResponse(RequestOptions requestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9365,7 +9842,8 @@ private Response postAsyncRetryFailedWithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9400,7 +9878,8 @@ public PollerFlux beginPostAsyncRetryFailedAsync(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9414,7 +9893,8 @@ public PollerFlux beginPostAsyncRetryFailedAsync(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9449,7 +9929,8 @@ public SyncPoller beginPostAsyncRetryFailed(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9463,7 +9944,8 @@ public SyncPoller beginPostAsyncRetryFailed(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9499,7 +9981,8 @@ private Mono> postAsyncRetrycanceledWithResponseAsync(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9513,7 +9996,8 @@ private Mono> postAsyncRetrycanceledWithResponseAsync(RequestOpti
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9548,7 +10032,8 @@ private Response postAsyncRetrycanceledWithResponse(RequestOptions request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9562,7 +10047,8 @@ private Response postAsyncRetrycanceledWithResponse(RequestOptions request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -9597,7 +10083,8 @@ public PollerFlux beginPostAsyncRetrycanceledAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -9611,7 +10098,8 @@ public PollerFlux beginPostAsyncRetrycanceledAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/implementation/LroRetrysImpl.java b/protocol-tests/src/main/java/fixtures/lro/implementation/LroRetrysImpl.java index e3111ec7be..df5ccff55d 100644 --- a/protocol-tests/src/main/java/fixtures/lro/implementation/LroRetrysImpl.java +++ b/protocol-tests/src/main/java/fixtures/lro/implementation/LroRetrysImpl.java @@ -218,7 +218,8 @@ Response postAsyncRelativeRetrySucceededSync(@HostParam("$host") String ho * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -232,11 +233,13 @@ Response postAsyncRelativeRetrySucceededSync(@HostParam("$host") String ho
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -250,7 +253,8 @@ Response postAsyncRelativeRetrySucceededSync(@HostParam("$host") String ho
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -286,7 +290,8 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -300,11 +305,13 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -318,7 +325,8 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -353,7 +361,8 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -367,11 +376,13 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -385,7 +396,8 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -420,7 +432,8 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -434,11 +447,13 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -452,7 +467,8 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -487,7 +503,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -501,11 +518,13 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -519,7 +538,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -555,7 +575,8 @@ private Mono> putAsyncRelativeRetrySucceededWithResponseAsy * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -569,11 +590,13 @@ private Mono> putAsyncRelativeRetrySucceededWithResponseAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -587,7 +610,8 @@ private Mono> putAsyncRelativeRetrySucceededWithResponseAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -623,7 +647,8 @@ private Response putAsyncRelativeRetrySucceededWithResponse(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -637,11 +662,13 @@ private Response putAsyncRelativeRetrySucceededWithResponse(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -655,7 +682,8 @@ private Response putAsyncRelativeRetrySucceededWithResponse(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -690,7 +718,8 @@ public PollerFlux beginPutAsyncRelativeRetrySucceededAsy * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -704,11 +733,13 @@ public PollerFlux beginPutAsyncRelativeRetrySucceededAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -722,7 +753,8 @@ public PollerFlux beginPutAsyncRelativeRetrySucceededAsy
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -749,7 +781,8 @@ public SyncPoller beginPutAsyncRelativeRetrySucceeded(Re * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -763,7 +796,8 @@ public SyncPoller beginPutAsyncRelativeRetrySucceeded(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -786,7 +820,8 @@ public SyncPoller beginPutAsyncRelativeRetrySucceeded(Re * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -800,7 +835,8 @@ public SyncPoller beginPutAsyncRelativeRetrySucceeded(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -822,7 +858,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -836,7 +873,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -864,7 +902,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon * ProvisioningState=’Succeeded’. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -878,7 +917,8 @@ private Response deleteProvisioning202Accepted200SucceededWithRespon
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1073,7 +1113,8 @@ public SyncPoller beginDeleteAsyncRelativeRetrySucceeded(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1087,7 +1128,8 @@ public SyncPoller beginDeleteAsyncRelativeRetrySucceeded(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1122,7 +1164,8 @@ private Mono> post202Retry200WithResponseAsync(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1136,7 +1179,8 @@ private Mono> post202Retry200WithResponseAsync(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1170,7 +1214,8 @@ private Response post202Retry200WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1184,7 +1229,8 @@ private Response post202Retry200WithResponse(RequestOptions requestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1217,7 +1263,8 @@ public PollerFlux beginPost202Retry200Async(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1231,7 +1278,8 @@ public PollerFlux beginPost202Retry200Async(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1265,7 +1313,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1279,7 +1328,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1315,7 +1365,8 @@ private Mono> postAsyncRelativeRetrySucceededWithResponseAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1329,7 +1380,8 @@ private Mono> postAsyncRelativeRetrySucceededWithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1365,7 +1417,8 @@ private Response postAsyncRelativeRetrySucceededWithResponse(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1379,7 +1432,8 @@ private Response postAsyncRelativeRetrySucceededWithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1414,7 +1468,8 @@ public PollerFlux beginPostAsyncRelativeRetrySucceededAs * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1428,7 +1483,8 @@ public PollerFlux beginPostAsyncRelativeRetrySucceededAs
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/implementation/LrosCustomHeadersImpl.java b/protocol-tests/src/main/java/fixtures/lro/implementation/LrosCustomHeadersImpl.java index ecb51a06ef..4aaae8ca1d 100644 --- a/protocol-tests/src/main/java/fixtures/lro/implementation/LrosCustomHeadersImpl.java +++ b/protocol-tests/src/main/java/fixtures/lro/implementation/LrosCustomHeadersImpl.java @@ -164,7 +164,8 @@ Response postAsyncRetrySucceededSync(@HostParam("$host") String host, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -178,11 +179,13 @@ Response postAsyncRetrySucceededSync(@HostParam("$host") String host,
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -196,7 +199,8 @@ Response postAsyncRetrySucceededSync(@HostParam("$host") String host,
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -233,7 +237,8 @@ private Mono> putAsyncRetrySucceededWithResponseAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -247,11 +252,13 @@ private Mono> putAsyncRetrySucceededWithResponseAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -265,7 +272,8 @@ private Mono> putAsyncRetrySucceededWithResponseAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -301,7 +309,8 @@ private Response putAsyncRetrySucceededWithResponse(RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -315,11 +324,13 @@ private Response putAsyncRetrySucceededWithResponse(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -333,7 +344,8 @@ private Response putAsyncRetrySucceededWithResponse(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -369,7 +381,8 @@ public PollerFlux beginPutAsyncRetrySucceededAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -383,11 +396,13 @@ public PollerFlux beginPutAsyncRetrySucceededAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -401,7 +416,8 @@ public PollerFlux beginPutAsyncRetrySucceededAsync(Reque
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -437,7 +453,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -451,11 +468,13 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -469,7 +488,8 @@ public SyncPoller beginPutAsyncRetrySucceeded(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -506,7 +526,8 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -520,11 +541,13 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -538,7 +561,8 @@ private Mono> put201CreatingSucceeded200WithResponseAsync(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -574,7 +598,8 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -588,11 +613,13 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -606,7 +633,8 @@ private Response put201CreatingSucceeded200WithResponse(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -642,7 +670,8 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -656,11 +685,13 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -674,7 +705,8 @@ public PollerFlux beginPut201CreatingSucceeded200Async(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -709,7 +741,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -723,7 +756,8 @@ public SyncPoller beginPut201CreatingSucceeded200(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -759,7 +793,8 @@ private Mono> post202Retry200WithResponseAsync(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -773,7 +808,8 @@ private Mono> post202Retry200WithResponseAsync(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -808,7 +844,8 @@ private Response post202Retry200WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -822,7 +859,8 @@ private Response post202Retry200WithResponse(RequestOptions requestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -856,7 +894,8 @@ public PollerFlux beginPost202Retry200Async(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -870,7 +909,8 @@ public PollerFlux beginPost202Retry200Async(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -905,7 +945,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -919,7 +960,8 @@ public SyncPoller beginPost202Retry200(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -956,7 +998,8 @@ private Mono> postAsyncRetrySucceededWithResponseAsync(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -970,7 +1013,8 @@ private Mono> postAsyncRetrySucceededWithResponseAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1006,7 +1050,8 @@ private Response postAsyncRetrySucceededWithResponse(RequestOptions reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1020,7 +1065,8 @@ private Response postAsyncRetrySucceededWithResponse(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1056,7 +1102,8 @@ public PollerFlux beginPostAsyncRetrySucceededAsync(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1070,7 +1117,8 @@ public PollerFlux beginPostAsyncRetrySucceededAsync(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/lro/implementation/LrosaDsImpl.java b/protocol-tests/src/main/java/fixtures/lro/implementation/LrosaDsImpl.java index 83097ea374..9ee90f1f2e 100644 --- a/protocol-tests/src/main/java/fixtures/lro/implementation/LrosaDsImpl.java +++ b/protocol-tests/src/main/java/fixtures/lro/implementation/LrosaDsImpl.java @@ -557,7 +557,8 @@ Response postAsyncRelativeRetryInvalidJsonPollingSync(@HostParam("$host") * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -571,11 +572,13 @@ Response postAsyncRelativeRetryInvalidJsonPollingSync(@HostParam("$host")
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -589,7 +592,8 @@ Response postAsyncRelativeRetryInvalidJsonPollingSync(@HostParam("$host")
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -623,7 +627,8 @@ private Mono> putNonRetry400WithResponseAsync(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -637,11 +642,13 @@ private Mono> putNonRetry400WithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -655,7 +662,8 @@ private Mono> putNonRetry400WithResponseAsync(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -688,7 +696,8 @@ private Response putNonRetry400WithResponse(RequestOptions requestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -702,11 +711,13 @@ private Response putNonRetry400WithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -720,7 +731,8 @@ private Response putNonRetry400WithResponse(RequestOptions requestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -752,7 +764,8 @@ public PollerFlux beginPutNonRetry400Async(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -766,11 +779,13 @@ public PollerFlux beginPutNonRetry400Async(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -784,7 +799,8 @@ public PollerFlux beginPutNonRetry400Async(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -816,7 +832,8 @@ public SyncPoller beginPutNonRetry400(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -830,11 +847,13 @@ public SyncPoller beginPutNonRetry400(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -848,7 +867,8 @@ public SyncPoller beginPutNonRetry400(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -882,7 +902,8 @@ private Mono> putNonRetry201Creating400WithResponseAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -896,11 +917,13 @@ private Mono> putNonRetry201Creating400WithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -914,7 +937,8 @@ private Mono> putNonRetry201Creating400WithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -947,7 +971,8 @@ private Response putNonRetry201Creating400WithResponse(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -961,11 +986,13 @@ private Response putNonRetry201Creating400WithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -979,7 +1006,8 @@ private Response putNonRetry201Creating400WithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1012,7 +1040,8 @@ public PollerFlux beginPutNonRetry201Creating400Async(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1026,11 +1055,13 @@ public PollerFlux beginPutNonRetry201Creating400Async(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1044,7 +1075,8 @@ public PollerFlux beginPutNonRetry201Creating400Async(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1077,7 +1109,8 @@ public SyncPoller beginPutNonRetry201Creating400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1091,11 +1124,13 @@ public SyncPoller beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1109,7 +1144,8 @@ public SyncPoller beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1144,7 +1180,8 @@ public SyncPoller beginPutNonRetry201Creating400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1158,11 +1195,13 @@ public SyncPoller beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1176,7 +1215,8 @@ public SyncPoller beginPutNonRetry201Creating400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1210,7 +1250,8 @@ private Response putNonRetry201Creating400InvalidJsonWithResponse(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1224,11 +1265,13 @@ private Response putNonRetry201Creating400InvalidJsonWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1242,7 +1285,8 @@ private Response putNonRetry201Creating400InvalidJsonWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1276,7 +1320,8 @@ private Response putNonRetry201Creating400InvalidJsonWithResponse(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1290,11 +1335,13 @@ private Response putNonRetry201Creating400InvalidJsonWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1308,7 +1355,8 @@ private Response putNonRetry201Creating400InvalidJsonWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1342,7 +1390,8 @@ public SyncPoller beginPutNonRetry201Creating400InvalidJ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1356,11 +1405,13 @@ public SyncPoller beginPutNonRetry201Creating400InvalidJ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1374,7 +1425,8 @@ public SyncPoller beginPutNonRetry201Creating400InvalidJ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1409,7 +1461,8 @@ private Mono> putAsyncRelativeRetry400WithResponseAsync(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1423,11 +1476,13 @@ private Mono> putAsyncRelativeRetry400WithResponseAsync(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1441,7 +1496,8 @@ private Mono> putAsyncRelativeRetry400WithResponseAsync(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1475,7 +1531,8 @@ private Response putAsyncRelativeRetry400WithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1489,11 +1546,13 @@ private Response putAsyncRelativeRetry400WithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1507,7 +1566,8 @@ private Response putAsyncRelativeRetry400WithResponse(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1541,7 +1601,8 @@ public PollerFlux beginPutAsyncRelativeRetry400Async(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1555,11 +1616,13 @@ public PollerFlux beginPutAsyncRelativeRetry400Async(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1573,7 +1636,8 @@ public PollerFlux beginPutAsyncRelativeRetry400Async(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1839,7 +1903,8 @@ public SyncPoller beginDeleteAsyncRelativeRetry400(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1853,7 +1918,8 @@ public SyncPoller beginDeleteAsyncRelativeRetry400(RequestOpti
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1887,7 +1953,8 @@ private Mono> postNonRetry400WithResponseAsync(RequestOptions req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1901,7 +1968,8 @@ private Mono> postNonRetry400WithResponseAsync(RequestOptions req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1934,7 +2002,8 @@ private Response postNonRetry400WithResponse(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1948,7 +2017,8 @@ private Response postNonRetry400WithResponse(RequestOptions requestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1980,7 +2050,8 @@ public PollerFlux beginPostNonRetry400Async(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -1994,7 +2065,8 @@ public PollerFlux beginPostNonRetry400Async(RequestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2026,7 +2098,8 @@ public SyncPoller beginPostNonRetry400(RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2040,7 +2113,8 @@ public SyncPoller beginPostNonRetry400(RequestOptions re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2074,7 +2148,8 @@ private Mono> post202NonRetry400WithResponseAsync(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2088,7 +2163,8 @@ private Mono> post202NonRetry400WithResponseAsync(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2121,7 +2197,8 @@ private Response post202NonRetry400WithResponse(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2135,7 +2212,8 @@ private Response post202NonRetry400WithResponse(RequestOptions requestOpti
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2167,7 +2245,8 @@ public PollerFlux beginPost202NonRetry400Async(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2181,7 +2260,8 @@ public PollerFlux beginPost202NonRetry400Async(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2214,7 +2294,8 @@ public SyncPoller beginPost202NonRetry400(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2228,7 +2309,8 @@ public SyncPoller beginPost202NonRetry400(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2263,7 +2345,8 @@ private Mono> postAsyncRelativeRetry400WithResponseAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2277,7 +2360,8 @@ private Mono> postAsyncRelativeRetry400WithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2311,7 +2395,8 @@ private Response postAsyncRelativeRetry400WithResponse(RequestOptions requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2325,7 +2410,8 @@ private Response postAsyncRelativeRetry400WithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2359,7 +2445,8 @@ public PollerFlux beginPostAsyncRelativeRetry400Async(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2373,7 +2460,8 @@ public PollerFlux beginPostAsyncRelativeRetry400Async(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2406,7 +2494,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2420,11 +2509,13 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2438,7 +2529,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2473,7 +2565,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2487,11 +2580,13 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2505,7 +2600,8 @@ public SyncPoller beginPostAsyncRelativeRetry400(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2539,7 +2635,8 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2553,11 +2650,13 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2571,7 +2670,8 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2605,7 +2705,8 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2619,11 +2720,13 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2637,7 +2740,8 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2673,7 +2777,8 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2687,11 +2792,13 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2705,7 +2812,8 @@ private Response putError201NoProvisioningStatePayloadWithResponse(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2741,7 +2849,8 @@ private Mono> putAsyncRelativeRetryNoStatusWithResponseAsyn * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2755,11 +2864,13 @@ private Mono> putAsyncRelativeRetryNoStatusWithResponseAsyn
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2773,7 +2884,8 @@ private Mono> putAsyncRelativeRetryNoStatusWithResponseAsyn
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2809,7 +2921,8 @@ private Response putAsyncRelativeRetryNoStatusWithResponse(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2823,11 +2936,13 @@ private Response putAsyncRelativeRetryNoStatusWithResponse(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2841,7 +2956,8 @@ private Response putAsyncRelativeRetryNoStatusWithResponse(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2876,7 +2992,8 @@ public PollerFlux beginPutAsyncRelativeRetryNoStatusAsyn * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2890,11 +3007,13 @@ public PollerFlux beginPutAsyncRelativeRetryNoStatusAsyn
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2908,7 +3027,8 @@ public PollerFlux beginPutAsyncRelativeRetryNoStatusAsyn
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2943,7 +3063,8 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2957,11 +3078,13 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -2975,7 +3098,8 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3012,7 +3136,8 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3026,11 +3151,13 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3044,7 +3171,8 @@ public SyncPoller beginPutAsyncRelativeRetryNoStatus(Req
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3080,7 +3208,8 @@ private Response putAsyncRelativeRetryNoStatusPayloadWithResponse(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3094,11 +3223,13 @@ private Response putAsyncRelativeRetryNoStatusPayloadWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3112,7 +3243,8 @@ private Response putAsyncRelativeRetryNoStatusPayloadWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3148,7 +3280,8 @@ private Response putAsyncRelativeRetryNoStatusPayloadWithResponse(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3162,11 +3295,13 @@ private Response putAsyncRelativeRetryNoStatusPayloadWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3180,7 +3315,8 @@ private Response putAsyncRelativeRetryNoStatusPayloadWithResponse(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3370,7 +3506,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryNoStatus(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3384,7 +3521,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryNoStatus(Reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3418,7 +3556,8 @@ private Mono> post202NoLocationWithResponseAsync(RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3432,7 +3571,8 @@ private Mono> post202NoLocationWithResponseAsync(RequestOptions r
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3465,7 +3605,8 @@ private Response post202NoLocationWithResponse(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3479,7 +3620,8 @@ private Response post202NoLocationWithResponse(RequestOptions requestOptio
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3511,7 +3653,8 @@ public PollerFlux beginPost202NoLocationAsync(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3525,7 +3668,8 @@ public PollerFlux beginPost202NoLocationAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3559,7 +3703,8 @@ public SyncPoller beginPost202NoLocation(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3573,7 +3718,8 @@ public SyncPoller beginPost202NoLocation(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3609,7 +3755,8 @@ private Mono> postAsyncRelativeRetryNoPayloadWithResponseAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3623,7 +3770,8 @@ private Mono> postAsyncRelativeRetryNoPayloadWithResponseAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3659,7 +3807,8 @@ private Response postAsyncRelativeRetryNoPayloadWithResponse(RequestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3673,7 +3822,8 @@ private Response postAsyncRelativeRetryNoPayloadWithResponse(RequestOption
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3708,7 +3858,8 @@ public PollerFlux beginPostAsyncRelativeRetryNoPayloadAs * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3722,7 +3873,8 @@ public PollerFlux beginPostAsyncRelativeRetryNoPayloadAs
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3755,7 +3907,8 @@ public SyncPoller beginPostAsyncRelativeRetryNoPayload(R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3769,11 +3922,13 @@ public SyncPoller beginPostAsyncRelativeRetryNoPayload(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3787,7 +3942,8 @@ public SyncPoller beginPostAsyncRelativeRetryNoPayload(R
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3821,7 +3977,8 @@ private Mono> put200InvalidJsonWithResponseAsync(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3835,11 +3992,13 @@ private Mono> put200InvalidJsonWithResponseAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3853,7 +4012,8 @@ private Mono> put200InvalidJsonWithResponseAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3886,7 +4046,8 @@ private Response put200InvalidJsonWithResponse(RequestOptions reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3900,11 +4061,13 @@ private Response put200InvalidJsonWithResponse(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3918,7 +4081,8 @@ private Response put200InvalidJsonWithResponse(RequestOptions reques
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3950,7 +4114,8 @@ public PollerFlux beginPut200InvalidJsonAsync(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3964,11 +4129,13 @@ public PollerFlux beginPut200InvalidJsonAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -3982,7 +4149,8 @@ public PollerFlux beginPut200InvalidJsonAsync(RequestOpt
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4015,7 +4183,8 @@ public SyncPoller beginPut200InvalidJson(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4029,11 +4198,13 @@ public SyncPoller beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4047,7 +4218,8 @@ public SyncPoller beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4083,7 +4255,8 @@ public SyncPoller beginPut200InvalidJson(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4097,11 +4270,13 @@ public SyncPoller beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4115,7 +4290,8 @@ public SyncPoller beginPut200InvalidJson(RequestOptions
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4150,7 +4326,8 @@ private Response putAsyncRelativeRetryInvalidHeaderWithResponse(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4164,11 +4341,13 @@ private Response putAsyncRelativeRetryInvalidHeaderWithResponse(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4182,7 +4361,8 @@ private Response putAsyncRelativeRetryInvalidHeaderWithResponse(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4217,7 +4397,8 @@ private Response putAsyncRelativeRetryInvalidHeaderWithResponse(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4231,11 +4412,13 @@ private Response putAsyncRelativeRetryInvalidHeaderWithResponse(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4249,7 +4432,8 @@ private Response putAsyncRelativeRetryInvalidHeaderWithResponse(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4284,7 +4468,8 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4298,11 +4483,13 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4316,7 +4503,8 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4353,7 +4541,8 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4367,11 +4556,13 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4385,7 +4576,8 @@ public SyncPoller beginPutAsyncRelativeRetryInvalidHeade
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4421,7 +4613,8 @@ private Response putAsyncRelativeRetryInvalidJsonPollingWithResponse * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4435,11 +4628,13 @@ private Response putAsyncRelativeRetryInvalidJsonPollingWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4453,7 +4648,8 @@ private Response putAsyncRelativeRetryInvalidJsonPollingWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4489,7 +4685,8 @@ private Response putAsyncRelativeRetryInvalidJsonPollingWithResponse * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4503,11 +4700,13 @@ private Response putAsyncRelativeRetryInvalidJsonPollingWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4521,7 +4720,8 @@ private Response putAsyncRelativeRetryInvalidJsonPollingWithResponse
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4803,7 +5003,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryInvalidJsonPoll * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4817,7 +5018,8 @@ public SyncPoller beginDeleteAsyncRelativeRetryInvalidJsonPoll
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4852,7 +5054,8 @@ private Mono> post202RetryInvalidHeaderWithResponseAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4866,7 +5069,8 @@ private Mono> post202RetryInvalidHeaderWithResponseAsync(RequestO
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4900,7 +5104,8 @@ private Response post202RetryInvalidHeaderWithResponse(RequestOptions requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4914,7 +5119,8 @@ private Response post202RetryInvalidHeaderWithResponse(RequestOptions requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4948,7 +5154,8 @@ public PollerFlux beginPost202RetryInvalidHeaderAsync(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -4962,7 +5169,8 @@ public PollerFlux beginPost202RetryInvalidHeaderAsync(Re
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4996,7 +5204,8 @@ public SyncPoller beginPost202RetryInvalidHeader(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5010,7 +5219,8 @@ public SyncPoller beginPost202RetryInvalidHeader(Request
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5045,7 +5255,8 @@ private Mono> postAsyncRelativeRetryInvalidHeaderWithResponseAsyn * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5059,7 +5270,8 @@ private Mono> postAsyncRelativeRetryInvalidHeaderWithResponseAsyn
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5094,7 +5306,8 @@ private Response postAsyncRelativeRetryInvalidHeaderWithResponse(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5108,7 +5321,8 @@ private Response postAsyncRelativeRetryInvalidHeaderWithResponse(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5143,7 +5357,8 @@ private Response postAsyncRelativeRetryInvalidHeaderWithResponse(RequestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5157,7 +5372,8 @@ private Response postAsyncRelativeRetryInvalidHeaderWithResponse(RequestOp
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5192,7 +5408,8 @@ public SyncPoller beginPostAsyncRelativeRetryInvalidHead * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5206,7 +5423,8 @@ public SyncPoller beginPostAsyncRelativeRetryInvalidHead
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5243,7 +5461,8 @@ public SyncPoller beginPostAsyncRelativeRetryInvalidHead * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5257,7 +5476,8 @@ public SyncPoller beginPostAsyncRelativeRetryInvalidHead
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5293,7 +5513,8 @@ private Response postAsyncRelativeRetryInvalidJsonPollingWithResponse(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5307,7 +5528,8 @@ private Response postAsyncRelativeRetryInvalidJsonPollingWithResponse(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -5343,7 +5565,8 @@ private Response postAsyncRelativeRetryInvalidJsonPollingWithResponse(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Optional)
      *     type: String (Optional)
@@ -5357,7 +5580,8 @@ private Response postAsyncRelativeRetryInvalidJsonPollingWithResponse(Requ
      *         provisioningStateValues: String(Succeeded/Failed/canceled/Accepted/Creating/Created/Updating/Updated/Deleting/Deleted/OK) (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesAsyncClient.java b/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesAsyncClient.java index 30f6d76392..10e3ad0037 100644 --- a/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesAsyncClient.java @@ -40,15 +40,19 @@ public final class MediaTypesAsyncClient { * Analyze body, that could be different media types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -68,9 +72,11 @@ public Mono> analyzeBodyWithResponse(String contentType, Re * Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -99,15 +105,19 @@ public Mono> analyzeBodyNoAcceptHeaderWithResponse(String content * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,15 +137,19 @@ public Mono> contentTypeWithEncodingWithResponse(RequestOpt * byte stream of 'hello, world!' for application/octet-stream. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -158,15 +172,19 @@ public Mono> binaryBodyWithTwoContentTypesWithResponse(Stri * world'} with content type 'application/json' and a byte string for 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream", * "text/plain". @@ -192,15 +210,19 @@ public Mono> binaryBodyWithThreeContentTypesWithResponse(St * 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/octet-stream", "text/plain", * "application/json". @@ -223,15 +245,19 @@ public Mono> bodyThreeTypesWithResponse(String contentType, * Body that's either text/plain or application/json. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param message The payload body. diff --git a/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClient.java b/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClient.java index 44ab514012..49cf3e6e77 100644 --- a/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClient.java +++ b/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClient.java @@ -39,15 +39,19 @@ public final class MediaTypesClient { * Analyze body, that could be different media types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -67,9 +71,11 @@ public Response analyzeBodyWithResponse(String contentType, RequestO * Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -97,15 +103,19 @@ public Response analyzeBodyNoAcceptHeaderWithResponse(String contentType, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -125,15 +135,19 @@ public Response contentTypeWithEncodingWithResponse(RequestOptions r * byte stream of 'hello, world!' for application/octet-stream. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -156,15 +170,19 @@ public Response binaryBodyWithTwoContentTypesWithResponse(String con * world'} with content type 'application/json' and a byte string for 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream", * "text/plain". @@ -189,15 +207,19 @@ public Response binaryBodyWithThreeContentTypesWithResponse(String c * 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/octet-stream", "text/plain", * "application/json". @@ -220,15 +242,19 @@ public Response bodyThreeTypesWithResponse(String contentType, Binar * Body that's either text/plain or application/json. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param message The payload body. diff --git a/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java b/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java index 71bd4b90ab..3cbda1bd56 100644 --- a/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/mediatypes/implementation/MediaTypesClientImpl.java b/protocol-tests/src/main/java/fixtures/mediatypes/implementation/MediaTypesClientImpl.java index 4585594753..0b931ac5ac 100644 --- a/protocol-tests/src/main/java/fixtures/mediatypes/implementation/MediaTypesClientImpl.java +++ b/protocol-tests/src/main/java/fixtures/mediatypes/implementation/MediaTypesClientImpl.java @@ -286,15 +286,19 @@ Response putTextAndJsonBodySync(@HostParam("$host") String host, * Analyze body, that could be different media types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -315,15 +319,19 @@ public Mono> analyzeBodyWithResponseAsync(String contentTyp * Analyze body, that could be different media types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -343,9 +351,11 @@ public Response analyzeBodyWithResponse(String contentType, RequestO * Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -366,9 +376,11 @@ public Mono> analyzeBodyNoAcceptHeaderWithResponseAsync(String co * Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -395,15 +407,19 @@ public Response analyzeBodyNoAcceptHeaderWithResponse(String contentType, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -437,15 +453,19 @@ public Mono> contentTypeWithEncodingWithResponseAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -471,15 +491,19 @@ public Response contentTypeWithEncodingWithResponse(RequestOptions r * byte stream of 'hello, world!' for application/octet-stream. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -503,15 +527,19 @@ public Mono> binaryBodyWithTwoContentTypesWithResponseAsync * byte stream of 'hello, world!' for application/octet-stream. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -535,15 +563,19 @@ public Response binaryBodyWithTwoContentTypesWithResponse(String con * world'} with content type 'application/json' and a byte string for 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream", * "text/plain". @@ -568,15 +600,19 @@ public Mono> binaryBodyWithThreeContentTypesWithResponseAsy * world'} with content type 'application/json' and a byte string for 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream", * "text/plain". @@ -602,15 +638,19 @@ public Response binaryBodyWithThreeContentTypesWithResponse(String c * 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/octet-stream", "text/plain", * "application/json". @@ -636,15 +676,19 @@ public Mono> bodyThreeTypesWithResponseAsync(String content * 'application/octet-stream'. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/octet-stream", "text/plain", * "application/json". @@ -667,15 +711,19 @@ public Response bodyThreeTypesWithResponse(String contentType, Binar * Body that's either text/plain or application/json. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param message The payload body. @@ -698,15 +746,19 @@ public Mono> putTextAndJsonBodyWithResponseAsync(String con * Body that's either text/plain or application/json. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param message The payload body. diff --git a/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesAsyncClient.java b/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesAsyncClient.java index 6b99fd7302..c8a07035fc 100644 --- a/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesAsyncClient.java @@ -40,15 +40,19 @@ public final class DpgMultiMediaTypesAsyncClient { * json and binary types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -70,15 +74,19 @@ public Mono> jsonAndBinaryTypesJsonFirstWithResponse(String * json and binary types with binary type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -100,15 +108,19 @@ public Mono> jsonAndBinaryTypesBinaryFirstWithResponse(Stri * json and octet media types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -130,15 +142,19 @@ public Mono> jsonAndOctectWithJsonFirstWithResponse(String * json and octet media types with octet type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -160,15 +176,19 @@ public Mono> jsonAndOctectWithOctetFirstWithResponse(String * json and encoding types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param message The payload body. @@ -190,15 +210,19 @@ public Mono> jsonAndEncodingWithJsonFirstWithResponse(Strin * json and encoding types with encoding type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param input Input parameter. @@ -220,15 +244,19 @@ public Mono> jsonAndEncodingWithEncodingFirstWithResponse(S * json and text types with text type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -250,15 +278,19 @@ public Mono> jsonAndTextWithTextFirstWithResponse(String co * json and text types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -280,15 +312,19 @@ public Mono> jsonAndTextWithJsonFirstWithResponse(String co * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -310,15 +346,19 @@ public Mono> jsonAndImageWithJsonFirstWithResponse(String c * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -348,15 +388,19 @@ public Mono> jsonAndImageObjectTypeWithJsonFirstWithRespons * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -375,15 +419,19 @@ public Mono> imageTypeWithNonRequiredBodyWithResponse(Reque * json and image types with non-required body and json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -413,15 +461,19 @@ public Mono> jsonAndImageBinaryTypeJsonFirstWithNonRequired * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClient.java b/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClient.java index f11ce1a09d..d8a326ea2e 100644 --- a/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClient.java +++ b/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClient.java @@ -39,15 +39,19 @@ public final class DpgMultiMediaTypesClient { * json and binary types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -69,15 +73,19 @@ public Response jsonAndBinaryTypesJsonFirstWithResponse(String conte * json and binary types with binary type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -99,15 +107,19 @@ public Response jsonAndBinaryTypesBinaryFirstWithResponse(String con * json and octet media types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -129,15 +141,19 @@ public Response jsonAndOctectWithJsonFirstWithResponse(String conten * json and octet media types with octet type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -159,15 +175,19 @@ public Response jsonAndOctectWithOctetFirstWithResponse(String conte * json and encoding types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param message The payload body. @@ -189,15 +209,19 @@ public Response jsonAndEncodingWithJsonFirstWithResponse(String cont * json and encoding types with encoding type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param input Input parameter. @@ -219,15 +243,19 @@ public Response jsonAndEncodingWithEncodingFirstWithResponse(String * json and text types with text type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -249,15 +277,19 @@ public Response jsonAndTextWithTextFirstWithResponse(String contentT * json and text types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -279,15 +311,19 @@ public Response jsonAndTextWithJsonFirstWithResponse(String contentT * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -309,15 +345,19 @@ public Response jsonAndImageWithJsonFirstWithResponse(String content * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -346,15 +386,19 @@ public Response jsonAndImageObjectTypeWithJsonFirstWithResponse(Stri * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -373,15 +417,19 @@ public Response imageTypeWithNonRequiredBodyWithResponse(RequestOpti * json and image types with non-required body and json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -411,15 +459,19 @@ public Response jsonAndImageBinaryTypeJsonFirstWithNonRequiredBodyWi * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClientBuilder.java b/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClientBuilder.java index 2de2efb681..bd0616683f 100644 --- a/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/multimediatypes/DpgMultiMediaTypesClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/multimediatypes/implementation/DpgMultiMediaTypesClientImpl.java b/protocol-tests/src/main/java/fixtures/multimediatypes/implementation/DpgMultiMediaTypesClientImpl.java index 44296762cf..320c757606 100644 --- a/protocol-tests/src/main/java/fixtures/multimediatypes/implementation/DpgMultiMediaTypesClientImpl.java +++ b/protocol-tests/src/main/java/fixtures/multimediatypes/implementation/DpgMultiMediaTypesClientImpl.java @@ -408,15 +408,19 @@ Response jsonAndImageObjectTypeJsonFirstWithNonRequiredBodySync(@Hos * json and binary types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -439,15 +443,19 @@ public Mono> jsonAndBinaryTypesJsonFirstWithResponseAsync(S * json and binary types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -470,15 +478,19 @@ public Response jsonAndBinaryTypesJsonFirstWithResponse(String conte * json and binary types with binary type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -501,15 +513,19 @@ public Mono> jsonAndBinaryTypesBinaryFirstWithResponseAsync * json and binary types with binary type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/pdf", "image/jpeg", "image/png", "image/tiff". * @param input Input parameter. @@ -532,15 +548,19 @@ public Response jsonAndBinaryTypesBinaryFirstWithResponse(String con * json and octet media types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -563,15 +583,19 @@ public Mono> jsonAndOctectWithJsonFirstWithResponseAsync(St * json and octet media types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -594,15 +618,19 @@ public Response jsonAndOctectWithJsonFirstWithResponse(String conten * json and octet media types with octet type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -625,15 +653,19 @@ public Mono> jsonAndOctectWithOctetFirstWithResponseAsync(S * json and octet media types with octet type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "application/octet-stream". * @param message The payload body. @@ -656,15 +688,19 @@ public Response jsonAndOctectWithOctetFirstWithResponse(String conte * json and encoding types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param message The payload body. @@ -687,15 +723,19 @@ public Mono> jsonAndEncodingWithJsonFirstWithResponseAsync( * json and encoding types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param message The payload body. @@ -718,15 +758,19 @@ public Response jsonAndEncodingWithJsonFirstWithResponse(String cont * json and encoding types with encoding type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param input Input parameter. @@ -749,15 +793,19 @@ public Mono> jsonAndEncodingWithEncodingFirstWithResponseAs * json and encoding types with encoding type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain; charset=UTF-8". * @param input Input parameter. @@ -780,15 +828,19 @@ public Response jsonAndEncodingWithEncodingFirstWithResponse(String * json and text types with text type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -811,15 +863,19 @@ public Mono> jsonAndTextWithTextFirstWithResponseAsync(Stri * json and text types with text type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -842,15 +898,19 @@ public Response jsonAndTextWithTextFirstWithResponse(String contentT * json and text types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -873,15 +933,19 @@ public Mono> jsonAndTextWithJsonFirstWithResponseAsync(Stri * json and text types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "text/plain". * @param input Input parameter. @@ -904,15 +968,19 @@ public Response jsonAndTextWithJsonFirstWithResponse(String contentT * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -935,15 +1003,19 @@ public Mono> jsonAndImageWithJsonFirstWithResponseAsync(Str * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -966,15 +1038,19 @@ public Response jsonAndImageWithJsonFirstWithResponse(String content * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -997,15 +1073,19 @@ public Mono> jsonAndImageObjectTypeWithJsonFirstWithRespons * json and image types with json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType The content type. Allowed values: "application/json", "image/jpeg". * @param input Input parameter. @@ -1035,15 +1115,19 @@ public Response jsonAndImageObjectTypeWithJsonFirstWithResponse(Stri * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1076,15 +1160,19 @@ public Mono> imageTypeWithNonRequiredBodyWithResponseAsync( * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1109,15 +1197,19 @@ public Response imageTypeWithNonRequiredBodyWithResponse(RequestOpti * json and image types with non-required body and json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1140,15 +1232,19 @@ public Mono> jsonAndImageBinaryTypeJsonFirstWithNonRequired * json and image types with non-required body and json type first. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param contentType Upload file type. Allowed values: "application/json", "image/jpeg". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1178,15 +1274,19 @@ public Response jsonAndImageBinaryTypeJsonFirstWithNonRequiredBodyWi * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1215,15 +1315,19 @@ public Response jsonAndImageBinaryTypeJsonFirstWithNonRequiredBodyWi * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceAsyncClient.java b/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceAsyncClient.java index 28fdc73f99..e3602fec6f 100644 --- a/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceAsyncClient.java @@ -39,14 +39,16 @@ public final class AutoRestPagingTestServiceAsyncClient { * A paging operation that must return result of the default 'value' node. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,14 +67,16 @@ public PagedFlux getNoItemNamePages(RequestOptions requestOptions) { * A paging operation that gets an empty next link and should stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -91,14 +95,16 @@ public PagedFlux getEmptyNextLinkNamePages(RequestOptions requestOpt * A paging operation that must ignore any kind of nextLink, and stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -117,14 +123,16 @@ public PagedFlux getNullNextLinkNamePages(RequestOptions requestOpti * A paging operation that finishes on the first call without a nextlink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -143,22 +151,26 @@ public PagedFlux getSinglePages(RequestOptions requestOptions) { * A paging operation that finishes on the first call with body params without a nextlink. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param parameters put {'name': 'body'} to pass the test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -179,14 +191,16 @@ public PagedFlux getSinglePagesWithBodyParams(BinaryData parameters, * call, will give you an items list of 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,14 +230,16 @@ public PagedFlux firstResponseEmpty(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -243,14 +259,16 @@ public PagedFlux getMultiplePages(RequestOptions requestOptions) { * nextOperationWithQueryParams. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requiredQueryParameter A required integer query parameter. Put in value '100' to pass test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -278,14 +296,16 @@ public PagedFlux getWithQueryParams(int requiredQueryParameter, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -304,14 +324,16 @@ public PagedFlux duplicateParams(RequestOptions requestOptions) { * Paging with max page size. We don't want to. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -341,14 +363,16 @@ public PagedFlux pageWithMaxPageSize(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -378,14 +402,16 @@ public PagedFlux getOdataMultiplePages(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param offset Offset of return value. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -406,14 +432,16 @@ public PagedFlux getMultiplePagesWithOffset(int offset, RequestOptio * nextLink that has 10 pages. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -433,14 +461,16 @@ public PagedFlux getMultiplePagesRetryFirst(RequestOptions requestOp * client should retry and finish all 10 pages eventually. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -459,14 +489,16 @@ public PagedFlux getMultiplePagesRetrySecond(RequestOptions requestO * A paging operation that receives a 400 on the first call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -485,14 +517,16 @@ public PagedFlux getSinglePagesFailure(RequestOptions requestOptions * A paging operation that receives a 400 on the second call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -511,14 +545,16 @@ public PagedFlux getMultiplePagesFailure(RequestOptions requestOptio * A paging operation that receives an invalid nextLink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -537,14 +573,16 @@ public PagedFlux getMultiplePagesFailureUri(RequestOptions requestOp * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -566,14 +604,16 @@ public PagedFlux getMultiplePagesFragmentNextLink(String apiVersion, * A paging operation that doesn't return a full URL, just a fragment with parameters grouped. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -606,14 +646,16 @@ public PagedFlux getMultiplePagesFragmentWithGroupingNextLink(String * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -633,14 +675,16 @@ public PagedFlux getMultiplePagesLro(RequestOptions requestOptions) * the next link. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -660,14 +704,16 @@ public PagedFlux appendApiVersion(RequestOptions requestOptions) { * returned api version with your client's api version. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -686,14 +732,16 @@ public PagedFlux replaceApiVersion(RequestOptions requestOptions) { * A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClient.java b/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClient.java index 26a65d3126..151f734d7a 100644 --- a/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClient.java +++ b/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClient.java @@ -39,14 +39,16 @@ public final class AutoRestPagingTestServiceClient { * A paging operation that must return result of the default 'value' node. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,14 +67,16 @@ public PagedIterable getNoItemNamePages(RequestOptions requestOption * A paging operation that gets an empty next link and should stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -91,14 +95,16 @@ public PagedIterable getEmptyNextLinkNamePages(RequestOptions reques * A paging operation that must ignore any kind of nextLink, and stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -117,14 +123,16 @@ public PagedIterable getNullNextLinkNamePages(RequestOptions request * A paging operation that finishes on the first call without a nextlink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -143,22 +151,26 @@ public PagedIterable getSinglePages(RequestOptions requestOptions) { * A paging operation that finishes on the first call with body params without a nextlink. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param parameters put {'name': 'body'} to pass the test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -180,14 +192,16 @@ public PagedIterable getSinglePagesWithBodyParams(BinaryData paramet * call, will give you an items list of 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,14 +231,16 @@ public PagedIterable firstResponseEmpty(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -244,14 +260,16 @@ public PagedIterable getMultiplePages(RequestOptions requestOptions) * nextOperationWithQueryParams. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requiredQueryParameter A required integer query parameter. Put in value '100' to pass test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -279,14 +297,16 @@ public PagedIterable getWithQueryParams(int requiredQueryParameter, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -305,14 +325,16 @@ public PagedIterable duplicateParams(RequestOptions requestOptions) * Paging with max page size. We don't want to. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -342,14 +364,16 @@ public PagedIterable pageWithMaxPageSize(RequestOptions requestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -379,14 +403,16 @@ public PagedIterable getOdataMultiplePages(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param offset Offset of return value. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -407,14 +433,16 @@ public PagedIterable getMultiplePagesWithOffset(int offset, RequestO * nextLink that has 10 pages. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -434,14 +462,16 @@ public PagedIterable getMultiplePagesRetryFirst(RequestOptions reque * client should retry and finish all 10 pages eventually. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -460,14 +490,16 @@ public PagedIterable getMultiplePagesRetrySecond(RequestOptions requ * A paging operation that receives a 400 on the first call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -486,14 +518,16 @@ public PagedIterable getSinglePagesFailure(RequestOptions requestOpt * A paging operation that receives a 400 on the second call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -512,14 +546,16 @@ public PagedIterable getMultiplePagesFailure(RequestOptions requestO * A paging operation that receives an invalid nextLink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -538,14 +574,16 @@ public PagedIterable getMultiplePagesFailureUri(RequestOptions reque * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -567,14 +605,16 @@ public PagedIterable getMultiplePagesFragmentNextLink(String apiVers * A paging operation that doesn't return a full URL, just a fragment with parameters grouped. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -607,14 +647,16 @@ public PagedIterable getMultiplePagesFragmentWithGroupingNextLink(St * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -634,14 +676,16 @@ public PagedIterable getMultiplePagesLro(RequestOptions requestOptio * the next link. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -661,14 +705,16 @@ public PagedIterable appendApiVersion(RequestOptions requestOptions) * returned api version with your client's api version. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -687,14 +733,16 @@ public PagedIterable replaceApiVersion(RequestOptions requestOptions * A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClientBuilder.java index 3f02dcb162..34353d265b 100644 --- a/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/paging/AutoRestPagingTestServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/paging/implementation/PagingsImpl.java b/protocol-tests/src/main/java/fixtures/paging/implementation/PagingsImpl.java index cb904a2c1e..465c244ab7 100644 --- a/protocol-tests/src/main/java/fixtures/paging/implementation/PagingsImpl.java +++ b/protocol-tests/src/main/java/fixtures/paging/implementation/PagingsImpl.java @@ -958,14 +958,16 @@ Response getPagingModelWithItemNameWithXmsClientNameNextSync( * A paging operation that must return result of the default 'value' node. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -987,14 +989,16 @@ private Mono> getNoItemNamePagesSinglePageAsync(Reques * A paging operation that must return result of the default 'value' node. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1016,14 +1020,16 @@ public PagedFlux getNoItemNamePagesAsync(RequestOptions requestOptio * A paging operation that must return result of the default 'value' node. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1045,14 +1051,16 @@ private PagedResponse getNoItemNamePagesSinglePage(RequestOptions re * A paging operation that must return result of the default 'value' node. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1074,14 +1082,16 @@ public PagedIterable getNoItemNamePages(RequestOptions requestOption * A paging operation that gets an empty next link and should stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1104,14 +1114,16 @@ private Mono> getEmptyNextLinkNamePagesSinglePageAsync * A paging operation that gets an empty next link and should stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1133,14 +1145,16 @@ public PagedFlux getEmptyNextLinkNamePagesAsync(RequestOptions reque * A paging operation that gets an empty next link and should stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1162,14 +1176,16 @@ private PagedResponse getEmptyNextLinkNamePagesSinglePage(RequestOpt * A paging operation that gets an empty next link and should stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1191,14 +1207,16 @@ public PagedIterable getEmptyNextLinkNamePages(RequestOptions reques * A paging operation that must ignore any kind of nextLink, and stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1221,14 +1239,16 @@ private Mono> getNullNextLinkNamePagesSinglePageAsync( * A paging operation that must ignore any kind of nextLink, and stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1246,14 +1266,16 @@ public PagedFlux getNullNextLinkNamePagesAsync(RequestOptions reques * A paging operation that must ignore any kind of nextLink, and stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1275,14 +1297,16 @@ private PagedResponse getNullNextLinkNamePagesSinglePage(RequestOpti * A paging operation that must ignore any kind of nextLink, and stop after page 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1300,14 +1324,16 @@ public PagedIterable getNullNextLinkNamePages(RequestOptions request * A paging operation that finishes on the first call without a nextlink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1329,14 +1355,16 @@ private Mono> getSinglePagesSinglePageAsync(RequestOpt * A paging operation that finishes on the first call without a nextlink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1358,14 +1386,16 @@ public PagedFlux getSinglePagesAsync(RequestOptions requestOptions) * A paging operation that finishes on the first call without a nextlink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1387,14 +1417,16 @@ private PagedResponse getSinglePagesSinglePage(RequestOptions reques * A paging operation that finishes on the first call without a nextlink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1416,22 +1448,26 @@ public PagedIterable getSinglePages(RequestOptions requestOptions) { * A paging operation that finishes on the first call with body params without a nextlink. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param parameters put {'name': 'body'} to pass the test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1456,22 +1492,26 @@ private Mono> getSinglePagesWithBodyParamsSinglePageAs * A paging operation that finishes on the first call with body params without a nextlink. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param parameters put {'name': 'body'} to pass the test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1495,22 +1535,26 @@ public PagedFlux getSinglePagesWithBodyParamsAsync(BinaryData parame * A paging operation that finishes on the first call with body params without a nextlink. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param parameters put {'name': 'body'} to pass the test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1534,22 +1578,26 @@ private PagedResponse getSinglePagesWithBodyParamsSinglePage(BinaryD * A paging operation that finishes on the first call with body params without a nextlink. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param parameters put {'name': 'body'} to pass the test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1574,14 +1622,16 @@ public PagedIterable getSinglePagesWithBodyParams(BinaryData paramet * call, will give you an items list of 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1604,14 +1654,16 @@ private Mono> firstResponseEmptySinglePageAsync(Reques * call, will give you an items list of 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1634,14 +1686,16 @@ public PagedFlux firstResponseEmptyAsync(RequestOptions requestOptio * call, will give you an items list of 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1664,14 +1718,16 @@ private PagedResponse firstResponseEmptySinglePage(RequestOptions re * call, will give you an items list of 1. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1704,14 +1760,16 @@ public PagedIterable firstResponseEmpty(RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1744,14 +1802,16 @@ private Mono> getMultiplePagesSinglePageAsync(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1784,14 +1844,16 @@ public PagedFlux getMultiplePagesAsync(RequestOptions requestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1824,14 +1886,16 @@ private PagedResponse getMultiplePagesSinglePage(RequestOptions requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1854,14 +1918,16 @@ public PagedIterable getMultiplePages(RequestOptions requestOptions) * nextOperationWithQueryParams. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requiredQueryParameter A required integer query parameter. Put in value '100' to pass test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1888,14 +1954,16 @@ private Mono> getWithQueryParamsSinglePageAsync(int re * nextOperationWithQueryParams. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requiredQueryParameter A required integer query parameter. Put in value '100' to pass test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1919,14 +1987,16 @@ public PagedFlux getWithQueryParamsAsync(int requiredQueryParameter, * nextOperationWithQueryParams. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requiredQueryParameter A required integer query parameter. Put in value '100' to pass test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1952,14 +2022,16 @@ private PagedResponse getWithQueryParamsSinglePage(int requiredQuery * nextOperationWithQueryParams. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requiredQueryParameter A required integer query parameter. Put in value '100' to pass test. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1990,14 +2062,16 @@ public PagedIterable getWithQueryParams(int requiredQueryParameter, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2027,14 +2101,16 @@ private Mono> duplicateParamsSinglePageAsync(RequestOp * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2064,14 +2140,16 @@ public PagedFlux duplicateParamsAsync(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2101,14 +2179,16 @@ private PagedResponse duplicateParamsSinglePage(RequestOptions reque * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2130,14 +2210,16 @@ public PagedIterable duplicateParams(RequestOptions requestOptions) * Paging with max page size. We don't want to. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2160,14 +2242,16 @@ private Mono> pageWithMaxPageSizeSinglePageAsync(Reque * Paging with max page size. We don't want to. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2189,14 +2273,16 @@ public PagedFlux pageWithMaxPageSizeAsync(RequestOptions requestOpti * Paging with max page size. We don't want to. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2219,14 +2305,16 @@ private PagedResponse pageWithMaxPageSizeSinglePage(RequestOptions r * Paging with max page size. We don't want to. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2248,14 +2336,16 @@ public PagedIterable pageWithMaxPageSize(RequestOptions requestOptio * Next operation for getWithQueryParams. Pass in next=True to pass test. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2279,14 +2369,16 @@ private Mono> nextOperationWithQueryParamsSinglePageAs * Next operation for getWithQueryParams. Pass in next=True to pass test. Returns a ProductResult. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2320,14 +2412,16 @@ private PagedResponse nextOperationWithQueryParamsSinglePage(Request * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2361,14 +2455,16 @@ private Mono> getOdataMultiplePagesSinglePageAsync(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2401,14 +2497,16 @@ public PagedFlux getOdataMultiplePagesAsync(RequestOptions requestOp * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2441,14 +2539,16 @@ private PagedResponse getOdataMultiplePagesSinglePage(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2481,14 +2581,16 @@ public PagedIterable getOdataMultiplePages(RequestOptions requestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param offset Offset of return value. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2524,14 +2626,16 @@ private Mono> getMultiplePagesWithOffsetSinglePageAsyn * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param offset Offset of return value. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2565,14 +2669,16 @@ public PagedFlux getMultiplePagesWithOffsetAsync(int offset, Request * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param offset Offset of return value. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2606,14 +2712,16 @@ private PagedResponse getMultiplePagesWithOffsetSinglePage(int offse * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param offset Offset of return value. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2637,14 +2745,16 @@ public PagedIterable getMultiplePagesWithOffset(int offset, RequestO * nextLink that has 10 pages. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2668,14 +2778,16 @@ private Mono> getMultiplePagesRetryFirstSinglePageAsyn * nextLink that has 10 pages. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2698,14 +2810,16 @@ public PagedFlux getMultiplePagesRetryFirstAsync(RequestOptions requ * nextLink that has 10 pages. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2728,14 +2842,16 @@ private PagedResponse getMultiplePagesRetryFirstSinglePage(RequestOp * nextLink that has 10 pages. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2758,14 +2874,16 @@ public PagedIterable getMultiplePagesRetryFirst(RequestOptions reque * client should retry and finish all 10 pages eventually. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2789,14 +2907,16 @@ private Mono> getMultiplePagesRetrySecondSinglePageAsy * client should retry and finish all 10 pages eventually. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2819,14 +2939,16 @@ public PagedFlux getMultiplePagesRetrySecondAsync(RequestOptions req * client should retry and finish all 10 pages eventually. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2849,14 +2971,16 @@ private PagedResponse getMultiplePagesRetrySecondSinglePage(RequestO * client should retry and finish all 10 pages eventually. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2878,14 +3002,16 @@ public PagedIterable getMultiplePagesRetrySecond(RequestOptions requ * A paging operation that receives a 400 on the first call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2908,14 +3034,16 @@ private Mono> getSinglePagesFailureSinglePageAsync(Req * A paging operation that receives a 400 on the first call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2937,14 +3065,16 @@ public PagedFlux getSinglePagesFailureAsync(RequestOptions requestOp * A paging operation that receives a 400 on the first call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2966,14 +3096,16 @@ private PagedResponse getSinglePagesFailureSinglePage(RequestOptions * A paging operation that receives a 400 on the first call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2995,14 +3127,16 @@ public PagedIterable getSinglePagesFailure(RequestOptions requestOpt * A paging operation that receives a 400 on the second call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3025,14 +3159,16 @@ private Mono> getMultiplePagesFailureSinglePageAsync(R * A paging operation that receives a 400 on the second call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3054,14 +3190,16 @@ public PagedFlux getMultiplePagesFailureAsync(RequestOptions request * A paging operation that receives a 400 on the second call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3083,14 +3221,16 @@ private PagedResponse getMultiplePagesFailureSinglePage(RequestOptio * A paging operation that receives a 400 on the second call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3112,14 +3252,16 @@ public PagedIterable getMultiplePagesFailure(RequestOptions requestO * A paging operation that receives an invalid nextLink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3142,14 +3284,16 @@ private Mono> getMultiplePagesFailureUriSinglePageAsyn * A paging operation that receives an invalid nextLink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3171,14 +3315,16 @@ public PagedFlux getMultiplePagesFailureUriAsync(RequestOptions requ * A paging operation that receives an invalid nextLink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3200,14 +3346,16 @@ private PagedResponse getMultiplePagesFailureUriSinglePage(RequestOp * A paging operation that receives an invalid nextLink. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3229,14 +3377,16 @@ public PagedIterable getMultiplePagesFailureUri(RequestOptions reque * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3262,14 +3412,16 @@ private Mono> getMultiplePagesFragmentNextLinkSinglePa * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3295,14 +3447,16 @@ public PagedFlux getMultiplePagesFragmentNextLinkAsync(String apiVer * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3327,14 +3481,16 @@ private PagedResponse getMultiplePagesFragmentNextLinkSinglePage(Str * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3359,14 +3515,16 @@ public PagedIterable getMultiplePagesFragmentNextLink(String apiVers * A paging operation that doesn't return a full URL, just a fragment with parameters grouped. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3392,14 +3550,16 @@ private Mono> getMultiplePagesFragmentWithGroupingNext * A paging operation that doesn't return a full URL, just a fragment with parameters grouped. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3426,14 +3586,16 @@ public PagedFlux getMultiplePagesFragmentWithGroupingNextLinkAsync(S * A paging operation that doesn't return a full URL, just a fragment with parameters grouped. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3458,14 +3620,16 @@ private PagedResponse getMultiplePagesFragmentWithGroupingNextLinkSi * A paging operation that doesn't return a full URL, just a fragment with parameters grouped. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3502,14 +3666,16 @@ public PagedIterable getMultiplePagesFragmentWithGroupingNextLink(St * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3542,14 +3708,16 @@ private Mono> getMultiplePagesLroSinglePageAsync(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3582,14 +3750,16 @@ public PagedFlux getMultiplePagesLroAsync(RequestOptions requestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3622,14 +3792,16 @@ private PagedResponse getMultiplePagesLroSinglePage(RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3652,14 +3824,16 @@ public PagedIterable getMultiplePagesLro(RequestOptions requestOptio * the next link. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3683,14 +3857,16 @@ private Mono> appendApiVersionSinglePageAsync(RequestO * the next link. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3713,14 +3889,16 @@ public PagedFlux appendApiVersionAsync(RequestOptions requestOptions * the next link. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3743,14 +3921,16 @@ private PagedResponse appendApiVersionSinglePage(RequestOptions requ * the next link. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3773,14 +3953,16 @@ public PagedIterable appendApiVersion(RequestOptions requestOptions) * returned api version with your client's api version. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3804,14 +3986,16 @@ private Mono> replaceApiVersionSinglePageAsync(Request * returned api version with your client's api version. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3834,14 +4018,16 @@ public PagedFlux replaceApiVersionAsync(RequestOptions requestOption * returned api version with your client's api version. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3864,14 +4050,16 @@ private PagedResponse replaceApiVersionSinglePage(RequestOptions req * returned api version with your client's api version. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3893,14 +4081,16 @@ public PagedIterable replaceApiVersion(RequestOptions requestOptions * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3927,14 +4117,16 @@ private Mono> nextFragmentSinglePageAsync(String apiVe * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3960,14 +4152,16 @@ private PagedResponse nextFragmentSinglePage(String apiVersion, Stri * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -3994,14 +4188,16 @@ private Mono> nextFragmentWithGroupingSinglePageAsync( * A paging operation that doesn't return a full URL, just a fragment. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param apiVersion Sets the api version to use. * @param tenant Sets the tenant to use. @@ -4027,14 +4223,16 @@ private PagedResponse nextFragmentWithGroupingSinglePage(String apiV * A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4058,14 +4256,16 @@ private PagedResponse nextFragmentWithGroupingSinglePage(String apiV * A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4088,14 +4288,16 @@ public PagedFlux getPagingModelWithItemNameWithXmsClientNameAsync(Re * A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4118,14 +4320,16 @@ public PagedFlux getPagingModelWithItemNameWithXmsClientNameAsync(Re * A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4147,14 +4351,16 @@ public PagedIterable getPagingModelWithItemNameWithXmsClientName(Req * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4178,14 +4384,16 @@ private Mono> getNoItemNamePagesNextSinglePageAsync(St * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4208,14 +4416,16 @@ private PagedResponse getNoItemNamePagesNextSinglePage(String nextLi * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4240,14 +4450,16 @@ private Mono> getEmptyNextLinkNamePagesNextSinglePageA * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4271,14 +4483,16 @@ private PagedResponse getEmptyNextLinkNamePagesNextSinglePage(String * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4303,14 +4517,16 @@ private Mono> getSinglePagesNextSinglePageAsync(String * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4333,14 +4549,16 @@ private PagedResponse getSinglePagesNextSinglePage(String nextLink, * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4365,14 +4583,16 @@ private Mono> getSinglePagesWithBodyParamsNextSinglePa * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4396,14 +4616,16 @@ private PagedResponse getSinglePagesWithBodyParamsNextSinglePage(Str * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4427,14 +4649,16 @@ private Mono> firstResponseEmptyNextSinglePageAsync(St * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4468,14 +4692,16 @@ private PagedResponse firstResponseEmptyNextSinglePage(String nextLi * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4510,14 +4736,16 @@ private Mono> getMultiplePagesNextSinglePageAsync(Stri * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4540,14 +4768,16 @@ private PagedResponse getMultiplePagesNextSinglePage(String nextLink * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4571,14 +4801,16 @@ private Mono> duplicateParamsNextSinglePageAsync(Strin * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4601,14 +4833,16 @@ private PagedResponse duplicateParamsNextSinglePage(String nextLink, * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4633,14 +4867,16 @@ private Mono> pageWithMaxPageSizeNextSinglePageAsync(S * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4675,14 +4911,16 @@ private PagedResponse pageWithMaxPageSizeNextSinglePage(String nextL * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4718,14 +4956,16 @@ private Mono> getOdataMultiplePagesNextSinglePageAsync * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4760,14 +5000,16 @@ private PagedResponse getOdataMultiplePagesNextSinglePage(String nex * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4803,14 +5045,16 @@ private Mono> getMultiplePagesWithOffsetNextSinglePage * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4834,14 +5078,16 @@ private PagedResponse getMultiplePagesWithOffsetNextSinglePage(Strin * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4866,14 +5112,16 @@ private Mono> getMultiplePagesRetryFirstNextSinglePage * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4897,14 +5145,16 @@ private PagedResponse getMultiplePagesRetryFirstNextSinglePage(Strin * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4929,14 +5179,16 @@ private Mono> getMultiplePagesRetrySecondNextSinglePag * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4960,14 +5212,16 @@ private PagedResponse getMultiplePagesRetrySecondNextSinglePage(Stri * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -4992,14 +5246,16 @@ private Mono> getSinglePagesFailureNextSinglePageAsync * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5023,14 +5279,16 @@ private PagedResponse getSinglePagesFailureNextSinglePage(String nex * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5055,14 +5313,16 @@ private Mono> getMultiplePagesFailureNextSinglePageAsy * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5086,14 +5346,16 @@ private PagedResponse getMultiplePagesFailureNextSinglePage(String n * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5118,14 +5380,16 @@ private Mono> getMultiplePagesFailureUriNextSinglePage * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5160,14 +5424,16 @@ private PagedResponse getMultiplePagesFailureUriNextSinglePage(Strin * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5203,14 +5469,16 @@ private Mono> getMultiplePagesLroNextSinglePageAsync(S * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5234,14 +5502,16 @@ private PagedResponse getMultiplePagesLroNextSinglePage(String nextL * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5265,14 +5535,16 @@ private Mono> appendApiVersionNextSinglePageAsync(Stri * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5295,14 +5567,16 @@ private PagedResponse appendApiVersionNextSinglePage(String nextLink * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5326,14 +5600,16 @@ private Mono> replaceApiVersionNextSinglePageAsync(Str * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5356,14 +5632,16 @@ private PagedResponse replaceApiVersionNextSinglePage(String nextLin * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -5388,14 +5666,16 @@ private PagedResponse replaceApiVersionNextSinglePage(String nextLin * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     properties (Optional): {
      *         id: Integer (Optional)
      *         name: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/parameterizedendpoint/ParmaterizedEndpointClientBuilder.java b/protocol-tests/src/main/java/fixtures/parameterizedendpoint/ParmaterizedEndpointClientBuilder.java index be381ccecd..4a325916b1 100644 --- a/protocol-tests/src/main/java/fixtures/parameterizedendpoint/ParmaterizedEndpointClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/parameterizedendpoint/ParmaterizedEndpointClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryAsyncClient.java b/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryAsyncClient.java index 9c855e4ac8..28771b255c 100644 --- a/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryAsyncClient.java @@ -55,9 +55,11 @@ public final class DpgRequiredHeaderQueryAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. @@ -89,9 +91,11 @@ public Mono> getRequiredQueryParamWithResponse(int paramete * Get Required Header Parameters. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. diff --git a/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClient.java b/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClient.java index e4ce312fae..240625373b 100644 --- a/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClient.java +++ b/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClient.java @@ -54,9 +54,11 @@ public final class DpgRequiredHeaderQueryClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. @@ -88,9 +90,11 @@ public Response getRequiredQueryParamWithResponse(int parameterInt, * Get Required Header Parameters. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. diff --git a/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClientBuilder.java b/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClientBuilder.java index 0b6dbf09c8..7b2c3fdcba 100644 --- a/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/requiredheaderquery/DpgRequiredHeaderQueryClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/requiredheaderquery/implementation/ParamsImpl.java b/protocol-tests/src/main/java/fixtures/requiredheaderquery/implementation/ParamsImpl.java index ff2a670610..d2568c907c 100644 --- a/protocol-tests/src/main/java/fixtures/requiredheaderquery/implementation/ParamsImpl.java +++ b/protocol-tests/src/main/java/fixtures/requiredheaderquery/implementation/ParamsImpl.java @@ -164,9 +164,11 @@ Response getRequiredHeaderSync(@HostParam("$host") String host, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. @@ -222,9 +224,11 @@ public Mono> getRequiredQueryParamWithResponseAsync(int par * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. @@ -268,9 +272,11 @@ public Response getRequiredQueryParamWithResponse(int parameterInt, * Get Required Header Parameters. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. @@ -305,9 +311,11 @@ public Mono> getRequiredHeaderWithResponseAsync(int paramet * Get Required Header Parameters. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param parameterInt I am a required int parameter. * @param parameterBoolean I am a required boolean parameter. diff --git a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyAsyncClient.java b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyAsyncClient.java index a8c204c499..7062e2a9d2 100644 --- a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyAsyncClient.java @@ -40,7 +40,8 @@ public final class RequiredOptionalBodyAsyncClient { * Creates or updates a deployment. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -55,11 +56,13 @@ public final class RequiredOptionalBodyAsyncClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -74,7 +77,8 @@ public final class RequiredOptionalBodyAsyncClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -104,7 +108,8 @@ public Mono> createOrUpdateDeploymentWithResponse(BinaryDat * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -119,11 +124,13 @@ public Mono> createOrUpdateDeploymentWithResponse(BinaryDat
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -138,7 +145,8 @@ public Mono> createOrUpdateDeploymentWithResponse(BinaryDat
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClient.java b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClient.java index 7fec0322e0..d387a24541 100644 --- a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClient.java +++ b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClient.java @@ -39,7 +39,8 @@ public final class RequiredOptionalBodyClient { * Creates or updates a deployment. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -54,11 +55,13 @@ public final class RequiredOptionalBodyClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -73,7 +76,8 @@ public final class RequiredOptionalBodyClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -103,7 +107,8 @@ public Response createOrUpdateDeploymentWithResponse(BinaryData depl * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -118,11 +123,13 @@ public Response createOrUpdateDeploymentWithResponse(BinaryData depl
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -137,7 +144,8 @@ public Response createOrUpdateDeploymentWithResponse(BinaryData depl
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClientBuilder.java b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClientBuilder.java index 83b4e0c932..72f98570ae 100644 --- a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/RequiredOptionalBodyClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/implementation/RequiredOptionalBodyClientImpl.java b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/implementation/RequiredOptionalBodyClientImpl.java index bef2f5c7b6..808c14af45 100644 --- a/protocol-tests/src/main/java/fixtures/requiredoptionalbody/implementation/RequiredOptionalBodyClientImpl.java +++ b/protocol-tests/src/main/java/fixtures/requiredoptionalbody/implementation/RequiredOptionalBodyClientImpl.java @@ -190,7 +190,8 @@ Response optionalObjectSync(@HostParam("$host") String host, @Header * Creates or updates a deployment. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -205,11 +206,13 @@ Response optionalObjectSync(@HostParam("$host") String host, @Header
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -224,7 +227,8 @@ Response optionalObjectSync(@HostParam("$host") String host, @Header
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -247,7 +251,8 @@ public Mono> createOrUpdateDeploymentWithResponseAsync(Bina * Creates or updates a deployment. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -262,11 +267,13 @@ public Mono> createOrUpdateDeploymentWithResponseAsync(Bina
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -281,7 +288,8 @@ public Mono> createOrUpdateDeploymentWithResponseAsync(Bina
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param deployment The deployment properties. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -311,7 +319,8 @@ public Response createOrUpdateDeploymentWithResponse(BinaryData depl * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -326,11 +335,13 @@ public Response createOrUpdateDeploymentWithResponse(BinaryData depl
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -345,7 +356,8 @@ public Response createOrUpdateDeploymentWithResponse(BinaryData depl
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -379,7 +391,8 @@ public Mono> optionalObjectWithResponseAsync(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -394,11 +407,13 @@ public Mono> optionalObjectWithResponseAsync(RequestOptions
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     deploymentId: String (Required)
      *     startDateTime: OffsetDateTime (Required)
@@ -413,7 +428,8 @@ public Mono> optionalObjectWithResponseAsync(RequestOptions
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderAsyncClient.java b/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderAsyncClient.java index aabe2e67cc..42f628bc4e 100644 --- a/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderAsyncClient.java +++ b/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderAsyncClient.java @@ -51,9 +51,11 @@ public final class SpecialHeaderAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -81,9 +83,11 @@ public Mono> paramRepeatabilityRequestWithResponse(RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -102,9 +106,11 @@ public Mono> paramRepeatabilityRequestPutWithResponse(Reque * Send a get request without header Repeatability-Request-ID and Repeatability-First-Sent. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -132,9 +138,11 @@ public Mono> paramRepeatabilityRequestGetWithResponse(Reque * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -162,9 +170,11 @@ public PollerFlux beginParamRepeatabilityRequestLro(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClient.java b/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClient.java index d26b61fe97..a7c06875bd 100644 --- a/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClient.java +++ b/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClient.java @@ -50,9 +50,11 @@ public final class SpecialHeaderClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -80,9 +82,11 @@ public Response paramRepeatabilityRequestWithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -101,9 +105,11 @@ public Response paramRepeatabilityRequestPutWithResponse(RequestOpti * Send a get request without header Repeatability-Request-ID and Repeatability-First-Sent. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -131,9 +137,11 @@ public Response paramRepeatabilityRequestGetWithResponse(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -161,9 +169,11 @@ public SyncPoller beginParamRepeatabilityRequestLro(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClientBuilder.java b/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClientBuilder.java index cb609e793f..a97402c612 100644 --- a/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/specialheader/SpecialHeaderClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/specialheader/implementation/HeadersImpl.java b/protocol-tests/src/main/java/fixtures/specialheader/implementation/HeadersImpl.java index bbbd7d5e52..b449d2b473 100644 --- a/protocol-tests/src/main/java/fixtures/specialheader/implementation/HeadersImpl.java +++ b/protocol-tests/src/main/java/fixtures/specialheader/implementation/HeadersImpl.java @@ -211,9 +211,11 @@ Response paramRepeatabilityRequestPageableNextSync( * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -256,9 +258,11 @@ public Mono> paramRepeatabilityRequestWithResponseAsync(Req * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -300,9 +304,11 @@ public Response paramRepeatabilityRequestWithResponse(RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -345,9 +351,11 @@ public Mono> paramRepeatabilityRequestPutWithResponseAsync( * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -381,9 +389,11 @@ public Response paramRepeatabilityRequestPutWithResponse(RequestOpti * Send a get request without header Repeatability-Request-ID and Repeatability-First-Sent. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -403,9 +413,11 @@ public Mono> paramRepeatabilityRequestGetWithResponseAsync( * Send a get request without header Repeatability-Request-ID and Repeatability-First-Sent. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -433,9 +445,11 @@ public Response paramRepeatabilityRequestGetWithResponse(RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -478,9 +492,11 @@ private Mono> paramRepeatabilityRequestLroWithResponseAsync * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -523,9 +539,11 @@ private Response paramRepeatabilityRequestLroWithResponse(RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -559,9 +577,11 @@ public PollerFlux beginParamRepeatabilityRequestLroAsync * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -595,9 +615,11 @@ public SyncPoller beginParamRepeatabilityRequestLro(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -644,9 +666,11 @@ public SyncPoller beginParamRepeatabilityRequestLro(Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -677,9 +701,11 @@ public PagedFlux paramRepeatabilityRequestPageableAsync(RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -724,9 +750,11 @@ private PagedResponse paramRepeatabilityRequestPageableSinglePage(Re * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -748,9 +776,11 @@ public PagedIterable paramRepeatabilityRequestPageable(RequestOption * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -775,9 +805,11 @@ private Mono> paramRepeatabilityRequestPageableNextSin * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/protocol-tests/src/main/java/fixtures/url/PathItemsClientBuilder.java b/protocol-tests/src/main/java/fixtures/url/PathItemsClientBuilder.java index 3d3f8ee920..6233a59d89 100644 --- a/protocol-tests/src/main/java/fixtures/url/PathItemsClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/url/PathItemsClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/url/PathsClientBuilder.java b/protocol-tests/src/main/java/fixtures/url/PathsClientBuilder.java index ec86d119a7..aaf49c89a8 100644 --- a/protocol-tests/src/main/java/fixtures/url/PathsClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/url/PathsClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/url/QueriesClientBuilder.java b/protocol-tests/src/main/java/fixtures/url/QueriesClientBuilder.java index 061e93e6f6..5cb9b9bf7b 100644 --- a/protocol-tests/src/main/java/fixtures/url/QueriesClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/url/QueriesClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/protocol-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceClientBuilder.java b/protocol-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceClientBuilder.java index efe6b3be4a..a39d5dd969 100644 --- a/protocol-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceClientBuilder.java +++ b/protocol-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-extension/package-lock.json b/typespec-extension/package-lock.json index a5aa752cc1..92b0a47803 100644 --- a/typespec-extension/package-lock.json +++ b/typespec-extension/package-lock.json @@ -16,9 +16,9 @@ "devDependencies": { "@azure-tools/typespec-autorest": "0.46.0", "@azure-tools/typespec-azure-core": "0.46.0", - "@azure-tools/typespec-azure-resource-manager": "0.46.0", + "@azure-tools/typespec-azure-resource-manager": "0.46.1", "@azure-tools/typespec-azure-rulesets": "0.46.0", - "@azure-tools/typespec-client-generator-core": "0.46.0", + "@azure-tools/typespec-client-generator-core": "0.46.2", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.7", "@types/mocha": "~10.0.7", @@ -139,9 +139,9 @@ } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.46.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.46.0.tgz", - "integrity": "sha512-ileS/0OMp0pmtWU3k0g2ZGfA957nOiEHtFJzAILsYYBFeBWgWuEuCPcKaGYScvlYTTK4Pyplpb7u00RBZBBObQ==", + "version": "0.46.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.46.1.tgz", + "integrity": "sha512-8md8AwnxoYVkDBavQL5dbToUTS10PTSkcF+emd9BKEdnF9MKuA542vZudzaQOz2BzFbArMVUE/PLm2mhuwRkLw==", "dev": true, "dependencies": { "change-case": "~5.4.4", @@ -175,9 +175,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.46.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.46.0.tgz", - "integrity": "sha512-Ss0dNcOeTyc9CBsNFV6OToLV7OOKidAfeewmKePtY2qAHW+CqWZnVvUHunpFt2jFs6CqjFpgU9g+1wPbLCFj9A==", + "version": "0.46.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.46.2.tgz", + "integrity": "sha512-/HKeehCNDeylouOHMe7IwpcDcGJHRAuEy3a5FBnSY51m4EpMq4VMQzW9tka/8brFO2m5LLj7tyhOL/xnzi2fLg==", "dev": true, "dependencies": { "change-case": "~5.4.4", diff --git a/typespec-extension/package.json b/typespec-extension/package.json index 798ac888e9..86a9ec9895 100644 --- a/typespec-extension/package.json +++ b/typespec-extension/package.json @@ -64,10 +64,10 @@ }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.46.0", - "@azure-tools/typespec-azure-resource-manager": "0.46.0", + "@azure-tools/typespec-azure-resource-manager": "0.46.1", "@azure-tools/typespec-autorest": "0.46.0", "@azure-tools/typespec-azure-rulesets": "0.46.0", - "@azure-tools/typespec-client-generator-core": "0.46.0", + "@azure-tools/typespec-client-generator-core": "0.46.2", "@types/js-yaml": "~4.0.9", "@types/lodash": "~4.17.7", "@types/mocha": "~10.0.7", diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/AccessClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/AccessClientBuilder.java index 3ce73c56e6..c9edb515be 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/AccessClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/AccessClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationAsyncClient.java index 1cadd70dd1..9f6998279d 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationAsyncClient.java @@ -44,11 +44,13 @@ public final class InternalOperationAsyncClient { * The noDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -69,11 +71,13 @@ Mono> noDecoratorInInternalWithResponse(String name, Reques * The internalDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -94,11 +98,13 @@ Mono> internalDecoratorInInternalWithResponse(String name, * The publicDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationClient.java index 31dd4b8672..a029b6e631 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/InternalOperationClient.java @@ -42,11 +42,13 @@ public final class InternalOperationClient { * The noDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -66,11 +68,13 @@ Response noDecoratorInInternalWithResponse(String name, RequestOptio * The internalDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -90,11 +94,13 @@ Response internalDecoratorInInternalWithResponse(String name, Reques * The publicDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationAsyncClient.java index 78913337ba..75200939d8 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationAsyncClient.java @@ -43,11 +43,13 @@ public final class PublicOperationAsyncClient { * The noDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -68,11 +70,13 @@ public Mono> noDecoratorInPublicWithResponse(String name, R * The publicDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationClient.java index 472adda679..d79c13b849 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/PublicOperationClient.java @@ -41,11 +41,13 @@ public final class PublicOperationClient { * The noDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -65,11 +67,13 @@ public Response noDecoratorInPublicWithResponse(String name, Request * The publicDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationAsyncClient.java index 42e2631c8d..734bd268bc 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationAsyncClient.java @@ -53,14 +53,16 @@ public final class RelativeModelInOperationAsyncClient { * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     inner (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -88,12 +90,14 @@ Mono> operationWithResponse(String name, RequestOptions req * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param kind The kind parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationClient.java index f49e30819d..c8d11948e3 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/RelativeModelInOperationClient.java @@ -51,14 +51,16 @@ public final class RelativeModelInOperationClient { * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     inner (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -85,12 +87,14 @@ Response operationWithResponse(String name, RequestOptions requestOp * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param kind The kind parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationAsyncClient.java index 8b3caf31cb..3383767c9c 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class SharedModelInOperationAsyncClient { * The publicMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -67,11 +69,13 @@ public Mono> publicMethodWithResponse(String name, RequestO * The internal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationClient.java index dd99a503de..bdbfa92e95 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/SharedModelInOperationClient.java @@ -40,11 +40,13 @@ public final class SharedModelInOperationClient { * The publicMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -64,11 +66,13 @@ public Response publicMethodWithResponse(String name, RequestOptions * The internal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/InternalOperationsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/InternalOperationsImpl.java index d1cec38a8d..d614dd4106 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/InternalOperationsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/InternalOperationsImpl.java @@ -123,11 +123,13 @@ Response publicDecoratorInInternalSync(@HostParam("endpoint") String * The noDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -150,11 +152,13 @@ public Mono> noDecoratorInInternalWithResponseAsync(String * The noDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -174,11 +178,13 @@ public Response noDecoratorInInternalWithResponse(String name, Reque * The internalDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -201,11 +207,13 @@ public Mono> internalDecoratorInInternalWithResponseAsync(S * The internalDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -226,11 +234,13 @@ public Response internalDecoratorInInternalWithResponse(String name, * The publicDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -253,11 +263,13 @@ public Mono> publicDecoratorInInternalWithResponseAsync(Str * The publicDecoratorInInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/PublicOperationsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/PublicOperationsImpl.java index e6aaefc24a..326b5aa0f6 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/PublicOperationsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/PublicOperationsImpl.java @@ -103,11 +103,13 @@ Response publicDecoratorInPublicSync(@HostParam("endpoint") String e * The noDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -129,11 +131,13 @@ public Mono> noDecoratorInPublicWithResponseAsync(String na * The noDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -153,11 +157,13 @@ public Response noDecoratorInPublicWithResponse(String name, Request * The publicDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -180,11 +186,13 @@ public Mono> publicDecoratorInPublicWithResponseAsync(Strin * The publicDecoratorInPublic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/RelativeModelInOperationsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/RelativeModelInOperationsImpl.java index 4f77f36c60..d447dd153e 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/RelativeModelInOperationsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/RelativeModelInOperationsImpl.java @@ -110,14 +110,16 @@ Response discriminatorSync(@HostParam("endpoint") String endpoint, @ * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     inner (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -149,14 +151,16 @@ public Mono> operationWithResponseAsync(String name, Reques * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     inner (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -183,12 +187,14 @@ public Response operationWithResponse(String name, RequestOptions re * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param kind The kind parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -217,12 +223,14 @@ public Mono> discriminatorWithResponseAsync(String kind, Re * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param kind The kind parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/SharedModelInOperationsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/SharedModelInOperationsImpl.java index 62910d08de..1b53de2dc1 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/SharedModelInOperationsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/access/implementation/SharedModelInOperationsImpl.java @@ -99,11 +99,13 @@ Response internalSync(@HostParam("endpoint") String endpoint, @Query * The publicMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -125,11 +127,13 @@ public Mono> publicMethodWithResponseAsync(String name, Req * The publicMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -149,11 +153,13 @@ public Response publicMethodWithResponse(String name, RequestOptions * The internal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -175,11 +181,13 @@ public Mono> internalWithResponseAsync(String name, Request * The internal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyAsyncClient.java index 96ba2652e1..76447b777f 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyAsyncClient.java @@ -43,7 +43,8 @@ public final class FlattenPropertyAsyncClient { * The putFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -51,11 +52,13 @@ public final class FlattenPropertyAsyncClient {
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -63,7 +66,8 @@ public final class FlattenPropertyAsyncClient {
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -84,7 +88,8 @@ public Mono> putFlattenModelWithResponse(BinaryData input, * The putNestedFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -95,11 +100,13 @@ public Mono> putFlattenModelWithResponse(BinaryData input,
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -110,7 +117,8 @@ public Mono> putFlattenModelWithResponse(BinaryData input,
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClient.java index 71d8953c35..ac73854bb9 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClient.java @@ -41,7 +41,8 @@ public final class FlattenPropertyClient { * The putFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -49,11 +50,13 @@ public final class FlattenPropertyClient {
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -61,7 +64,8 @@ public final class FlattenPropertyClient {
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -81,7 +85,8 @@ public Response putFlattenModelWithResponse(BinaryData input, Reques * The putNestedFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -92,11 +97,13 @@ public Response putFlattenModelWithResponse(BinaryData input, Reques
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -107,7 +114,8 @@ public Response putFlattenModelWithResponse(BinaryData input, Reques
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClientBuilder.java index 05c15b2be7..2607e412e4 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenPropertyClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/implementation/FlattenPropertyClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/implementation/FlattenPropertyClientImpl.java index bd210bccec..e5eb061648 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/implementation/FlattenPropertyClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/flattenproperty/implementation/FlattenPropertyClientImpl.java @@ -170,7 +170,8 @@ Response putNestedFlattenModelSync(@HostParam("endpoint") String end * The putFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -178,11 +179,13 @@ Response putNestedFlattenModelSync(@HostParam("endpoint") String end
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -190,7 +193,8 @@ Response putNestedFlattenModelSync(@HostParam("endpoint") String end
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -214,7 +218,8 @@ public Mono> putFlattenModelWithResponseAsync(BinaryData in * The putFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -222,11 +227,13 @@ public Mono> putFlattenModelWithResponseAsync(BinaryData in
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -234,7 +241,8 @@ public Mono> putFlattenModelWithResponseAsync(BinaryData in
      *         age: int (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -256,7 +264,8 @@ public Response putFlattenModelWithResponse(BinaryData input, Reques * The putNestedFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -267,11 +276,13 @@ public Response putFlattenModelWithResponse(BinaryData input, Reques
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -282,7 +293,8 @@ public Response putFlattenModelWithResponse(BinaryData input, Reques
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -306,7 +318,8 @@ public Mono> putNestedFlattenModelWithResponseAsync(BinaryD * The putNestedFlattenModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -317,11 +330,13 @@ public Mono> putNestedFlattenModelWithResponseAsync(BinaryD
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     properties (Required): {
@@ -332,7 +347,8 @@ public Mono> putNestedFlattenModelWithResponseAsync(BinaryD
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageAsyncClient.java index af440eded5..c35a913350 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageAsyncClient.java @@ -49,11 +49,13 @@ public final class UsageAsyncClient { * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -78,11 +80,13 @@ public Mono> inputToInputOutputWithResponse(BinaryData body, Requ * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -116,23 +120,27 @@ public Mono> outputToInputOutputWithResponse(RequestOptions * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClient.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClient.java index 47b5fda038..28f466ab34 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClient.java @@ -47,11 +47,13 @@ public final class UsageClient { * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -76,11 +78,13 @@ public Response inputToInputOutputWithResponse(BinaryData body, RequestOpt * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -114,23 +118,27 @@ public Response outputToInputOutputWithResponse(RequestOptions reque * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClientBuilder.java index 16d7b3ae9c..c3cb7034a3 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/UsageClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/implementation/ModelInOperationsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/implementation/ModelInOperationsImpl.java index 4c8f3a930b..4fb9f7a500 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/implementation/ModelInOperationsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/clientgenerator/core/usage/implementation/ModelInOperationsImpl.java @@ -128,11 +128,13 @@ Response modelInReadOnlyPropertySync(@HostParam("endpoint") String e * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -158,11 +160,13 @@ public Mono> inputToInputOutputWithResponseAsync(BinaryData body, * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,11 +192,13 @@ public Response inputToInputOutputWithResponse(BinaryData body, RequestOpt * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,11 +223,13 @@ public Mono> outputToInputOutputWithResponseAsync(RequestOp * ```. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -255,23 +263,27 @@ public Response outputToInputOutputWithResponse(RequestOptions reque * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -309,23 +321,27 @@ public Mono> modelInReadOnlyPropertyWithResponseAsync(Binar * ```. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     result (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicAsyncClient.java index 979695fcef..41584e1184 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicAsyncClient.java @@ -52,7 +52,8 @@ public final class BasicAsyncClient { * Creates or updates a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -65,11 +66,13 @@ public final class BasicAsyncClient {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -82,7 +85,8 @@ public final class BasicAsyncClient {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -106,7 +110,8 @@ public Mono> createOrUpdateWithResponse(int id, BinaryData * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -119,11 +124,13 @@ public Mono> createOrUpdateWithResponse(int id, BinaryData
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -136,7 +143,8 @@ public Mono> createOrUpdateWithResponse(int id, BinaryData
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -160,7 +168,8 @@ public Mono> createOrReplaceWithResponse(int id, BinaryData * Gets a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -173,7 +182,8 @@ public Mono> createOrReplaceWithResponse(int id, BinaryData
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -213,7 +223,8 @@ public Mono> getWithResponse(int id, RequestOptions request * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -226,7 +237,8 @@ public Mono> getWithResponse(int id, RequestOptions request
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -266,7 +278,8 @@ public Mono> deleteWithResponse(int id, RequestOptions requestOpt * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -279,7 +292,8 @@ public Mono> deleteWithResponse(int id, RequestOptions requestOpt
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param format The format of the data. @@ -302,7 +316,8 @@ public Mono> exportWithResponse(int id, String format, Requ * Exports all users. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     users (Required): [
      *          (Required){
@@ -319,7 +334,8 @@ public Mono> exportWithResponse(int id, String format, Requ
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param format The format of the data. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClient.java index b84adfec4e..a8e660c88d 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClient.java @@ -46,7 +46,8 @@ public final class BasicClient { * Creates or updates a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -59,11 +60,13 @@ public final class BasicClient {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -76,7 +79,8 @@ public final class BasicClient {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -99,7 +103,8 @@ public Response createOrUpdateWithResponse(int id, BinaryData resour * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -112,11 +117,13 @@ public Response createOrUpdateWithResponse(int id, BinaryData resour
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -129,7 +136,8 @@ public Response createOrUpdateWithResponse(int id, BinaryData resour
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -153,7 +161,8 @@ public Response createOrReplaceWithResponse(int id, BinaryData resou * Gets a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -166,7 +175,8 @@ public Response createOrReplaceWithResponse(int id, BinaryData resou
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -206,7 +216,8 @@ public Response getWithResponse(int id, RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -219,7 +230,8 @@ public Response getWithResponse(int id, RequestOptions requestOption
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -259,7 +271,8 @@ public Response deleteWithResponse(int id, RequestOptions requestOptions) * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -272,7 +285,8 @@ public Response deleteWithResponse(int id, RequestOptions requestOptions)
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param format The format of the data. @@ -295,7 +309,8 @@ public Response exportWithResponse(int id, String format, RequestOpt * Exports all users. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     users (Required): [
      *          (Required){
@@ -312,7 +327,8 @@ public Response exportWithResponse(int id, String format, RequestOpt
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param format The format of the data. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClientBuilder.java index 8afed75e1f..e6c2d1b3dd 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/BasicClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/implementation/BasicClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/implementation/BasicClientImpl.java index 32e1118343..4756f79cb1 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/basic/implementation/BasicClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/basic/implementation/BasicClientImpl.java @@ -330,7 +330,8 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true) * Creates or updates a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -343,11 +344,13 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true)
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -360,7 +363,8 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true)
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -386,7 +390,8 @@ public Mono> createOrUpdateWithResponseAsync(int id, Binary * Creates or updates a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -399,11 +404,13 @@ public Mono> createOrUpdateWithResponseAsync(int id, Binary
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -416,7 +423,8 @@ public Mono> createOrUpdateWithResponseAsync(int id, Binary
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -441,7 +449,8 @@ public Response createOrUpdateWithResponse(int id, BinaryData resour * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -454,11 +463,13 @@ public Response createOrUpdateWithResponse(int id, BinaryData resour
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -471,7 +482,8 @@ public Response createOrUpdateWithResponse(int id, BinaryData resour
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -497,7 +509,8 @@ public Mono> createOrReplaceWithResponseAsync(int id, Binar * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -510,11 +523,13 @@ public Mono> createOrReplaceWithResponseAsync(int id, Binar
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -527,7 +542,8 @@ public Mono> createOrReplaceWithResponseAsync(int id, Binar
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param resource The resource instance. @@ -553,7 +569,8 @@ public Response createOrReplaceWithResponse(int id, BinaryData resou * Gets a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -566,7 +583,8 @@ public Response createOrReplaceWithResponse(int id, BinaryData resou
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -591,7 +609,8 @@ public Mono> getWithResponseAsync(int id, RequestOptions re * Gets a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -604,7 +623,8 @@ public Mono> getWithResponseAsync(int id, RequestOptions re
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -645,7 +665,8 @@ public Response getWithResponse(int id, RequestOptions requestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -658,7 +679,8 @@ public Response getWithResponse(int id, RequestOptions requestOption
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -699,7 +721,8 @@ private Mono> listSinglePageAsync(RequestOptions reque * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -712,7 +735,8 @@ private Mono> listSinglePageAsync(RequestOptions reque
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -772,7 +796,8 @@ public PagedFlux listAsync(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -785,7 +810,8 @@ public PagedFlux listAsync(RequestOptions requestOptions) {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -825,7 +851,8 @@ private PagedResponse listSinglePage(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -838,7 +865,8 @@ private PagedResponse listSinglePage(RequestOptions requestOptions)
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -922,7 +950,8 @@ public Response deleteWithResponse(int id, RequestOptions requestOptions) * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -935,7 +964,8 @@ public Response deleteWithResponse(int id, RequestOptions requestOptions)
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param format The format of the data. @@ -959,7 +989,8 @@ public Mono> exportWithResponseAsync(int id, String format, * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -972,7 +1003,8 @@ public Mono> exportWithResponseAsync(int id, String format,
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param format The format of the data. @@ -996,7 +1028,8 @@ public Response exportWithResponse(int id, String format, RequestOpt * Exports all users. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     users (Required): [
      *          (Required){
@@ -1013,7 +1046,8 @@ public Response exportWithResponse(int id, String format, RequestOpt
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param format The format of the data. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1036,7 +1070,8 @@ public Mono> exportAllUsersWithResponseAsync(String format, * Exports all users. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     users (Required): [
      *          (Required){
@@ -1053,7 +1088,8 @@ public Mono> exportAllUsersWithResponseAsync(String format,
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param format The format of the data. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1076,7 +1112,8 @@ public Response exportAllUsersWithResponse(String format, RequestOpt * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -1089,7 +1126,8 @@ public Response exportAllUsersWithResponse(String format, RequestOpt
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1114,7 +1152,8 @@ private Mono> listNextSinglePageAsync(String nextLink, * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional, Required on create)
@@ -1127,7 +1166,8 @@ private Mono> listNextSinglePageAsync(String nextLink,
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcAsyncClient.java index 9db25d7e4e..1bf9ed574d 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcAsyncClient.java @@ -17,8 +17,8 @@ import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; -import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollOperationDetails; +import com.azure.core.util.polling.PollerFlux; /** * Initializes a new instance of the asynchronous RpcClient type. @@ -42,15 +42,18 @@ public final class RpcAsyncClient { * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -66,7 +69,8 @@ public final class RpcAsyncClient {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClient.java index 2170e6bc8d..a655e2beb2 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClient.java @@ -42,15 +42,18 @@ public final class RpcClient { * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -66,7 +69,8 @@ public final class RpcClient {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClientBuilder.java index 7bb66a0108..87f97cc1c7 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/RpcClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/OperationLocationPollingStrategy.java index 4d4c1998ed..4d36e93548 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/PollingUtils.java index e7f20f6c4b..a36ab222f1 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/RpcClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/RpcClientImpl.java index c8f5a11840..89988d4b06 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/RpcClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/RpcClientImpl.java @@ -31,9 +31,9 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; -import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; @@ -178,15 +178,18 @@ Response longRunningRpcSync(@HostParam("endpoint") String endpoint, * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -202,7 +205,8 @@ Response longRunningRpcSync(@HostParam("endpoint") String endpoint,
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -225,15 +229,18 @@ private Mono> longRunningRpcWithResponseAsync(BinaryData bo * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -249,7 +256,8 @@ private Mono> longRunningRpcWithResponseAsync(BinaryData bo
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -271,15 +279,18 @@ private Response longRunningRpcWithResponse(BinaryData body, Request * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -295,7 +306,8 @@ private Response longRunningRpcWithResponse(BinaryData body, Request
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -324,15 +336,18 @@ public PollerFlux beginLongRunningRpcAsync(BinaryData bo * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -348,7 +363,8 @@ public PollerFlux beginLongRunningRpcAsync(BinaryData bo
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -377,15 +393,18 @@ public SyncPoller beginLongRunningRpc(BinaryData body, R * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -401,7 +420,8 @@ public SyncPoller beginLongRunningRpc(BinaryData body, R
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -432,15 +452,18 @@ public PollerFlux beginLongRunningRpcWit * Generate data. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prompt: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -456,7 +479,8 @@ public PollerFlux beginLongRunningRpcWit
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/SyncOperationLocationPollingStrategy.java index 79c3f0566e..91519ea0f9 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/rpc/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardAsyncClient.java index 7f473f8495..d2b9173284 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardAsyncClient.java @@ -17,8 +17,8 @@ import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; -import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollOperationDetails; +import com.azure.core.util.polling.PollerFlux; /** * Initializes a new instance of the asynchronous StandardClient type. @@ -44,21 +44,25 @@ public final class StandardAsyncClient { * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -82,7 +86,8 @@ public PollerFlux beginCreateOrReplace(String name, Bina * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -95,7 +100,8 @@ public PollerFlux beginCreateOrReplace(String name, Bina
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -117,7 +123,8 @@ public PollerFlux beginDelete(String name, RequestOptions requ * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -134,7 +141,8 @@ public PollerFlux beginDelete(String name, RequestOptions requ
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClient.java index 8895dc6683..70583e50d3 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClient.java @@ -44,21 +44,25 @@ public final class StandardClient { * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -82,7 +86,8 @@ public SyncPoller beginCreateOrReplace(String name, Bina * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -95,7 +100,8 @@ public SyncPoller beginCreateOrReplace(String name, Bina
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -117,7 +123,8 @@ public SyncPoller beginDelete(String name, RequestOptions requ * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -134,7 +141,8 @@ public SyncPoller beginDelete(String name, RequestOptions requ
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClientBuilder.java index 82da25b875..b8e8220ab4 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/StandardClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/OperationLocationPollingStrategy.java index e2adbc829c..4399ca0b0a 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/PollingUtils.java index 072dd02f18..0eeb3d902c 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/StandardClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/StandardClientImpl.java index f7e54a273b..4e1b41fb34 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/StandardClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/StandardClientImpl.java @@ -35,9 +35,9 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; -import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; @@ -226,21 +226,25 @@ Response exportSync(@HostParam("endpoint") String endpoint, * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -266,21 +270,25 @@ private Mono> createOrReplaceWithResponseAsync(String name, * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -306,21 +314,25 @@ private Response createOrReplaceWithResponse(String name, BinaryData * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -352,21 +364,25 @@ public PollerFlux beginCreateOrReplaceAsync(String name, * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -398,21 +414,25 @@ public SyncPoller beginCreateOrReplace(String name, Bina * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -444,21 +464,25 @@ public PollerFlux beginCreateOrReplaceWithModelAsync * Creates or replaces a User. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     role: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param resource The resource instance. @@ -490,7 +514,8 @@ public SyncPoller beginCreateOrReplaceWithModel(Stri * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -503,7 +528,8 @@ public SyncPoller beginCreateOrReplaceWithModel(Stri
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -527,7 +553,8 @@ private Mono> deleteWithResponseAsync(String name, RequestO * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -540,7 +567,8 @@ private Mono> deleteWithResponseAsync(String name, RequestO
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -563,7 +591,8 @@ private Response deleteWithResponse(String name, RequestOptions requ * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -576,7 +605,8 @@ private Response deleteWithResponse(String name, RequestOptions requ
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -605,7 +635,8 @@ public PollerFlux beginDeleteAsync(String name, RequestOptions * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -618,7 +649,8 @@ public PollerFlux beginDeleteAsync(String name, RequestOptions
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -647,7 +679,8 @@ public SyncPoller beginDelete(String name, RequestOptions requ * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -660,7 +693,8 @@ public SyncPoller beginDelete(String name, RequestOptions requ
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -690,7 +724,8 @@ public PollerFlux beginDeleteWithModelAsync(String n * Deletes a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -703,7 +738,8 @@ public PollerFlux beginDeleteWithModelAsync(String n
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -732,7 +768,8 @@ public SyncPoller beginDeleteWithModel(String name, * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -749,7 +786,8 @@ public SyncPoller beginDeleteWithModel(String name,
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. @@ -775,7 +813,8 @@ private Mono> exportWithResponseAsync(String name, String f * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -792,7 +831,8 @@ private Mono> exportWithResponseAsync(String name, String f
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. @@ -816,7 +856,8 @@ private Response exportWithResponse(String name, String format, Requ * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -833,7 +874,8 @@ private Response exportWithResponse(String name, String format, Requ
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. @@ -866,7 +908,8 @@ public PollerFlux beginExportAsync(String name, String f * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -883,7 +926,8 @@ public PollerFlux beginExportAsync(String name, String f
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. @@ -915,7 +959,8 @@ public SyncPoller beginExport(String name, String format * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -932,7 +977,8 @@ public SyncPoller beginExport(String name, String format
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. @@ -965,7 +1011,8 @@ public PollerFlux beginExportWithModelAsync( * Exports a User. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -982,7 +1029,8 @@ public PollerFlux beginExportWithModelAsync(
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name of user. * @param format The format of the data. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/SyncOperationLocationPollingStrategy.java index ecebf01abc..b5d04c1e8c 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/lro/standard/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelAsyncClient.java index 1f518dac04..1ae8733cae 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelAsyncClient.java @@ -44,11 +44,13 @@ public final class ModelAsyncClient { * get an embedding vector. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * put an embedding vector. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -91,23 +95,27 @@ public Mono> putWithResponse(BinaryData body, RequestOptions requ * post a model which has an embeddingVector property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClient.java index 170aadb44c..1ef8e9caad 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClient.java @@ -42,11 +42,13 @@ public final class ModelClient { * get an embedding vector. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * put an embedding vector. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -89,23 +93,27 @@ public Response putWithResponse(BinaryData body, RequestOptions requestOpt * post a model which has an embeddingVector property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClientBuilder.java index 50e42f831f..dd3c398f12 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/model/ModelClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/model/implementation/AzureCoreEmbeddingVectorsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/model/implementation/AzureCoreEmbeddingVectorsImpl.java index ae6979705b..b18505c2a6 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/model/implementation/AzureCoreEmbeddingVectorsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/model/implementation/AzureCoreEmbeddingVectorsImpl.java @@ -132,11 +132,13 @@ Response postSync(@HostParam("endpoint") String endpoint, * get an embedding vector. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,11 +157,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * get an embedding vector. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -178,11 +182,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * put an embedding vector. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -203,11 +209,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * put an embedding vector. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -227,23 +235,27 @@ public Response putWithResponse(BinaryData body, RequestOptions requestOpt * post a model which has an embeddingVector property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -265,23 +277,27 @@ public Mono> postWithResponseAsync(BinaryData body, Request * post a model which has an embeddingVector property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     embedding (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageAsyncClient.java index 7934db454d..d053ad5856 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageAsyncClient.java @@ -46,7 +46,8 @@ public final class PageAsyncClient { * List with Azure.Core.Page<>. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -59,7 +60,8 @@ public final class PageAsyncClient {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,15 +88,18 @@ public PagedFlux listWithPage(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     inputName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -107,7 +112,8 @@ public PagedFlux listWithPage(RequestOptions requestOptions) {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyInput The body of the input. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -127,7 +133,8 @@ public PagedFlux listWithParameters(BinaryData bodyInput, RequestOpt * List with custom page model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -140,7 +147,8 @@ public PagedFlux listWithParameters(BinaryData bodyInput, RequestOpt
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClient.java index 8c3d8c4fcb..3c2bc197e6 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClient.java @@ -42,7 +42,8 @@ public final class PageClient { * List with Azure.Core.Page<>. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -55,7 +56,8 @@ public final class PageClient {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -82,15 +84,18 @@ public PagedIterable listWithPage(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     inputName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -103,7 +108,8 @@ public PagedIterable listWithPage(RequestOptions requestOptions) {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyInput The body of the input. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -123,7 +129,8 @@ public PagedIterable listWithParameters(BinaryData bodyInput, Reques * List with custom page model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -136,7 +143,8 @@ public PagedIterable listWithParameters(BinaryData bodyInput, Reques
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClientBuilder.java index 80b9dd8cec..17485f8d1f 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/PageClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemAsyncClient.java index 7fd06e6fbd..c6fcfd66ff 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemAsyncClient.java @@ -46,11 +46,13 @@ public final class TwoModelsAsPageItemAsyncClient { * FirstItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,11 +72,13 @@ public PagedFlux listFirstItem(RequestOptions requestOptions) { * SecondItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemClient.java index 865846757e..b06f4588dc 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/TwoModelsAsPageItemClient.java @@ -42,11 +42,13 @@ public final class TwoModelsAsPageItemClient { * FirstItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public PagedIterable listFirstItem(RequestOptions requestOptions) { * SecondItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/PageClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/PageClientImpl.java index 63bf4c0cc1..1c666e8156 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/PageClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/PageClientImpl.java @@ -292,7 +292,8 @@ Response listWithCustomPageModelNextSync( * List with Azure.Core.Page<>. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -305,7 +306,8 @@ Response listWithCustomPageModelNextSync(
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -328,7 +330,8 @@ private Mono> listWithPageSinglePageAsync(RequestOptio * List with Azure.Core.Page<>. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -341,7 +344,8 @@ private Mono> listWithPageSinglePageAsync(RequestOptio
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -363,7 +367,8 @@ public PagedFlux listWithPageAsync(RequestOptions requestOptions) { * List with Azure.Core.Page<>. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -376,7 +381,8 @@ public PagedFlux listWithPageAsync(RequestOptions requestOptions) {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -398,7 +404,8 @@ private PagedResponse listWithPageSinglePage(RequestOptions requestO * List with Azure.Core.Page<>. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -411,7 +418,8 @@ private PagedResponse listWithPageSinglePage(RequestOptions requestO
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -441,15 +449,18 @@ public PagedIterable listWithPage(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     inputName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -462,7 +473,8 @@ public PagedIterable listWithPage(RequestOptions requestOptions) {
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyInput The body of the input. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -495,15 +507,18 @@ private Mono> listWithParametersSinglePageAsync(Binary * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     inputName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -516,7 +531,8 @@ private Mono> listWithParametersSinglePageAsync(Binary
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyInput The body of the input. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -547,15 +563,18 @@ public PagedFlux listWithParametersAsync(BinaryData bodyInput, Reque * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     inputName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -568,7 +587,8 @@ public PagedFlux listWithParametersAsync(BinaryData bodyInput, Reque
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyInput The body of the input. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -600,15 +620,18 @@ private PagedResponse listWithParametersSinglePage(BinaryData bodyIn * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     inputName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -621,7 +644,8 @@ private PagedResponse listWithParametersSinglePage(BinaryData bodyIn
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyInput The body of the input. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -644,7 +668,8 @@ public PagedIterable listWithParameters(BinaryData bodyInput, Reques * List with custom page model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -657,7 +682,8 @@ public PagedIterable listWithParameters(BinaryData bodyInput, Reques
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -680,7 +706,8 @@ private Mono> listWithCustomPageModelSinglePageAsync(R * List with custom page model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -693,7 +720,8 @@ private Mono> listWithCustomPageModelSinglePageAsync(R
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -715,7 +743,8 @@ public PagedFlux listWithCustomPageModelAsync(RequestOptions request * List with custom page model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -728,7 +757,8 @@ public PagedFlux listWithCustomPageModelAsync(RequestOptions request
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -750,7 +780,8 @@ private PagedResponse listWithCustomPageModelSinglePage(RequestOptio * List with custom page model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -763,7 +794,8 @@ private PagedResponse listWithCustomPageModelSinglePage(RequestOptio
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -787,7 +819,8 @@ public PagedIterable listWithCustomPageModel(RequestOptions requestO * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -800,7 +833,8 @@ public PagedIterable listWithCustomPageModel(RequestOptions requestO
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -827,7 +861,8 @@ private Mono> listWithPageNextSinglePageAsync(String n * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -840,7 +875,8 @@ private Mono> listWithPageNextSinglePageAsync(String n
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -865,7 +901,8 @@ private PagedResponse listWithPageNextSinglePage(String nextLink, Re * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -878,7 +915,8 @@ private PagedResponse listWithPageNextSinglePage(String nextLink, Re
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -904,7 +942,8 @@ private Mono> listWithParametersNextSinglePageAsync(St * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -917,7 +956,8 @@ private Mono> listWithParametersNextSinglePageAsync(St
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -942,7 +982,8 @@ private PagedResponse listWithParametersNextSinglePage(String nextLi * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -955,7 +996,8 @@ private PagedResponse listWithParametersNextSinglePage(String nextLi
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -982,7 +1024,8 @@ private Mono> listWithCustomPageModelNextSinglePageAsy * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
@@ -995,7 +1038,8 @@ private Mono> listWithCustomPageModelNextSinglePageAsy
      *     ]
      *     etag: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/TwoModelsAsPageItemsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/TwoModelsAsPageItemsImpl.java index 239ad70130..82ded72c5e 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/TwoModelsAsPageItemsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/page/implementation/TwoModelsAsPageItemsImpl.java @@ -162,11 +162,13 @@ Response listSecondItemNextSync(@PathParam(value = "nextLink", encod * FirstItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -191,11 +193,13 @@ private Mono> listFirstItemSinglePageAsync(RequestOpti * FirstItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -218,11 +222,13 @@ public PagedFlux listFirstItemAsync(RequestOptions requestOptions) { * FirstItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -245,11 +251,13 @@ private PagedResponse listFirstItemSinglePage(RequestOptions request * FirstItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -272,11 +280,13 @@ public PagedIterable listFirstItem(RequestOptions requestOptions) { * SecondItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -301,11 +311,13 @@ private Mono> listSecondItemSinglePageAsync(RequestOpt * SecondItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -328,11 +340,13 @@ public PagedFlux listSecondItemAsync(RequestOptions requestOptions) * SecondItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -355,11 +369,13 @@ private PagedResponse listSecondItemSinglePage(RequestOptions reques * SecondItem. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -384,11 +400,13 @@ public PagedIterable listSecondItem(RequestOptions requestOptions) { * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -416,11 +434,13 @@ private Mono> listFirstItemNextSinglePageAsync(String * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -446,11 +466,13 @@ private PagedResponse listFirstItemNextSinglePage(String nextLink, R * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -478,11 +500,13 @@ private Mono> listSecondItemNextSinglePageAsync(String * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarAsyncClient.java index a7cb562f8e..7fb1ba02e2 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarAsyncClient.java @@ -42,9 +42,11 @@ public final class ScalarAsyncClient { * get azureLocation value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> getWithResponse(RequestOptions requestOptions) * put azureLocation value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -85,19 +89,23 @@ public Mono> putWithResponse(BinaryData body, RequestOptions requ * post a model which has azureLocation property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClient.java index 593f5fd1ea..0d3c9d7d41 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClient.java @@ -40,9 +40,11 @@ public final class ScalarClient { * get azureLocation value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put azureLocation value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -83,19 +87,23 @@ public Response putWithResponse(BinaryData body, RequestOptions requestOpt * post a model which has azureLocation property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClientBuilder.java index e6b649b449..ca75ac6563 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/ScalarClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/implementation/AzureLocationScalarsImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/implementation/AzureLocationScalarsImpl.java index ad6f9f9f66..f1b9f41b22 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/implementation/AzureLocationScalarsImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/scalar/implementation/AzureLocationScalarsImpl.java @@ -169,9 +169,11 @@ Response querySync(@HostParam("endpoint") String endpoint, @QueryParam("re * get azureLocation value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -190,9 +192,11 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * get azureLocation value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -211,9 +215,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put azureLocation value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -234,9 +240,11 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * put azureLocation value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -256,19 +264,23 @@ public Response putWithResponse(BinaryData body, RequestOptions requestOpt * post a model which has azureLocation property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -290,19 +302,23 @@ public Mono> postWithResponseAsync(BinaryData body, Request * post a model which has azureLocation property. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     location: String (Required)
      * }
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsAsyncClient.java index 68f22bd50e..6c86531805 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsAsyncClient.java @@ -62,12 +62,14 @@ public final class TraitsAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param foo header in request. @@ -98,19 +100,23 @@ public Mono> smokeTestWithResponse(int id, String foo, Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionValue: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionResult: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClient.java b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClient.java index ef9927aafb..be7d8d7c96 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClient.java @@ -60,12 +60,14 @@ public final class TraitsClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param foo header in request. @@ -95,19 +97,23 @@ public Response smokeTestWithResponse(int id, String foo, RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionValue: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionResult: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClientBuilder.java index fd180f21ec..10e2b6da27 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/TraitsClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/implementation/TraitsClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/implementation/TraitsClientImpl.java index fe021b1fc9..b115f78d1c 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/core/traits/implementation/TraitsClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/core/traits/implementation/TraitsClientImpl.java @@ -211,12 +211,14 @@ Response repeatableActionSync(@HostParam("endpoint") String endpoint * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param foo header in request. @@ -253,12 +255,14 @@ public Mono> smokeTestWithResponseAsync(int id, String foo, * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param foo header in request. @@ -289,19 +293,23 @@ public Response smokeTestWithResponse(int id, String foo, RequestOpt * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionValue: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionResult: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param body The body parameter. @@ -348,19 +356,23 @@ public Mono> repeatableActionWithResponseAsync(int id, Bina * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionValue: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     userActionResult: String (Required)
      * }
-     * }
+ * } + *
* * @param id The user's id. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleAsyncClient.java b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleAsyncClient.java index 6f1a775f51..90a37e5e3d 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleAsyncClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleAsyncClient.java @@ -43,7 +43,8 @@ public final class AzureExampleAsyncClient { * The basicAction operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -58,11 +59,13 @@ public final class AzureExampleAsyncClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -77,7 +80,8 @@ public final class AzureExampleAsyncClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param headerParam The headerParam parameter. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClient.java b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClient.java index 5c99a1830b..6069428739 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClient.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClient.java @@ -41,7 +41,8 @@ public final class AzureExampleClient { * The basicAction operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -56,11 +57,13 @@ public final class AzureExampleClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -75,7 +78,8 @@ public final class AzureExampleClient {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param headerParam The headerParam parameter. diff --git a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClientBuilder.java b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClientBuilder.java index 1222fc74f1..bf36be2e94 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClientBuilder.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/AzureExampleClientBuilder.java @@ -18,8 +18,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/implementation/AzureExampleClientImpl.java b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/implementation/AzureExampleClientImpl.java index fa748ec0a3..b1c40b8f01 100644 --- a/typespec-tests/src/main/java/com/_specs_/azure/example/basic/implementation/AzureExampleClientImpl.java +++ b/typespec-tests/src/main/java/com/_specs_/azure/example/basic/implementation/AzureExampleClientImpl.java @@ -175,7 +175,8 @@ Response basicActionSync(@HostParam("endpoint") String endpoint, * The basicAction operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -190,11 +191,13 @@ Response basicActionSync(@HostParam("endpoint") String endpoint,
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -209,7 +212,8 @@ Response basicActionSync(@HostParam("endpoint") String endpoint,
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param headerParam The headerParam parameter. @@ -235,7 +239,8 @@ public Mono> basicActionWithResponseAsync(String queryParam * The basicAction operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -250,11 +255,13 @@ public Mono> basicActionWithResponseAsync(String queryParam
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     stringProperty: String (Required)
      *     modelProperty (Optional): {
@@ -269,7 +276,8 @@ public Mono> basicActionWithResponseAsync(String queryParam
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param headerParam The headerParam parameter. diff --git a/typespec-tests/src/main/java/com/authentication/apikey/ApiKeyClientBuilder.java b/typespec-tests/src/main/java/com/authentication/apikey/ApiKeyClientBuilder.java index 12c654d41d..12c02f1a04 100644 --- a/typespec-tests/src/main/java/com/authentication/apikey/ApiKeyClientBuilder.java +++ b/typespec-tests/src/main/java/com/authentication/apikey/ApiKeyClientBuilder.java @@ -20,8 +20,8 @@ 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.HttpLoggingPolicy; 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.KeyCredentialPolicy; diff --git a/typespec-tests/src/main/java/com/authentication/http/custom/CustomClientBuilder.java b/typespec-tests/src/main/java/com/authentication/http/custom/CustomClientBuilder.java index 2242889e36..514a16116b 100644 --- a/typespec-tests/src/main/java/com/authentication/http/custom/CustomClientBuilder.java +++ b/typespec-tests/src/main/java/com/authentication/http/custom/CustomClientBuilder.java @@ -20,8 +20,8 @@ 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.HttpLoggingPolicy; 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.KeyCredentialPolicy; diff --git a/typespec-tests/src/main/java/com/authentication/oauth2/OAuth2ClientBuilder.java b/typespec-tests/src/main/java/com/authentication/oauth2/OAuth2ClientBuilder.java index 4c713e4cfa..5fa7fe02f6 100644 --- a/typespec-tests/src/main/java/com/authentication/oauth2/OAuth2ClientBuilder.java +++ b/typespec-tests/src/main/java/com/authentication/oauth2/OAuth2ClientBuilder.java @@ -21,8 +21,8 @@ import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.AddHeadersPolicy; import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/authentication/union/UnionClientBuilder.java b/typespec-tests/src/main/java/com/authentication/union/UnionClientBuilder.java index 30aa7abda3..d2d3d623d4 100644 --- a/typespec-tests/src/main/java/com/authentication/union/UnionClientBuilder.java +++ b/typespec-tests/src/main/java/com/authentication/union/UnionClientBuilder.java @@ -23,8 +23,8 @@ import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.AddHeadersPolicy; import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; 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.KeyCredentialPolicy; diff --git a/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManager.java b/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManager.java index 20036c52da..17935e9ef8 100644 --- a/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManager.java +++ b/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManager.java @@ -11,8 +11,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/implementation/ManagedIdentityClientImpl.java b/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/implementation/ManagedIdentityClientImpl.java index 7ca7ea19a0..7de2f07ff4 100644 --- a/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/implementation/ManagedIdentityClientImpl.java +++ b/typespec-tests/src/main/java/com/azure/resourcemanager/models/commontypes/managedidentity/implementation/ManagedIdentityClientImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; diff --git a/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/ResourcesManager.java b/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/ResourcesManager.java index 96265edfcb..772e8a6d7b 100644 --- a/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/ResourcesManager.java +++ b/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/ResourcesManager.java @@ -11,8 +11,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/implementation/ResourcesClientImpl.java b/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/implementation/ResourcesClientImpl.java index 8d0b42c73e..dfaab4abe7 100644 --- a/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/implementation/ResourcesClientImpl.java +++ b/typespec-tests/src/main/java/com/azure/resourcemanager/models/resources/implementation/ResourcesClientImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; diff --git a/typespec-tests/src/main/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdClientBuilder.java b/typespec-tests/src/main/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdClientBuilder.java index 2fe64474b2..9f1380a4ab 100644 --- a/typespec-tests/src/main/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdClientBuilder.java +++ b/typespec-tests/src/main/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/armresourceprovider/ArmResourceProviderManager.java b/typespec-tests/src/main/java/com/cadl/armresourceprovider/ArmResourceProviderManager.java index f8f5fc8810..7ab65ba300 100644 --- a/typespec-tests/src/main/java/com/cadl/armresourceprovider/ArmResourceProviderManager.java +++ b/typespec-tests/src/main/java/com/cadl/armresourceprovider/ArmResourceProviderManager.java @@ -11,8 +11,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ArmResourceProviderClientImpl.java b/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ArmResourceProviderClientImpl.java index e4703c14c4..9c02f2859f 100644 --- a/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ArmResourceProviderClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ArmResourceProviderClientImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; diff --git a/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ChildExtensionResourceInterfacesClientImpl.java b/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ChildExtensionResourceInterfacesClientImpl.java index 26aab67662..98b06f648e 100644 --- a/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ChildExtensionResourceInterfacesClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/armresourceprovider/implementation/ChildExtensionResourceInterfacesClientImpl.java @@ -77,7 +77,8 @@ public interface ChildExtensionResourceInterfacesService { @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceUri") String resourceUri, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @PathParam("childExtensionResourceName") String childExtensionResourceName, @HeaderParam("Accept") String accept, Context context); @@ -86,7 +87,8 @@ Mono> get(@HostParam("endpoint") String en @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceUri") String resourceUri, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @PathParam("childExtensionResourceName") String childExtensionResourceName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @@ -96,7 +98,8 @@ Mono>> createOrUpdate(@HostParam("endpoint") String en @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceUri") String resourceUri, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @PathParam("childExtensionResourceName") String childExtensionResourceName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @@ -107,7 +110,8 @@ Mono> update(@HostParam("endpoint") String @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("resourceUri") String resourceUri, + @QueryParam("api-version") String apiVersion, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @PathParam("childExtensionResourceName") String childExtensionResourceName, @HeaderParam("Accept") String accept, Context context); @@ -118,7 +122,7 @@ Mono>> delete(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByTopLevelArmResource( @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("resourceUri") String resourceUri, + @PathParam(value = "resourceUri", encoded = true) String resourceUri, @PathParam("topLevelArmResourceName") String topLevelArmResourceName, @HeaderParam("Accept") String accept, Context context); diff --git a/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/ArmStreamStyleSerializationManager.java b/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/ArmStreamStyleSerializationManager.java index 7b24317712..337c4c98fb 100644 --- a/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/ArmStreamStyleSerializationManager.java +++ b/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/ArmStreamStyleSerializationManager.java @@ -11,8 +11,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/ArmStreamStyleSerializationClientImpl.java b/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/ArmStreamStyleSerializationClientImpl.java index 5abcf9e421..e5fdac9506 100644 --- a/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/ArmStreamStyleSerializationClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/ArmStreamStyleSerializationClientImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; diff --git a/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/TopLevelArmResourcesImpl.java b/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/TopLevelArmResourcesImpl.java index e643c94bde..26179eb2c3 100644 --- a/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/TopLevelArmResourcesImpl.java +++ b/typespec-tests/src/main/java/com/cadl/armstreamstyleserialization/implementation/TopLevelArmResourcesImpl.java @@ -9,8 +9,8 @@ import com.cadl.armstreamstyleserialization.fluent.TopLevelArmResourcesClient; import com.cadl.armstreamstyleserialization.fluent.models.TopLevelArmResourceInner; import com.cadl.armstreamstyleserialization.models.TopLevelArmResource; -import com.cadl.armstreamstyleserialization.models.TopLevelArmResources; import com.cadl.armstreamstyleserialization.models.TopLevelArmResourceTagsUpdate; +import com.cadl.armstreamstyleserialization.models.TopLevelArmResources; public final class TopLevelArmResourcesImpl implements TopLevelArmResources { private static final ClientLogger LOGGER = new ClientLogger(TopLevelArmResourcesImpl.class); diff --git a/typespec-tests/src/main/java/com/cadl/builtin/BuiltinAsyncClient.java b/typespec-tests/src/main/java/com/cadl/builtin/BuiltinAsyncClient.java index 3ad2476dde..ee19bf7aed 100644 --- a/typespec-tests/src/main/java/com/cadl/builtin/BuiltinAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/builtin/BuiltinAsyncClient.java @@ -61,7 +61,8 @@ public final class BuiltinAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -95,7 +96,8 @@ public final class BuiltinAsyncClient {
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param queryParamEncoded The queryParamEncoded parameter. @@ -117,7 +119,8 @@ public Mono> readWithResponse(String queryParam, String que * The write operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -151,7 +154,8 @@ public Mono> readWithResponse(String queryParam, String que
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClient.java b/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClient.java index c221fdec1a..b262f5a61e 100644 --- a/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClient.java +++ b/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClient.java @@ -59,7 +59,8 @@ public final class BuiltinClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -93,7 +94,8 @@ public final class BuiltinClient {
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param queryParamEncoded The queryParamEncoded parameter. @@ -115,7 +117,8 @@ public Response readWithResponse(String queryParam, String queryPara * The write operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -149,7 +152,8 @@ public Response readWithResponse(String queryParam, String queryPara
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClientBuilder.java b/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClientBuilder.java index c6a138900b..e031f0289a 100644 --- a/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/builtin/BuiltinClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/builtin/implementation/BuiltinOpsImpl.java b/typespec-tests/src/main/java/com/cadl/builtin/implementation/BuiltinOpsImpl.java index 7ea2c40fd9..020f70fc86 100644 --- a/typespec-tests/src/main/java/com/cadl/builtin/implementation/BuiltinOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/builtin/implementation/BuiltinOpsImpl.java @@ -121,7 +121,8 @@ Response writeSync(@HostParam("endpoint") String endpoint, * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -155,7 +156,8 @@ Response writeSync(@HostParam("endpoint") String endpoint,
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param queryParamEncoded The queryParamEncoded parameter. @@ -194,7 +196,8 @@ public Mono> readWithResponseAsync(String queryParam, Strin * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -228,7 +231,8 @@ public Mono> readWithResponseAsync(String queryParam, Strin
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param queryParam The queryParam parameter. * @param queryParamEncoded The queryParamEncoded parameter. @@ -251,7 +255,8 @@ public Response readWithResponse(String queryParam, String queryPara * The write operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -285,7 +290,8 @@ public Response readWithResponse(String queryParam, String queryPara
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -306,7 +312,8 @@ public Mono> writeWithResponseAsync(BinaryData body, RequestOptio * The write operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
@@ -340,7 +347,8 @@ public Mono> writeWithResponseAsync(BinaryData body, RequestOptio
      *         base64url: Base64Url (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesAsyncClient.java b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesAsyncClient.java index 5a1c5f9687..8bbfd58c9c 100644 --- a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesAsyncClient.java @@ -43,13 +43,15 @@ public final class DiscriminatorEdgeCasesAsyncClient { * The getChildRequiredDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     anotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getChildRequiredDiscrimWithResponse(RequestOpt * The getChildNewDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     differentDiscriminator: String (Required)
      *     yetAnotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClient.java b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClient.java index 3c3d674188..3844c716eb 100644 --- a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClient.java +++ b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClient.java @@ -41,13 +41,15 @@ public final class DiscriminatorEdgeCasesClient { * The getChildRequiredDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     anotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getChildRequiredDiscrimWithResponse(RequestOptions r * The getChildNewDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     differentDiscriminator: String (Required)
      *     yetAnotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClientBuilder.java b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClientBuilder.java index 998da21ec2..f0ced21776 100644 --- a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/DiscriminatorEdgeCasesClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/implementation/DiscriminatorEdgeCasesClientImpl.java b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/implementation/DiscriminatorEdgeCasesClientImpl.java index 06e355a192..7dd69966b5 100644 --- a/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/implementation/DiscriminatorEdgeCasesClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/discriminatoredgecases/implementation/DiscriminatorEdgeCasesClientImpl.java @@ -166,13 +166,15 @@ Response getChildNewDiscrimSync(@HostParam("endpoint") String endpoi * The getChildRequiredDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     anotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -192,13 +194,15 @@ public Mono> getChildRequiredDiscrimWithResponseAsync(Reque * The getChildRequiredDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     anotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,14 +221,16 @@ public Response getChildRequiredDiscrimWithResponse(RequestOptions r * The getChildNewDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     differentDiscriminator: String (Required)
      *     yetAnotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -244,14 +250,16 @@ public Mono> getChildNewDiscrimWithResponseAsync(RequestOpt * The getChildNewDiscrim operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     discriminator: String (Required)
      *     aProperty: String (Required)
      *     differentDiscriminator: String (Required)
      *     yetAnotherProperty: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceAsyncClient.java b/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceAsyncClient.java index 51b5c4cfcf..bb668e7c62 100644 --- a/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceAsyncClient.java @@ -52,9 +52,11 @@ public final class EnumServiceAsyncClient { * The getColor operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -73,9 +75,11 @@ public Mono> getColorWithResponse(RequestOptions requestOpt * The getColorModel operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -94,7 +98,8 @@ public Mono> getColorModelWithResponse(RequestOptions reque * The setColorModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -107,7 +112,8 @@ public Mono> getColorModelWithResponse(RequestOptions reque
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param color The color parameter. Allowed values: "Red", "Blue", "Green". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -127,7 +133,8 @@ public Mono> setColorModelWithResponse(String color, Reques * The setPriority operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -140,7 +147,8 @@ public Mono> setColorModelWithResponse(String color, Reques
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param priority The priority parameter. Allowed values: 100, 0. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -160,7 +168,8 @@ public Mono> setPriorityWithResponse(String priority, Reque * The getRunningOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -173,7 +182,8 @@ public Mono> setPriorityWithResponse(String priority, Reque
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -192,7 +202,8 @@ public Mono> getRunningOperationWithResponse(RequestOptions * The getOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -205,7 +216,8 @@ public Mono> getRunningOperationWithResponse(RequestOptions
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param state The state parameter. Allowed values: "Running", "Completed", "Failed". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -233,9 +245,11 @@ public Mono> getOperationWithResponse(String state, Request * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -264,9 +278,11 @@ public Mono> setStringEnumArrayWithResponse(List co * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -295,9 +311,11 @@ public Mono> setIntEnumArrayWithResponse(List prior * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -326,9 +344,11 @@ public Mono> setStringArrayWithResponse(List string * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -356,9 +376,11 @@ public Mono> setIntArrayWithResponse(List intArray * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -387,9 +409,11 @@ public Mono> setStringEnumMultiWithResponse(List co * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -418,9 +442,11 @@ public Mono> setIntEnumMultiWithResponse(List prior * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -449,9 +475,11 @@ public Mono> setStringMultiWithResponse(List string * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -478,9 +506,11 @@ public Mono> setIntMultiWithResponse(List intArray * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -645,7 +675,7 @@ public Mono setStringEnumArray(List colorArray, List Objects.toString(paramItemValue, "")) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -668,7 +698,7 @@ public Mono setStringEnumArray(List colorArray) { return setStringEnumArrayWithResponse(colorArray.stream() .map(paramItemValue -> Objects.toString(paramItemValue, "")) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -699,7 +729,7 @@ public Mono setIntEnumArray(List priorityArray, List return setIntEnumArrayWithResponse(priorityArray.stream() .map(paramItemValue -> paramItemValue == null ? "" : String.valueOf(paramItemValue.toInt())) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -722,7 +752,7 @@ public Mono setIntEnumArray(List priorityArray) { return setIntEnumArrayWithResponse(priorityArray.stream() .map(paramItemValue -> paramItemValue == null ? "" : String.valueOf(paramItemValue.toInt())) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -851,7 +881,7 @@ public Mono setStringEnumMulti(List colorArray, List Objects.toString(paramItemValue, "")) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -874,7 +904,7 @@ public Mono setStringEnumMulti(List colorArray) { return setStringEnumMultiWithResponse(colorArray.stream() .map(paramItemValue -> Objects.toString(paramItemValue, "")) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -905,7 +935,7 @@ public Mono setIntEnumMulti(List priorityArray, List return setIntEnumMultiWithResponse(priorityArray.stream() .map(paramItemValue -> paramItemValue == null ? "" : String.valueOf(paramItemValue.toInt())) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -928,7 +958,7 @@ public Mono setIntEnumMulti(List priorityArray) { return setIntEnumMultiWithResponse(priorityArray.stream() .map(paramItemValue -> paramItemValue == null ? "" : String.valueOf(paramItemValue.toInt())) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -1056,7 +1086,7 @@ public Mono setStringEnumArrayHeader(List colorArray, List Objects.toString(paramItemValue, "")) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } /** @@ -1079,6 +1109,6 @@ public Mono setStringEnumArrayHeader(List colorArray) { return setStringEnumArrayHeaderWithResponse(colorArray.stream() .map(paramItemValue -> Objects.toString(paramItemValue, "")) .collect(Collectors.toList()), requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(String.class)); + .map(protocolMethodData -> protocolMethodData.toObject(String.class)); } } diff --git a/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClient.java b/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClient.java index 97b21c8f17..ee216bdba3 100644 --- a/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClient.java +++ b/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClient.java @@ -50,9 +50,11 @@ public final class EnumServiceClient { * The getColor operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -71,9 +73,11 @@ public Response getColorWithResponse(RequestOptions requestOptions) * The getColorModel operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -92,7 +96,8 @@ public Response getColorModelWithResponse(RequestOptions requestOpti * The setColorModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -105,7 +110,8 @@ public Response getColorModelWithResponse(RequestOptions requestOpti
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param color The color parameter. Allowed values: "Red", "Blue", "Green". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -125,7 +131,8 @@ public Response setColorModelWithResponse(String color, RequestOptio * The setPriority operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -138,7 +145,8 @@ public Response setColorModelWithResponse(String color, RequestOptio
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param priority The priority parameter. Allowed values: 100, 0. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -158,7 +166,8 @@ public Response setPriorityWithResponse(String priority, RequestOpti * The getRunningOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -171,7 +180,8 @@ public Response setPriorityWithResponse(String priority, RequestOpti
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -190,7 +200,8 @@ public Response getRunningOperationWithResponse(RequestOptions reque * The getOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -203,7 +214,8 @@ public Response getRunningOperationWithResponse(RequestOptions reque
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param state The state parameter. Allowed values: "Running", "Completed", "Failed". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -231,9 +243,11 @@ public Response getOperationWithResponse(String state, RequestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,9 +275,11 @@ public Response setStringEnumArrayWithResponse(List colorArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -291,9 +307,11 @@ public Response setIntEnumArrayWithResponse(List priorityArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -321,9 +339,11 @@ public Response setStringArrayWithResponse(List stringArray, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -351,9 +371,11 @@ public Response setIntArrayWithResponse(List intArray, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -381,9 +403,11 @@ public Response setStringEnumMultiWithResponse(List colorArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -411,9 +435,11 @@ public Response setIntEnumMultiWithResponse(List priorityArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -441,9 +467,11 @@ public Response setStringMultiWithResponse(List stringArray, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -470,9 +498,11 @@ public Response setIntMultiWithResponse(List intArray, Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClientBuilder.java b/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClientBuilder.java index f53db80219..7cee73d72a 100644 --- a/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/enumservice/EnumServiceClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/enumservice/implementation/EnumServiceClientImpl.java b/typespec-tests/src/main/java/com/cadl/enumservice/implementation/EnumServiceClientImpl.java index 12b6c27112..9fbd78c78b 100644 --- a/typespec-tests/src/main/java/com/cadl/enumservice/implementation/EnumServiceClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/enumservice/implementation/EnumServiceClientImpl.java @@ -429,9 +429,11 @@ Response setStringEnumArrayHeaderSync(@HostParam("endpoint") String * The getColor operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -450,9 +452,11 @@ public Mono> getColorWithResponseAsync(RequestOptions reque * The getColor operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -471,9 +475,11 @@ public Response getColorWithResponse(RequestOptions requestOptions) * The getColorModel operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -493,9 +499,11 @@ public Mono> getColorModelWithResponseAsync(RequestOptions * The getColorModel operation. *

Response Body Schema

* - *
{@code
-     * String(Red / Blue / Green)
-     * }
+ *
+     * {@code
+     * String(Red/Blue/Green)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -514,7 +522,8 @@ public Response getColorModelWithResponse(RequestOptions requestOpti * The setColorModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -527,7 +536,8 @@ public Response getColorModelWithResponse(RequestOptions requestOpti
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param color The color parameter. Allowed values: "Red", "Blue", "Green". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -548,7 +558,8 @@ public Mono> setColorModelWithResponseAsync(String color, R * The setColorModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -561,7 +572,8 @@ public Mono> setColorModelWithResponseAsync(String color, R
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param color The color parameter. Allowed values: "Red", "Blue", "Green". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -581,7 +593,8 @@ public Response setColorModelWithResponse(String color, RequestOptio * The setPriority operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -594,7 +607,8 @@ public Response setColorModelWithResponse(String color, RequestOptio
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param priority The priority parameter. Allowed values: 100, 0. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -615,7 +629,8 @@ public Mono> setPriorityWithResponseAsync(String priority, * The setPriority operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -628,7 +643,8 @@ public Mono> setPriorityWithResponseAsync(String priority,
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param priority The priority parameter. Allowed values: 100, 0. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -648,7 +664,8 @@ public Response setPriorityWithResponse(String priority, RequestOpti * The getRunningOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -661,7 +678,8 @@ public Response setPriorityWithResponse(String priority, RequestOpti
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -682,7 +700,8 @@ public Mono> getRunningOperationWithResponseAsync(RequestOp * The getRunningOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -695,7 +714,8 @@ public Mono> getRunningOperationWithResponseAsync(RequestOp
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -715,7 +735,8 @@ public Response getRunningOperationWithResponse(RequestOptions reque * The getOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -728,7 +749,8 @@ public Response getRunningOperationWithResponse(RequestOptions reque
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param state The state parameter. Allowed values: "Running", "Completed", "Failed". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -749,7 +771,8 @@ public Mono> getOperationWithResponseAsync(String state, Re * The getOperation operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String(Read/Write) (Required)
      *     best: boolean (Required)
@@ -762,7 +785,8 @@ public Mono> getOperationWithResponseAsync(String state, Re
      *     colorModelValue: String(Red/Blue/Green) (Required)
      *     unitValue: String(1/0.001/1000) (Optional)
      * }
-     * }
+ * } + *
* * @param state The state parameter. Allowed values: "Running", "Completed", "Failed". * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -790,9 +814,11 @@ public Response getOperationWithResponse(String state, RequestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -825,9 +851,11 @@ public Mono> setStringEnumArrayWithResponseAsync(ListResponse Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -859,9 +887,11 @@ public Response setStringEnumArrayWithResponse(List colorArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -894,9 +924,11 @@ public Mono> setIntEnumArrayWithResponseAsync(List * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -928,9 +960,11 @@ public Response setIntEnumArrayWithResponse(List priorityArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -963,9 +997,11 @@ public Mono> setStringArrayWithResponseAsync(List s * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -997,9 +1033,11 @@ public Response setStringArrayWithResponse(List stringArray, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1031,9 +1069,11 @@ public Mono> setIntArrayWithResponseAsync(List int * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1063,9 +1103,11 @@ public Response setIntArrayWithResponse(List intArray, Requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1097,9 +1139,11 @@ public Mono> setStringEnumMultiWithResponseAsync(ListResponse Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1130,9 +1174,11 @@ public Response setStringEnumMultiWithResponse(List colorArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1164,9 +1210,11 @@ public Mono> setIntEnumMultiWithResponseAsync(List * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param priorityArray The priorityArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1197,9 +1245,11 @@ public Response setIntEnumMultiWithResponse(List priorityArr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1231,9 +1281,11 @@ public Mono> setStringMultiWithResponseAsync(List s * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param stringArray The stringArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1264,9 +1316,11 @@ public Response setStringMultiWithResponse(List stringArray, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1298,9 +1352,11 @@ public Mono> setIntMultiWithResponseAsync(List int * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param intArray The intArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1329,9 +1385,11 @@ public Response setIntMultiWithResponse(List intArray, Requ * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1363,9 +1421,11 @@ public Mono> setStringEnumArrayHeaderWithResponseAsync(List * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param colorArray The colorArray parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelAsyncClient.java b/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelAsyncClient.java index 602e578228..667da8cd9b 100644 --- a/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelAsyncClient.java @@ -42,7 +42,8 @@ public final class ErrorModelAsyncClient { * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     error (Required): {
@@ -58,7 +59,8 @@ public final class ErrorModelAsyncClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClient.java b/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClient.java index 979c6a833b..1a545c8bdd 100644 --- a/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClient.java +++ b/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClient.java @@ -40,7 +40,8 @@ public final class ErrorModelClient { * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     error (Required): {
@@ -56,7 +57,8 @@ public final class ErrorModelClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClientBuilder.java b/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClientBuilder.java index 017eadb268..bbd3ed6505 100644 --- a/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/errormodel/ErrorModelClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/errormodel/implementation/ErrorOpsImpl.java b/typespec-tests/src/main/java/com/cadl/errormodel/implementation/ErrorOpsImpl.java index 259b2fa4b1..aff97f9805 100644 --- a/typespec-tests/src/main/java/com/cadl/errormodel/implementation/ErrorOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/errormodel/implementation/ErrorOpsImpl.java @@ -79,7 +79,8 @@ Response readSync(@HostParam("endpoint") String endpoint, @HeaderPar * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     error (Required): {
@@ -95,7 +96,8 @@ Response readSync(@HostParam("endpoint") String endpoint, @HeaderPar
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -115,7 +117,8 @@ public Mono> readWithResponseAsync(RequestOptions requestOp * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     error (Required): {
@@ -131,7 +134,8 @@ public Mono> readWithResponseAsync(RequestOptions requestOp
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/flatten/FlattenAsyncClient.java b/typespec-tests/src/main/java/com/cadl/flatten/FlattenAsyncClient.java index f90ced9c8a..5ddd2e3628 100644 --- a/typespec-tests/src/main/java/com/cadl/flatten/FlattenAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/flatten/FlattenAsyncClient.java @@ -55,7 +55,8 @@ public final class FlattenAsyncClient { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     endpoint: String (Required)
      *     user (Optional): {
@@ -65,7 +66,8 @@ public final class FlattenAsyncClient {
      *     constant: String (Required)
      *     requiredInt: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -86,11 +88,13 @@ public Mono> sendWithResponse(String id, BinaryData sendRequest, * The sendProjectedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     file_id: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendProjectedNameRequest The sendProjectedNameRequest parameter. @@ -119,7 +123,8 @@ public Mono> sendProjectedNameWithResponse(String id, BinaryData * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -136,7 +141,8 @@ public Mono> sendProjectedNameWithResponse(String id, BinaryData
      *     _dummy: String (Optional)
      *     constant: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -158,7 +164,8 @@ public Mono> sendLongWithResponse(String name, BinaryData sendLon * The update operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     patch (Optional, Required on create): {
      *         title: String (Optional)
@@ -166,11 +173,13 @@ public Mono> sendLongWithResponse(String name, BinaryData sendLon
      *         status: String(NotStarted/InProgress/Completed) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: long (Required)
      *     title: String (Required)
@@ -181,7 +190,8 @@ public Mono> sendLongWithResponse(String name, BinaryData sendLon
      *     completedAt: OffsetDateTime (Optional)
      *     _dummy: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param updateRequest The updateRequest parameter. @@ -334,11 +344,11 @@ public Mono sendLong(SendLongOptions options) { String filter = options.getFilter(); SendLongRequest sendLongRequestObj = new SendLongRequest(options.getInput(), options.getDataInt(), options.getRequiredUser(), options.getTitle(), options.getStatus()).setUser(options.getUser()) - .setDataIntOptional(options.getDataIntOptional()) - .setDataLong(options.getDataLong()) - .setDataFloat(options.getDataFloat()) - .setDescription(options.getDescription()) - .setDummy(options.getDummy()); + .setDataIntOptional(options.getDataIntOptional()) + .setDataLong(options.getDataLong()) + .setDataFloat(options.getDataFloat()) + .setDescription(options.getDescription()) + .setDummy(options.getDummy()); BinaryData sendLongRequest = BinaryData.fromObject(sendLongRequestObj); if (filter != null) { requestOptions.addQueryParam("filter", filter, false); diff --git a/typespec-tests/src/main/java/com/cadl/flatten/FlattenClient.java b/typespec-tests/src/main/java/com/cadl/flatten/FlattenClient.java index 8a260008ff..69ed477ad8 100644 --- a/typespec-tests/src/main/java/com/cadl/flatten/FlattenClient.java +++ b/typespec-tests/src/main/java/com/cadl/flatten/FlattenClient.java @@ -53,7 +53,8 @@ public final class FlattenClient { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     endpoint: String (Required)
      *     user (Optional): {
@@ -63,7 +64,8 @@ public final class FlattenClient {
      *     constant: String (Required)
      *     requiredInt: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -84,11 +86,13 @@ public Response sendWithResponse(String id, BinaryData sendRequest, Reques * The sendProjectedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     file_id: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendProjectedNameRequest The sendProjectedNameRequest parameter. @@ -117,7 +121,8 @@ public Response sendProjectedNameWithResponse(String id, BinaryData sendPr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -134,7 +139,8 @@ public Response sendProjectedNameWithResponse(String id, BinaryData sendPr
      *     _dummy: String (Optional)
      *     constant: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -155,7 +161,8 @@ public Response sendLongWithResponse(String name, BinaryData sendLongReque * The update operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     patch (Optional, Required on create): {
      *         title: String (Optional)
@@ -163,11 +170,13 @@ public Response sendLongWithResponse(String name, BinaryData sendLongReque
      *         status: String(NotStarted/InProgress/Completed) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: long (Required)
      *     title: String (Required)
@@ -178,7 +187,8 @@ public Response sendLongWithResponse(String name, BinaryData sendLongReque
      *     completedAt: OffsetDateTime (Optional)
      *     _dummy: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param updateRequest The updateRequest parameter. @@ -325,11 +335,11 @@ public void sendLong(SendLongOptions options) { String filter = options.getFilter(); SendLongRequest sendLongRequestObj = new SendLongRequest(options.getInput(), options.getDataInt(), options.getRequiredUser(), options.getTitle(), options.getStatus()).setUser(options.getUser()) - .setDataIntOptional(options.getDataIntOptional()) - .setDataLong(options.getDataLong()) - .setDataFloat(options.getDataFloat()) - .setDescription(options.getDescription()) - .setDummy(options.getDummy()); + .setDataIntOptional(options.getDataIntOptional()) + .setDataLong(options.getDataLong()) + .setDataFloat(options.getDataFloat()) + .setDescription(options.getDescription()) + .setDummy(options.getDummy()); BinaryData sendLongRequest = BinaryData.fromObject(sendLongRequestObj); if (filter != null) { requestOptions.addQueryParam("filter", filter, false); diff --git a/typespec-tests/src/main/java/com/cadl/flatten/FlattenClientBuilder.java b/typespec-tests/src/main/java/com/cadl/flatten/FlattenClientBuilder.java index ec2c0ce398..bfa7b24745 100644 --- a/typespec-tests/src/main/java/com/cadl/flatten/FlattenClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/flatten/FlattenClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/flatten/implementation/FlattenClientImpl.java b/typespec-tests/src/main/java/com/cadl/flatten/implementation/FlattenClientImpl.java index a7b1624136..bec6255388 100644 --- a/typespec-tests/src/main/java/com/cadl/flatten/implementation/FlattenClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/flatten/implementation/FlattenClientImpl.java @@ -284,7 +284,8 @@ Response uploadTodoSync(@HostParam("endpoint") String endpoint, * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     endpoint: String (Required)
      *     user (Optional): {
@@ -294,7 +295,8 @@ Response uploadTodoSync(@HostParam("endpoint") String endpoint,
      *     constant: String (Required)
      *     requiredInt: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -318,7 +320,8 @@ public Mono> sendWithResponseAsync(String id, BinaryData sendRequ * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     endpoint: String (Required)
      *     user (Optional): {
@@ -328,7 +331,8 @@ public Mono> sendWithResponseAsync(String id, BinaryData sendRequ
      *     constant: String (Required)
      *     requiredInt: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -351,11 +355,13 @@ public Response sendWithResponse(String id, BinaryData sendRequest, Reques * The sendProjectedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     file_id: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendProjectedNameRequest The sendProjectedNameRequest parameter. @@ -378,11 +384,13 @@ public Mono> sendProjectedNameWithResponseAsync(String id, Binary * The sendProjectedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     file_id: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendProjectedNameRequest The sendProjectedNameRequest parameter. @@ -412,7 +420,8 @@ public Response sendProjectedNameWithResponse(String id, BinaryData sendPr * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -429,7 +438,8 @@ public Response sendProjectedNameWithResponse(String id, BinaryData sendPr
      *     _dummy: String (Optional)
      *     constant: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -459,7 +469,8 @@ public Mono> sendLongWithResponseAsync(String name, BinaryData se * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -476,7 +487,8 @@ public Mono> sendLongWithResponseAsync(String name, BinaryData se
      *     _dummy: String (Optional)
      *     constant: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -498,7 +510,8 @@ public Response sendLongWithResponse(String name, BinaryData sendLongReque * The update operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     patch (Optional, Required on create): {
      *         title: String (Optional)
@@ -506,11 +519,13 @@ public Response sendLongWithResponse(String name, BinaryData sendLongReque
      *         status: String(NotStarted/InProgress/Completed) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: long (Required)
      *     title: String (Required)
@@ -521,7 +536,8 @@ public Response sendLongWithResponse(String name, BinaryData sendLongReque
      *     completedAt: OffsetDateTime (Optional)
      *     _dummy: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param updateRequest The updateRequest parameter. @@ -545,7 +561,8 @@ public Mono> updateWithResponseAsync(long id, BinaryData up * The update operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     patch (Optional, Required on create): {
      *         title: String (Optional)
@@ -553,11 +570,13 @@ public Mono> updateWithResponseAsync(long id, BinaryData up
      *         status: String(NotStarted/InProgress/Completed) (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: long (Required)
      *     title: String (Required)
@@ -568,7 +587,8 @@ public Mono> updateWithResponseAsync(long id, BinaryData up
      *     completedAt: OffsetDateTime (Optional)
      *     _dummy: String (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param updateRequest The updateRequest parameter. diff --git a/typespec-tests/src/main/java/com/cadl/flatten/implementation/MultipartFormDataHelper.java b/typespec-tests/src/main/java/com/cadl/flatten/implementation/MultipartFormDataHelper.java index fae4b0725c..a2c397a6a4 100644 --- a/typespec-tests/src/main/java/com/cadl/flatten/implementation/MultipartFormDataHelper.java +++ b/typespec-tests/src/main/java/com/cadl/flatten/implementation/MultipartFormDataHelper.java @@ -8,7 +8,6 @@ import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; import com.azure.core.util.CoreUtils; - import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.SequenceInputStream; diff --git a/typespec-tests/src/main/java/com/cadl/internal/InternalAsyncClient.java b/typespec-tests/src/main/java/com/cadl/internal/InternalAsyncClient.java index 3f6993569d..9b17996fb0 100644 --- a/typespec-tests/src/main/java/com/cadl/internal/InternalAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/internal/InternalAsyncClient.java @@ -44,23 +44,27 @@ public final class InternalAsyncClient { * The postInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -80,11 +84,13 @@ public Mono> postInternalWithResponse(BinaryData body, Requ * The getInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -103,11 +109,13 @@ Mono> getInternalWithResponse(RequestOptions requestOptions * The postProtocalInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/internal/InternalClient.java b/typespec-tests/src/main/java/com/cadl/internal/InternalClient.java index 78c93dd789..20aa992ed7 100644 --- a/typespec-tests/src/main/java/com/cadl/internal/InternalClient.java +++ b/typespec-tests/src/main/java/com/cadl/internal/InternalClient.java @@ -42,23 +42,27 @@ public final class InternalClient { * The postInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -78,11 +82,13 @@ public Response postInternalWithResponse(BinaryData body, RequestOpt * The getInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -101,11 +107,13 @@ Response getInternalWithResponse(RequestOptions requestOptions) { * The postProtocalInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/internal/InternalClientBuilder.java b/typespec-tests/src/main/java/com/cadl/internal/InternalClientBuilder.java index d0d659878a..7cc5ac0be9 100644 --- a/typespec-tests/src/main/java/com/cadl/internal/InternalClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/internal/InternalClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/internal/implementation/InternalOpsImpl.java b/typespec-tests/src/main/java/com/cadl/internal/implementation/InternalOpsImpl.java index cfa0189417..df06768d80 100644 --- a/typespec-tests/src/main/java/com/cadl/internal/implementation/InternalOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/internal/implementation/InternalOpsImpl.java @@ -122,23 +122,27 @@ Response postProtocalInternalSync(@HostParam("endpoint") String endpoint, * The postInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -160,23 +164,27 @@ public Mono> postInternalWithResponseAsync(BinaryData body, * The postInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         name: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -198,11 +206,13 @@ public Response postInternalWithResponse(BinaryData body, RequestOpt * The getInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -222,11 +232,13 @@ public Mono> getInternalWithResponseAsync(RequestOptions re * The getInternal operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -245,11 +257,13 @@ public Response getInternalWithResponse(RequestOptions requestOption * The postProtocalInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -270,11 +284,13 @@ public Mono> postProtocalInternalWithResponseAsync(BinaryData bod * The postProtocalInternal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceAsyncClient.java b/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceAsyncClient.java index 24f46a7f9e..29fa948b53 100644 --- a/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceAsyncClient.java @@ -51,21 +51,25 @@ public final class LiteralServiceAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClient.java b/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClient.java index a949054224..119f78a53e 100644 --- a/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClient.java +++ b/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClient.java @@ -49,21 +49,25 @@ public final class LiteralServiceClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClientBuilder.java b/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClientBuilder.java index b162dbc266..5127f1aeec 100644 --- a/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/literalservice/LiteralServiceClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/literalservice/implementation/LiteralOpsImpl.java b/typespec-tests/src/main/java/com/cadl/literalservice/implementation/LiteralOpsImpl.java index a216e21bd5..d6213a9f57 100644 --- a/typespec-tests/src/main/java/com/cadl/literalservice/implementation/LiteralOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/literalservice/implementation/LiteralOpsImpl.java @@ -94,21 +94,25 @@ Response putSync(@HostParam("endpoint") String endpoint, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -139,21 +143,25 @@ public Mono> putWithResponseAsync(BinaryData body, RequestO * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     literal: String (Required)
      *     optionalLiteral: String(optionalLiteral) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningAsyncClient.java b/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningAsyncClient.java index 2149dcf05b..e1beb16288 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningAsyncClient.java @@ -62,7 +62,8 @@ public PollerFlux beginLongRunning(RequestOptions reques * A remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -85,7 +86,8 @@ public PollerFlux beginLongRunning(RequestOptions reques
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,18 +116,21 @@ public Mono> getJobWithResponse(String id, RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -145,7 +150,8 @@ public Mono> getJobWithResponse(String id, RequestOptions r
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClient.java b/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClient.java index 7b3d921fef..11fcfd9ae6 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClient.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClient.java @@ -60,7 +60,8 @@ public SyncPoller beginLongRunning(RequestOptions reques * A remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -83,7 +84,8 @@ public SyncPoller beginLongRunning(RequestOptions reques
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -112,18 +114,21 @@ public Response getJobWithResponse(String id, RequestOptions request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -143,7 +148,8 @@ public Response getJobWithResponse(String id, RequestOptions request
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClientBuilder.java b/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClientBuilder.java index a617fd9472..31716a25e5 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/LongRunningClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/LongRunningClientImpl.java b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/LongRunningClientImpl.java index 7445d31042..f68396c04e 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/LongRunningClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/LongRunningClientImpl.java @@ -340,7 +340,8 @@ public SyncPoller beginLongRunningWithModel(RequestOptions r * A remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -363,7 +364,8 @@ public SyncPoller beginLongRunningWithModel(RequestOptions r
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -384,7 +386,8 @@ public Mono> getJobWithResponseAsync(String id, RequestOpti * A remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -407,7 +410,8 @@ public Mono> getJobWithResponseAsync(String id, RequestOpti
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -437,18 +441,21 @@ public Response getJobWithResponse(String id, RequestOptions request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -468,7 +475,8 @@ public Response getJobWithResponse(String id, RequestOptions request
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -513,18 +521,21 @@ private Mono> createJobWithResponseAsync(BinaryData body, R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -544,7 +555,8 @@ private Mono> createJobWithResponseAsync(BinaryData body, R
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -589,18 +601,21 @@ private Response createJobWithResponse(BinaryData body, RequestOptio * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -620,7 +635,8 @@ private Response createJobWithResponse(BinaryData body, RequestOptio
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -657,18 +673,21 @@ public PollerFlux beginCreateJobAsync(BinaryData body, R * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -688,7 +707,8 @@ public PollerFlux beginCreateJobAsync(BinaryData body, R
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -725,18 +745,21 @@ public SyncPoller beginCreateJob(BinaryData body, Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -756,7 +779,8 @@ public SyncPoller beginCreateJob(BinaryData body, Reques
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -794,18 +818,21 @@ public PollerFlux beginCreateJobWithModelAsync(Binar * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     configuration: String (Optional)
      *     nullableFloatDict (Required): {
      *         String: Double (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(notStarted/running/Succeeded/Failed/canceled) (Required)
@@ -825,7 +852,8 @@ public PollerFlux beginCreateJobWithModelAsync(Binar
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/OperationLocationPollingStrategy.java index a471db039d..cd6ff1ccbd 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/PollingUtils.java index 6448683903..5e79133df2 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/SyncOperationLocationPollingStrategy.java index b75f08fddd..89aed495c5 100644 --- a/typespec-tests/src/main/java/com/cadl/longrunning/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/longrunning/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/cadl/model/ModelAsyncClient.java b/typespec-tests/src/main/java/com/cadl/model/ModelAsyncClient.java index 3433f3f7e2..d7b2207055 100644 --- a/typespec-tests/src/main/java/com/cadl/model/ModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/model/ModelAsyncClient.java @@ -45,7 +45,8 @@ public final class ModelAsyncClient { * The put1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -55,11 +56,13 @@ public final class ModelAsyncClient {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -69,7 +72,8 @@ public final class ModelAsyncClient {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -89,25 +93,29 @@ public Mono> put1WithResponse(BinaryData body, RequestOptio * The put2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -127,14 +135,16 @@ public Mono> put2WithResponse(BinaryData body, RequestOptio * The get3 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData3 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,7 +163,8 @@ public Mono> get3WithResponse(RequestOptions requestOptions * The putNested operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -161,11 +172,13 @@ public Mono> get3WithResponse(RequestOptions requestOptions
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -173,7 +186,8 @@ public Mono> get3WithResponse(RequestOptions requestOptions
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/model/ModelClient.java b/typespec-tests/src/main/java/com/cadl/model/ModelClient.java index f55e906a44..f10f8e4a1c 100644 --- a/typespec-tests/src/main/java/com/cadl/model/ModelClient.java +++ b/typespec-tests/src/main/java/com/cadl/model/ModelClient.java @@ -43,7 +43,8 @@ public final class ModelClient { * The put1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -53,11 +54,13 @@ public final class ModelClient {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -67,7 +70,8 @@ public final class ModelClient {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -87,25 +91,29 @@ public Response put1WithResponse(BinaryData body, RequestOptions req * The put2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -125,14 +133,16 @@ public Response put2WithResponse(BinaryData body, RequestOptions req * The get3 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData3 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -151,7 +161,8 @@ public Response get3WithResponse(RequestOptions requestOptions) { * The putNested operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -159,11 +170,13 @@ public Response get3WithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -171,7 +184,8 @@ public Response get3WithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/model/ModelClientBuilder.java b/typespec-tests/src/main/java/com/cadl/model/ModelClientBuilder.java index 906d140c27..34b8711717 100644 --- a/typespec-tests/src/main/java/com/cadl/model/ModelClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/model/ModelClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/model/implementation/ModelOpsImpl.java b/typespec-tests/src/main/java/com/cadl/model/implementation/ModelOpsImpl.java index a9173a6cc1..91d3381709 100644 --- a/typespec-tests/src/main/java/com/cadl/model/implementation/ModelOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/model/implementation/ModelOpsImpl.java @@ -141,7 +141,8 @@ Response putNestedSync(@HostParam("endpoint") String endpoint, * The put1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -151,11 +152,13 @@ Response putNestedSync(@HostParam("endpoint") String endpoint,
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -165,7 +168,8 @@ Response putNestedSync(@HostParam("endpoint") String endpoint,
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +191,8 @@ public Mono> put1WithResponseAsync(BinaryData body, Request * The put1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -197,11 +202,13 @@ public Mono> put1WithResponseAsync(BinaryData body, Request
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData (Required): {
@@ -211,7 +218,8 @@ public Mono> put1WithResponseAsync(BinaryData body, Request
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -232,25 +240,29 @@ public Response put1WithResponse(BinaryData body, RequestOptions req * The put2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -272,25 +284,29 @@ public Mono> put2WithResponseAsync(BinaryData body, Request * The put2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data2 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -311,14 +327,16 @@ public Response put2WithResponse(BinaryData body, RequestOptions req * The get3 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData3 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -338,14 +356,16 @@ public Mono> get3WithResponseAsync(RequestOptions requestOp * The get3 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     outputData3 (Required): {
      *         data: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -364,7 +384,8 @@ public Response get3WithResponse(RequestOptions requestOptions) { * The putNested operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -372,11 +393,13 @@ public Response get3WithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -384,7 +407,8 @@ public Response get3WithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -406,7 +430,8 @@ public Mono> putNestedWithResponseAsync(BinaryData body, Re * The putNested operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -414,11 +439,13 @@ public Mono> putNestedWithResponseAsync(BinaryData body, Re
      *         }
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     nested1 (Required): {
      *         nested2 (Required): {
@@ -426,7 +453,8 @@ public Mono> putNestedWithResponseAsync(BinaryData body, Re
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesAsyncClient.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesAsyncClient.java index f79c741b0e..d0ab24f48f 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesAsyncClient.java @@ -40,9 +40,11 @@ public final class MultiContentTypesAsyncClient { * multiple data types map to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "text/plain", "application/json", * "application/octet-stream", "image/jpeg", "image/png". diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClient.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClient.java index 46fccf0d94..123da79bb9 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClient.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClient.java @@ -39,9 +39,11 @@ public final class MultiContentTypesClient { * multiple data types map to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "text/plain", "application/json", * "application/octet-stream", "image/jpeg", "image/png". diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClientBuilder.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClientBuilder.java index 44b14cb7ee..a47a668add 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultiContentTypesClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestAsyncClient.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestAsyncClient.java index f31fd83d55..1140682b49 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestAsyncClient.java @@ -42,9 +42,11 @@ public final class MultipleContentTypesOnRequestAsyncClient { * one data type maps to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png", "application/json-patch+json". @@ -70,9 +72,11 @@ public Mono> uploadBytesWithSingleBodyTypeForMultiContentTypesWit * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png". @@ -98,12 +102,14 @@ public Mono> uploadBytesWithMultiBodyTypesForMultiContentTypesWit * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -125,9 +131,11 @@ public Mono> uploadJsonWithMultiBodyTypesForMultiContentTypesWith * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/json", "application/octet-stream", * "image/jpeg", "image/png". diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestClient.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestClient.java index a80a640c17..d4868648ef 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestClient.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/MultipleContentTypesOnRequestClient.java @@ -40,9 +40,11 @@ public final class MultipleContentTypesOnRequestClient { * one data type maps to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png", "application/json-patch+json". @@ -68,9 +70,11 @@ public Response uploadBytesWithSingleBodyTypeForMultiContentTypesWithRespo * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png". @@ -96,12 +100,14 @@ public Response uploadBytesWithMultiBodyTypesForMultiContentTypesWithRespo * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -122,9 +128,11 @@ public Response uploadJsonWithMultiBodyTypesForMultiContentTypesWithRespon * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/json", "application/octet-stream", * "image/jpeg", "image/png". diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeAsyncClient.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeAsyncClient.java index 75e5b8c9a7..c44b00ff2b 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeAsyncClient.java @@ -41,9 +41,11 @@ public final class SingleContentTypeAsyncClient { * response is binary. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> downloadImageForSingleContentTypeWithResponse( * request is binary. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeClient.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeClient.java index d1eb7fd336..f07a334d0f 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeClient.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/SingleContentTypeClient.java @@ -39,9 +39,11 @@ public final class SingleContentTypeClient { * response is binary. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response downloadImageForSingleContentTypeWithResponse(Reques * request is binary. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultiContentTypesClientImpl.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultiContentTypesClientImpl.java index cf7ce9bb35..af3fe55d1c 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultiContentTypesClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultiContentTypesClientImpl.java @@ -181,9 +181,11 @@ Response uploadWithOverloadSync(@HostParam("endpoint") String endpoint, * multiple data types map to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "text/plain", "application/json", * "application/octet-stream", "image/jpeg", "image/png". @@ -206,9 +208,11 @@ public Mono> uploadWithOverloadWithResponseAsync(String contentTy * multiple data types map to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "text/plain", "application/json", * "application/octet-stream", "image/jpeg", "image/png". diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultipleContentTypesOnRequestsImpl.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultipleContentTypesOnRequestsImpl.java index ddbc56d4da..5aefac5d93 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultipleContentTypesOnRequestsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/MultipleContentTypesOnRequestsImpl.java @@ -143,9 +143,11 @@ Response uploadJsonOrBytesWithMultiBodyTypesForMultiContentTypesSync( * one data type maps to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png", "application/json-patch+json". @@ -169,9 +171,11 @@ public Mono> uploadBytesWithSingleBodyTypeForMultiContentTypesWit * one data type maps to multiple content types. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png", "application/json-patch+json". @@ -194,9 +198,11 @@ public Response uploadBytesWithSingleBodyTypeForMultiContentTypesWithRespo * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png". @@ -220,9 +226,11 @@ public Mono> uploadBytesWithMultiBodyTypesForMultiContentTypesWit * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/octet-stream", "image/jpeg", * "image/png". @@ -245,12 +253,14 @@ public Response uploadBytesWithMultiBodyTypesForMultiContentTypesWithRespo * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -273,12 +283,14 @@ public Mono> uploadJsonWithMultiBodyTypesForMultiContentTypesWith * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -300,9 +312,11 @@ public Response uploadJsonWithMultiBodyTypesForMultiContentTypesWithRespon * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/json", "application/octet-stream", * "image/jpeg", "image/png". @@ -325,9 +339,11 @@ public Mono> uploadJsonOrBytesWithMultiBodyTypesForMultiContentTy * multiple data types map to multiple content types using shared route. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param contentType The contentType parameter. Allowed values: "application/json", "application/octet-stream", * "image/jpeg", "image/png". diff --git a/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/SingleContentTypesImpl.java b/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/SingleContentTypesImpl.java index 5ed3adbc93..7c072651fc 100644 --- a/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/SingleContentTypesImpl.java +++ b/typespec-tests/src/main/java/com/cadl/multicontenttypes/implementation/SingleContentTypesImpl.java @@ -102,9 +102,11 @@ Response uploadImageForSingleContentTypeSync(@HostParam("endpoint") String * response is binary. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -125,9 +127,11 @@ Response uploadImageForSingleContentTypeSync(@HostParam("endpoint") String * response is binary. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,9 +151,11 @@ public Response downloadImageForSingleContentTypeWithResponse(Reques * request is binary. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -171,9 +177,11 @@ public Mono> uploadImageForSingleContentTypeWithResponseAsync(Bin * request is binary. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param data The data parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multipart/MultipartClientBuilder.java b/typespec-tests/src/main/java/com/cadl/multipart/MultipartClientBuilder.java index fee41a53df..546ede3792 100644 --- a/typespec-tests/src/main/java/com/cadl/multipart/MultipartClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/multipart/MultipartClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/multipart/implementation/MultipartFormDataHelper.java b/typespec-tests/src/main/java/com/cadl/multipart/implementation/MultipartFormDataHelper.java index 8f7d7e5971..76a5c67f57 100644 --- a/typespec-tests/src/main/java/com/cadl/multipart/implementation/MultipartFormDataHelper.java +++ b/typespec-tests/src/main/java/com/cadl/multipart/implementation/MultipartFormDataHelper.java @@ -8,7 +8,6 @@ import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; import com.azure.core.util.CoreUtils; - import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.SequenceInputStream; diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstAsyncClient.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstAsyncClient.java index 767e682e6e..3fea806334 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstAsyncClient.java @@ -42,13 +42,15 @@ public final class FirstAsyncClient { * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClient.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClient.java index d69ad98e7c..5a2e8a3925 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClient.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClient.java @@ -40,13 +40,15 @@ public final class FirstClient { * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClientBuilder.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClientBuilder.java index d95184ae85..9e0be07ea5 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/FirstClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/NoApiVersionClientBuilder.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/NoApiVersionClientBuilder.java index 8cce8ffe0c..c6345b82df 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/NoApiVersionClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/NoApiVersionClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondAsyncClient.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondAsyncClient.java index 14083b48ae..825ae56cbe 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondAsyncClient.java @@ -42,13 +42,15 @@ public final class SecondAsyncClient { * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClient.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClient.java index 2a71ef3318..d2520745f8 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClient.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClient.java @@ -40,13 +40,15 @@ public final class SecondClient { * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClientBuilder.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClientBuilder.java index 787f3bb960..e60bb10f9b 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/SecondClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/FirstClientImpl.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/FirstClientImpl.java index 72350c4d9d..f73bdfbe7a 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/FirstClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/FirstClientImpl.java @@ -169,13 +169,15 @@ Response getSync(@HostParam("endpoint") String endpoint, * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -196,13 +198,15 @@ public Mono> getWithResponseAsync(String name, RequestOptio * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/SecondClientImpl.java b/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/SecondClientImpl.java index 0e29c7149b..5cab155dfe 100644 --- a/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/SecondClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/multipleapiversion/implementation/SecondClientImpl.java @@ -169,13 +169,15 @@ Response getSync(@HostParam("endpoint") String endpoint, * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -196,13 +198,15 @@ public Mono> getWithResponseAsync(String name, RequestOptio * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/naming/NamingAsyncClient.java b/typespec-tests/src/main/java/com/cadl/naming/NamingAsyncClient.java index 53cdb56fea..f2120e1186 100644 --- a/typespec-tests/src/main/java/com/cadl/naming/NamingAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/naming/NamingAsyncClient.java @@ -56,17 +56,20 @@ public final class NamingAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     parameters (Optional): {
      *         type: String(Type1/Type2) (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data (Required): {
@@ -82,7 +85,8 @@ public final class NamingAsyncClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param name summary of name query parameter * @@ -105,11 +109,13 @@ public Mono> postWithResponse(String name, BinaryData body, * The getAnonymous operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/naming/NamingClient.java b/typespec-tests/src/main/java/com/cadl/naming/NamingClient.java index 2c435a7576..575ccb54a5 100644 --- a/typespec-tests/src/main/java/com/cadl/naming/NamingClient.java +++ b/typespec-tests/src/main/java/com/cadl/naming/NamingClient.java @@ -64,11 +64,13 @@ public Response postWithResponse(String name, BinaryData body, Reque * The getAnonymous operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/naming/NamingClientBuilder.java b/typespec-tests/src/main/java/com/cadl/naming/NamingClientBuilder.java index f1c45ce599..727508e3e2 100644 --- a/typespec-tests/src/main/java/com/cadl/naming/NamingClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/naming/NamingClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/naming/implementation/NamingOpsImpl.java b/typespec-tests/src/main/java/com/cadl/naming/implementation/NamingOpsImpl.java index 5ec21c69f9..c6eb18d387 100644 --- a/typespec-tests/src/main/java/com/cadl/naming/implementation/NamingOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/naming/implementation/NamingOpsImpl.java @@ -114,17 +114,20 @@ Response getAnonymousSync(@HostParam("endpoint") String endpoint, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     parameters (Optional): {
      *         type: String(Type1/Type2) (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data (Required): {
@@ -140,7 +143,8 @@ Response getAnonymousSync(@HostParam("endpoint") String endpoint,
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param name summary of name query parameter * @@ -177,17 +181,20 @@ public Mono> postWithResponseAsync(String name, BinaryData * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     parameters (Optional): {
      *         type: String(Type1/Type2) (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     data (Required): {
@@ -203,7 +210,8 @@ public Mono> postWithResponseAsync(String name, BinaryData
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param name summary of name query parameter * @@ -228,11 +236,13 @@ public Response postWithResponse(String name, BinaryData body, Reque * The getAnonymous operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -252,11 +262,13 @@ public Mono> getAnonymousWithResponseAsync(RequestOptions r * The getAnonymous operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/optional/OptionalAsyncClient.java b/typespec-tests/src/main/java/com/cadl/optional/OptionalAsyncClient.java index 882eeeed25..52d9fa0825 100644 --- a/typespec-tests/src/main/java/com/cadl/optional/OptionalAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/optional/OptionalAsyncClient.java @@ -62,7 +62,8 @@ public final class OptionalAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -88,11 +89,13 @@ public final class OptionalAsyncClient {
      *     epochDateTimeRequiredNullable: Long (Required)
      *     epochDateTimeNullable: Long (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -122,7 +125,8 @@ public final class OptionalAsyncClient {
      *         stringReadOnlyOptional: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestHeaderRequired The requestHeaderRequired parameter. * @param booleanRequired The booleanRequired parameter. @@ -191,7 +195,7 @@ public Mono put(String requestHeaderRequired, boolean boo } return putWithResponse(requestHeaderRequired, booleanRequired, booleanRequiredNullable, stringRequired, stringRequiredNullable, requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(AllPropertiesOptional.class)); + .map(protocolMethodData -> protocolMethodData.toObject(AllPropertiesOptional.class)); } /** @@ -218,6 +222,6 @@ public Mono put(String requestHeaderRequired, boolean boo RequestOptions requestOptions = new RequestOptions(); return putWithResponse(requestHeaderRequired, booleanRequired, booleanRequiredNullable, stringRequired, stringRequiredNullable, requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(AllPropertiesOptional.class)); + .map(protocolMethodData -> protocolMethodData.toObject(AllPropertiesOptional.class)); } } diff --git a/typespec-tests/src/main/java/com/cadl/optional/OptionalClient.java b/typespec-tests/src/main/java/com/cadl/optional/OptionalClient.java index 96ecb5df55..ef7efad4dd 100644 --- a/typespec-tests/src/main/java/com/cadl/optional/OptionalClient.java +++ b/typespec-tests/src/main/java/com/cadl/optional/OptionalClient.java @@ -60,7 +60,8 @@ public final class OptionalClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -86,11 +87,13 @@ public final class OptionalClient {
      *     epochDateTimeRequiredNullable: Long (Required)
      *     epochDateTimeNullable: Long (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -120,7 +123,8 @@ public final class OptionalClient {
      *         stringReadOnlyOptional: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestHeaderRequired The requestHeaderRequired parameter. * @param booleanRequired The booleanRequired parameter. diff --git a/typespec-tests/src/main/java/com/cadl/optional/OptionalClientBuilder.java b/typespec-tests/src/main/java/com/cadl/optional/OptionalClientBuilder.java index 509a7e7aee..efc7e5f85f 100644 --- a/typespec-tests/src/main/java/com/cadl/optional/OptionalClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/optional/OptionalClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/optional/implementation/OptionalOpsImpl.java b/typespec-tests/src/main/java/com/cadl/optional/implementation/OptionalOpsImpl.java index df25fa882e..03d88b3a02 100644 --- a/typespec-tests/src/main/java/com/cadl/optional/implementation/OptionalOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/optional/implementation/OptionalOpsImpl.java @@ -110,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -136,11 +137,13 @@ Response putSync(@HostParam("endpoint") String endpoint,
      *     epochDateTimeRequiredNullable: Long (Required)
      *     epochDateTimeNullable: Long (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -170,7 +173,8 @@ Response putSync(@HostParam("endpoint") String endpoint,
      *         stringReadOnlyOptional: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestHeaderRequired The requestHeaderRequired parameter. * @param booleanRequired The booleanRequired parameter. @@ -222,7 +226,8 @@ public Mono> putWithResponseAsync(String requestHeaderRequi * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -248,11 +253,13 @@ public Mono> putWithResponseAsync(String requestHeaderRequi
      *     epochDateTimeRequiredNullable: Long (Required)
      *     epochDateTimeNullable: Long (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: Boolean (Optional)
      *     booleanNullable: Boolean (Optional)
@@ -282,7 +289,8 @@ public Mono> putWithResponseAsync(String requestHeaderRequi
      *         stringReadOnlyOptional: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestHeaderRequired The requestHeaderRequired parameter. * @param booleanRequired The booleanRequired parameter. diff --git a/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateAsyncClient.java b/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateAsyncClient.java index 281c3da7e3..c8d6ac5278 100644 --- a/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateAsyncClient.java @@ -42,14 +42,16 @@ public final class PartialUpdateAsyncClient { * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
      *     bytes: byte[] (Required)
      *     aggregate: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClient.java b/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClient.java index 880a6ef5c8..f6f73f91af 100644 --- a/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClient.java +++ b/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClient.java @@ -40,14 +40,16 @@ public final class PartialUpdateClient { * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
      *     bytes: byte[] (Required)
      *     aggregate: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClientBuilder.java b/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClientBuilder.java index 04c87f3aff..ff20ea0c06 100644 --- a/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/partialupdate/PartialUpdateClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/partialupdate/implementation/PartialUpdateClientImpl.java b/typespec-tests/src/main/java/com/cadl/partialupdate/implementation/PartialUpdateClientImpl.java index b845d53aad..1ec272ae99 100644 --- a/typespec-tests/src/main/java/com/cadl/partialupdate/implementation/PartialUpdateClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/partialupdate/implementation/PartialUpdateClientImpl.java @@ -147,14 +147,16 @@ Response readSync(@HostParam("endpoint") String endpoint, @HeaderPar * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
      *     bytes: byte[] (Required)
      *     aggregate: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -173,14 +175,16 @@ public Mono> readWithResponseAsync(RequestOptions requestOp * The read operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     boolean: boolean (Required)
      *     string: String (Required)
      *     bytes: byte[] (Required)
      *     aggregate: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/patch/PatchAsyncClient.java b/typespec-tests/src/main/java/com/cadl/patch/PatchAsyncClient.java index 4dea94aaf7..cb31ec6dbd 100644 --- a/typespec-tests/src/main/java/com/cadl/patch/PatchAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/patch/PatchAsyncClient.java @@ -44,7 +44,8 @@ public final class PatchAsyncClient { * The createOrUpdateResource operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -70,11 +71,13 @@ public final class PatchAsyncClient {
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -100,7 +103,8 @@ public final class PatchAsyncClient {
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param resource The resource parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -129,7 +133,8 @@ public Mono> createOrUpdateResourceWithResponse(BinaryData * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -155,11 +160,13 @@ public Mono> createOrUpdateResourceWithResponse(BinaryData
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -185,7 +192,8 @@ public Mono> createOrUpdateResourceWithResponse(BinaryData
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -204,7 +212,8 @@ public Mono> createOrUpdateOptionalResourceWithResponse(Req * The createOrUpdateFish operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -212,11 +221,13 @@ public Mono> createOrUpdateOptionalResourceWithResponse(Req
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -224,7 +235,8 @@ public Mono> createOrUpdateOptionalResourceWithResponse(Req
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* * @param fish The fish parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/patch/PatchClient.java b/typespec-tests/src/main/java/com/cadl/patch/PatchClient.java index 05d6446056..c876ec2893 100644 --- a/typespec-tests/src/main/java/com/cadl/patch/PatchClient.java +++ b/typespec-tests/src/main/java/com/cadl/patch/PatchClient.java @@ -42,7 +42,8 @@ public final class PatchClient { * The createOrUpdateResource operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -68,11 +69,13 @@ public final class PatchClient {
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -98,7 +101,8 @@ public final class PatchClient {
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param resource The resource parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -126,7 +130,8 @@ public Response createOrUpdateResourceWithResponse(BinaryData resour * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -152,11 +157,13 @@ public Response createOrUpdateResourceWithResponse(BinaryData resour
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -182,7 +189,8 @@ public Response createOrUpdateResourceWithResponse(BinaryData resour
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -201,7 +209,8 @@ public Response createOrUpdateOptionalResourceWithResponse(RequestOp * The createOrUpdateFish operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -209,11 +218,13 @@ public Response createOrUpdateOptionalResourceWithResponse(RequestOp
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -221,7 +232,8 @@ public Response createOrUpdateOptionalResourceWithResponse(RequestOp
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* * @param fish The fish parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/patch/PatchClientBuilder.java b/typespec-tests/src/main/java/com/cadl/patch/PatchClientBuilder.java index 2601d785d5..74ed1ef4f1 100644 --- a/typespec-tests/src/main/java/com/cadl/patch/PatchClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/patch/PatchClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/patch/implementation/PatchesImpl.java b/typespec-tests/src/main/java/com/cadl/patch/implementation/PatchesImpl.java index 4c05f57d8a..0b39cd2f0f 100644 --- a/typespec-tests/src/main/java/com/cadl/patch/implementation/PatchesImpl.java +++ b/typespec-tests/src/main/java/com/cadl/patch/implementation/PatchesImpl.java @@ -123,7 +123,8 @@ Response createOrUpdateFishSync(@HostParam("endpoint") String endpoi * The createOrUpdateResource operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -149,11 +150,13 @@ Response createOrUpdateFishSync(@HostParam("endpoint") String endpoi
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -179,7 +182,8 @@ Response createOrUpdateFishSync(@HostParam("endpoint") String endpoi
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param resource The resource parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -202,7 +206,8 @@ public Mono> createOrUpdateResourceWithResponseAsync(Binary * The createOrUpdateResource operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -228,11 +233,13 @@ public Mono> createOrUpdateResourceWithResponseAsync(Binary
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -258,7 +265,8 @@ public Mono> createOrUpdateResourceWithResponseAsync(Binary
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param resource The resource parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -288,7 +296,8 @@ public Response createOrUpdateResourceWithResponse(BinaryData resour * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -314,11 +323,13 @@ public Response createOrUpdateResourceWithResponse(BinaryData resour
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -344,7 +355,8 @@ public Response createOrUpdateResourceWithResponse(BinaryData resour
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -378,7 +390,8 @@ public Mono> createOrUpdateOptionalResourceWithResponseAsyn * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -404,11 +417,13 @@ public Mono> createOrUpdateOptionalResourceWithResponseAsyn
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
@@ -434,7 +449,8 @@ public Mono> createOrUpdateOptionalResourceWithResponseAsyn
      *         color: String (Optional)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -460,7 +476,8 @@ public Response createOrUpdateOptionalResourceWithResponse(RequestOp * The createOrUpdateFish operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -468,11 +485,13 @@ public Response createOrUpdateOptionalResourceWithResponse(RequestOp
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -480,7 +499,8 @@ public Response createOrUpdateOptionalResourceWithResponse(RequestOp
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* * @param fish The fish parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -504,7 +524,8 @@ public Mono> createOrUpdateFishWithResponseAsync(BinaryData * The createOrUpdateFish operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -512,11 +533,13 @@ public Mono> createOrUpdateFishWithResponseAsync(BinaryData
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     id: String (Required)
@@ -524,7 +547,8 @@ public Mono> createOrUpdateFishWithResponseAsync(BinaryData
      *     age: int (Optional, Required on create)
      *     color: String (Optional)
      * }
-     * }
+ * } + *
* * @param fish The fish parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientAsyncClient.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientAsyncClient.java index 52ed37be78..4088d9920e 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientAsyncClient.java @@ -19,8 +19,8 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollOperationDetails; +import com.azure.core.util.polling.PollerFlux; import com.cadl.protocolandconvenient.implementation.ProtocolAndConvenienceOpsImpl; import com.cadl.protocolandconvenient.models.ResourceA; import com.cadl.protocolandconvenient.models.ResourceB; @@ -54,21 +54,25 @@ public final class ProtocolAndConvenientAsyncClient { * When set protocol false and convenient true, then the protocol method should be package private. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -89,21 +93,25 @@ Mono> onlyConvenientWithResponse(BinaryData body, RequestOp * ResourceD should not be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -123,21 +131,25 @@ public Mono> onlyProtocolWithResponse(BinaryData body, Requ * Setting protocol true and convenient true, both convenient and protocol methods will be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -158,21 +170,25 @@ public Mono> bothConvenientAndProtocolWithResponse(BinaryDa * When set protocol false and convenient false. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -192,23 +208,27 @@ Mono> errorSettingWithResponse(BinaryData body, RequestOpti * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -237,13 +257,15 @@ PollerFlux beginCreateOrReplace(String name, BinaryData * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClient.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClient.java index af12d28f8b..8b8bf258b1 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClient.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClient.java @@ -48,21 +48,25 @@ public final class ProtocolAndConvenientClient { * When set protocol false and convenient true, then the protocol method should be package private. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -83,21 +87,25 @@ Response onlyConvenientWithResponse(BinaryData body, RequestOptions * ResourceD should not be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -117,21 +125,25 @@ public Response onlyProtocolWithResponse(BinaryData body, RequestOpt * Setting protocol true and convenient true, both convenient and protocol methods will be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -151,21 +163,25 @@ public Response bothConvenientAndProtocolWithResponse(BinaryData bod * When set protocol false and convenient false. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -185,23 +201,27 @@ Response errorSettingWithResponse(BinaryData body, RequestOptions re * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -230,13 +250,15 @@ SyncPoller beginCreateOrReplace(String name, BinaryData * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClientBuilder.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClientBuilder.java index 4c7d9b6ae7..2e67c60fbd 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/ProtocolAndConvenientClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/OperationLocationPollingStrategy.java index 01fa647538..35e0127fe0 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/PollingUtils.java index 9b88a39946..8d2f670941 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/ProtocolAndConvenienceOpsImpl.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/ProtocolAndConvenienceOpsImpl.java index 2e3b98433e..ca6bdb1e6d 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/ProtocolAndConvenienceOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/ProtocolAndConvenienceOpsImpl.java @@ -33,9 +33,9 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.UrlBuilder; +import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; -import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.TypeReference; import com.cadl.protocolandconvenient.ProtocolAndConvenientServiceVersion; @@ -234,21 +234,25 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true) * When set protocol false and convenient true, then the protocol method should be package private. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -270,21 +274,25 @@ public Mono> onlyConvenientWithResponseAsync(BinaryData bod * When set protocol false and convenient true, then the protocol method should be package private. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -307,21 +315,25 @@ public Response onlyConvenientWithResponse(BinaryData body, RequestO * ResourceD should not be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -344,21 +356,25 @@ public Mono> onlyProtocolWithResponseAsync(BinaryData body, * ResourceD should not be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -380,21 +396,25 @@ public Response onlyProtocolWithResponse(BinaryData body, RequestOpt * Setting protocol true and convenient true, both convenient and protocol methods will be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -417,21 +437,25 @@ public Mono> bothConvenientAndProtocolWithResponseAsync(Bin * Setting protocol true and convenient true, both convenient and protocol methods will be generated. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -453,21 +477,25 @@ public Response bothConvenientAndProtocolWithResponse(BinaryData bod * When set protocol false and convenient false. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -489,21 +517,25 @@ public Mono> errorSettingWithResponseAsync(BinaryData body, * When set protocol false and convenient false. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -525,23 +557,27 @@ public Response errorSettingWithResponse(BinaryData body, RequestOpt * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -566,23 +602,27 @@ private Mono> createOrReplaceWithResponseAsync(String name, * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -606,23 +646,27 @@ private Response createOrReplaceWithResponse(String name, BinaryData * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -652,23 +696,27 @@ public PollerFlux beginCreateOrReplaceAsync(String name, * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -698,23 +746,27 @@ public SyncPoller beginCreateOrReplace(String name, Bina * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -744,23 +796,27 @@ public PollerFlux beginCreateOrReplaceWithModel * Long running operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -797,13 +853,15 @@ public SyncPoller beginCreateOrReplaceWithModel * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -834,13 +892,15 @@ private Mono> listSinglePageAsync(RequestOptions reque * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -889,13 +949,15 @@ public PagedFlux listAsync(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -924,13 +986,15 @@ private PagedResponse listSinglePage(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -974,13 +1038,15 @@ public PagedIterable list(RequestOptions requestOptions) { * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1007,13 +1073,15 @@ private Mono> listNextSinglePageAsync(String nextLink, * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/SyncOperationLocationPollingStrategy.java index eabd365d4a..389d482086 100644 --- a/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/protocolandconvenient/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/cadl/response/ResponseAsyncClient.java b/typespec-tests/src/main/java/com/cadl/response/ResponseAsyncClient.java index 317cfbc61d..3e8359d1f3 100644 --- a/typespec-tests/src/main/java/com/cadl/response/ResponseAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/response/ResponseAsyncClient.java @@ -52,9 +52,11 @@ public final class ResponseAsyncClient { * The getBinary operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -73,7 +75,8 @@ public Mono> getBinaryWithResponse(RequestOptions requestOp * The getArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -82,7 +85,8 @@ public Mono> getBinaryWithResponse(RequestOptions requestOp
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -101,7 +105,8 @@ public Mono> getArrayWithResponse(RequestOptions requestOpt * The getAnotherArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -110,7 +115,8 @@ public Mono> getArrayWithResponse(RequestOptions requestOpt
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,14 +135,16 @@ public Mono> getAnotherArrayWithResponse(RequestOptions req * The createWithHeaders operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -171,9 +179,11 @@ public Mono> deleteWithHeadersWithResponse(RequestOptions request * The most basic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -191,14 +201,16 @@ public Mono> existsWithResponse(RequestOptions requestOptions) * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -219,14 +231,16 @@ public PollerFlux beginLroInvalidPollResponse(BinaryData * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -246,9 +260,11 @@ public PollerFlux beginLroInvalidResult(BinaryData reque * The listStrings operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -267,9 +283,11 @@ public PagedFlux listStrings(RequestOptions requestOptions) { * The listIntegers operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -288,14 +306,16 @@ public PagedFlux listIntegers(RequestOptions requestOptions) { * The getJsonUtf8Response operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -314,14 +334,16 @@ public Mono> getJsonUtf8ResponseWithResponse(RequestOptions * The getPlusJsonResponse operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/response/ResponseClient.java b/typespec-tests/src/main/java/com/cadl/response/ResponseClient.java index 92823b8e9c..f214af7b5a 100644 --- a/typespec-tests/src/main/java/com/cadl/response/ResponseClient.java +++ b/typespec-tests/src/main/java/com/cadl/response/ResponseClient.java @@ -46,9 +46,11 @@ public final class ResponseClient { * The getBinary operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getBinaryWithResponse(RequestOptions requestOptions) * The getArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -76,7 +79,8 @@ public Response getBinaryWithResponse(RequestOptions requestOptions)
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -95,7 +99,8 @@ public Response getArrayWithResponse(RequestOptions requestOptions) * The getAnotherArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -104,7 +109,8 @@ public Response getArrayWithResponse(RequestOptions requestOptions)
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,14 +129,16 @@ public Response getAnotherArrayWithResponse(RequestOptions requestOp * The createWithHeaders operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,9 +173,11 @@ public Response deleteWithHeadersWithResponse(RequestOptions requestOption * The most basic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -185,14 +195,16 @@ public Response existsWithResponse(RequestOptions requestOptions) { * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -213,14 +225,16 @@ public SyncPoller beginLroInvalidPollResponse(BinaryData * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -240,9 +254,11 @@ public SyncPoller beginLroInvalidResult(BinaryData reque * The listStrings operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -261,9 +277,11 @@ public PagedIterable listStrings(RequestOptions requestOptions) { * The listIntegers operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -282,14 +300,16 @@ public PagedIterable listIntegers(RequestOptions requestOptions) { * The getJsonUtf8Response operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -308,14 +328,16 @@ public Response getJsonUtf8ResponseWithResponse(RequestOptions reque * The getPlusJsonResponse operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/response/ResponseClientBuilder.java b/typespec-tests/src/main/java/com/cadl/response/ResponseClientBuilder.java index b25ef5a921..8637c0c202 100644 --- a/typespec-tests/src/main/java/com/cadl/response/ResponseClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/response/ResponseClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/response/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/response/implementation/OperationLocationPollingStrategy.java index 71de5c33de..2e19b9c31d 100644 --- a/typespec-tests/src/main/java/com/cadl/response/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/response/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/response/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/cadl/response/implementation/PollingUtils.java index 3762e95a6b..40887df865 100644 --- a/typespec-tests/src/main/java/com/cadl/response/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/cadl/response/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/response/implementation/ResponseClientImpl.java b/typespec-tests/src/main/java/com/cadl/response/implementation/ResponseClientImpl.java index e9bd3194c3..9c04e097e1 100644 --- a/typespec-tests/src/main/java/com/cadl/response/implementation/ResponseClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/response/implementation/ResponseClientImpl.java @@ -433,9 +433,11 @@ Response listIntegersNextSync(@PathParam(value = "nextLink", encoded * The getBinary operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -454,9 +456,11 @@ public Mono> getBinaryWithResponseAsync(RequestOptions requ * The getBinary operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -475,7 +479,8 @@ public Response getBinaryWithResponse(RequestOptions requestOptions) * The getArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -484,7 +489,8 @@ public Response getBinaryWithResponse(RequestOptions requestOptions)
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -503,7 +509,8 @@ public Mono> getArrayWithResponseAsync(RequestOptions reque * The getArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -512,7 +519,8 @@ public Mono> getArrayWithResponseAsync(RequestOptions reque
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -531,7 +539,8 @@ public Response getArrayWithResponse(RequestOptions requestOptions) * The getAnotherArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -540,7 +549,8 @@ public Response getArrayWithResponse(RequestOptions requestOptions)
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -560,7 +570,8 @@ public Mono> getAnotherArrayWithResponseAsync(RequestOption * The getAnotherArray operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         id: String (Required)
@@ -569,7 +580,8 @@ public Mono> getAnotherArrayWithResponseAsync(RequestOption
      *         type: String (Required)
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -588,14 +600,16 @@ public Response getAnotherArrayWithResponse(RequestOptions requestOp * The createWithHeaders operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -615,14 +629,16 @@ public Mono> createWithHeadersWithResponseAsync(RequestOpti * The createWithHeaders operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -671,9 +687,11 @@ public Response deleteWithHeadersWithResponse(RequestOptions requestOption * The most basic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -692,9 +710,11 @@ public Mono> existsWithResponseAsync(RequestOptions requestOpt * The most basic operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -713,14 +733,16 @@ public Response existsWithResponse(RequestOptions requestOptions) { * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -743,14 +765,16 @@ private Mono> lroInvalidPollResponseWithResponseAsync(BinaryData * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -772,14 +796,16 @@ private Response lroInvalidPollResponseWithResponse(BinaryData request, Re * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -809,14 +835,16 @@ public PollerFlux beginLroInvalidPollResponseAsync(Binar * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -846,14 +874,16 @@ public SyncPoller beginLroInvalidPollResponse(BinaryData * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -883,14 +913,16 @@ public PollerFlux beginLroInvalidPollResponseWithMo * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -920,14 +952,16 @@ public SyncPoller beginLroInvalidPollResponseWithMo * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -949,14 +983,16 @@ private Mono> lroInvalidResultWithResponseAsync(BinaryData reques * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -978,14 +1014,16 @@ private Response lroInvalidResultWithResponse(BinaryData request, RequestO * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1015,14 +1053,16 @@ public PollerFlux beginLroInvalidResultAsync(BinaryData * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1051,14 +1091,16 @@ public SyncPoller beginLroInvalidResult(BinaryData reque * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1088,14 +1130,16 @@ public PollerFlux beginLroInvalidResultWithModelAsy * The most basic operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param request The request parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1125,9 +1169,11 @@ public SyncPoller beginLroInvalidResultWithModel(Bi * The listStrings operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1148,9 +1194,11 @@ private Mono> listStringsSinglePageAsync(RequestOption * The listStrings operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1172,9 +1220,11 @@ public PagedFlux listStringsAsync(RequestOptions requestOptions) { * The listStrings operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1195,9 +1245,11 @@ private PagedResponse listStringsSinglePage(RequestOptions requestOp * The listStrings operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1219,9 +1271,11 @@ public PagedIterable listStrings(RequestOptions requestOptions) { * The listIntegers operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1243,9 +1297,11 @@ private Mono> listIntegersSinglePageAsync(RequestOptio * The listIntegers operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1267,9 +1323,11 @@ public PagedFlux listIntegersAsync(RequestOptions requestOptions) { * The listIntegers operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1290,9 +1348,11 @@ private PagedResponse listIntegersSinglePage(RequestOptions requestO * The listIntegers operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1314,14 +1374,16 @@ public PagedIterable listIntegers(RequestOptions requestOptions) { * The getJsonUtf8Response operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1341,14 +1403,16 @@ public Mono> getJsonUtf8ResponseWithResponseAsync(RequestOp * The getJsonUtf8Response operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1367,14 +1431,16 @@ public Response getJsonUtf8ResponseWithResponse(RequestOptions reque * The getPlusJsonResponse operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1394,14 +1460,16 @@ public Mono> getPlusJsonResponseWithResponseAsync(RequestOp * The getPlusJsonResponse operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1420,9 +1488,11 @@ public Response getPlusJsonResponseWithResponse(RequestOptions reque * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1447,9 +1517,11 @@ private Mono> listStringsNextSinglePageAsync(String ne * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1472,9 +1544,11 @@ private PagedResponse listStringsNextSinglePage(String nextLink, Req * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1499,9 +1573,11 @@ private Mono> listIntegersNextSinglePageAsync(String n * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * int
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/response/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/response/implementation/SyncOperationLocationPollingStrategy.java index fdc8eaeeae..195077647a 100644 --- a/typespec-tests/src/main/java/com/cadl/response/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/response/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/cadl/server/HttpbinClientBuilder.java b/typespec-tests/src/main/java/com/cadl/server/HttpbinClientBuilder.java index dae54e3b35..2f8dbefda1 100644 --- a/typespec-tests/src/main/java/com/cadl/server/HttpbinClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/server/HttpbinClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/server/contoso/sub/ContosoClientBuilder.java b/typespec-tests/src/main/java/com/cadl/server/contoso/sub/ContosoClientBuilder.java index d00e6513dc..96ee971d27 100644 --- a/typespec-tests/src/main/java/com/cadl/server/contoso/sub/ContosoClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/server/contoso/sub/ContosoClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsAsyncClient.java b/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsAsyncClient.java index 1020144144..c4bd714f18 100644 --- a/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsAsyncClient.java @@ -43,15 +43,18 @@ public final class SpecialCharsAsyncClient { * The read operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     aggregate: String (Optional)
@@ -59,7 +62,8 @@ public final class SpecialCharsAsyncClient {
      *     requestName: String (Optional)
      *     value: Double (Optional)
      * }
-     * }
+ * } + *
* * @param readRequest The readRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClient.java b/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClient.java index c04954982d..f6082a2759 100644 --- a/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClient.java @@ -41,15 +41,18 @@ public final class SpecialCharsClient { * The read operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     aggregate: String (Optional)
@@ -57,7 +60,8 @@ public final class SpecialCharsClient {
      *     requestName: String (Optional)
      *     value: Double (Optional)
      * }
-     * }
+ * } + *
* * @param readRequest The readRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClientBuilder.java b/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClientBuilder.java index c17bceb24a..15228db619 100644 --- a/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/specialchars/SpecialCharsClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/specialchars/implementation/BuiltinOpsImpl.java b/typespec-tests/src/main/java/com/cadl/specialchars/implementation/BuiltinOpsImpl.java index 95933ed802..22c8f54528 100644 --- a/typespec-tests/src/main/java/com/cadl/specialchars/implementation/BuiltinOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/specialchars/implementation/BuiltinOpsImpl.java @@ -83,15 +83,18 @@ Response readSync(@HostParam("endpoint") String endpoint, * The read operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     aggregate: String (Optional)
@@ -99,7 +102,8 @@ Response readSync(@HostParam("endpoint") String endpoint,
      *     requestName: String (Optional)
      *     value: Double (Optional)
      * }
-     * }
+ * } + *
* * @param readRequest The readRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -121,15 +125,18 @@ public Mono> readWithResponseAsync(BinaryData readRequest, * The read operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     aggregate: String (Optional)
@@ -137,7 +144,8 @@ public Mono> readWithResponseAsync(BinaryData readRequest,
      *     requestName: String (Optional)
      *     value: Double (Optional)
      * }
-     * }
+ * } + *
* * @param readRequest The readRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersAsyncClient.java b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersAsyncClient.java index df0a0267d5..f6ba949787 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersAsyncClient.java @@ -67,25 +67,29 @@ public final class EtagHeadersAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -117,25 +121,29 @@ public Mono> putWithRequestHeadersWithResponse(String name, * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -157,14 +165,16 @@ public Mono> patchWithMatchHeadersWithResponse(String name, * Resource list operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersClient.java b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersClient.java index e713ac62db..2555be0801 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersClient.java @@ -61,25 +61,29 @@ public final class EtagHeadersClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -111,25 +115,29 @@ public Response putWithRequestHeadersWithResponse(String name, Binar * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -151,14 +159,16 @@ public Response patchWithMatchHeadersWithResponse(String name, Binar * Resource list operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyAsyncClient.java b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyAsyncClient.java index 5db8ba0859..20b26aab04 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyAsyncClient.java @@ -70,25 +70,29 @@ public final class EtagHeadersOptionalBodyAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param format The format parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyClient.java b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyClient.java index dd54c1264e..e37e1063c1 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/EtagHeadersOptionalBodyClient.java @@ -68,25 +68,29 @@ public final class EtagHeadersOptionalBodyClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param format The format parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersAsyncClient.java b/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersAsyncClient.java index 2a36d561eb..f767917194 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersAsyncClient.java @@ -16,8 +16,8 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollOperationDetails; +import com.azure.core.util.polling.PollerFlux; import com.cadl.specialheaders.implementation.JsonMergePatchHelper; import com.cadl.specialheaders.implementation.RepeatabilityHeadersImpl; import com.cadl.specialheaders.models.Resource; @@ -45,14 +45,16 @@ public final class RepeatabilityHeadersAsyncClient { * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -81,25 +83,29 @@ public Mono> getWithResponse(String name, RequestOptions re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -129,14 +135,16 @@ public Mono> putWithResponse(String name, BinaryData resour * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -165,25 +173,29 @@ public Mono> postWithResponse(String name, RequestOptions r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersClient.java b/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersClient.java index 2c29ffb7ae..257df56ce7 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersClient.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/RepeatabilityHeadersClient.java @@ -43,14 +43,16 @@ public final class RepeatabilityHeadersClient { * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -79,25 +81,29 @@ public Response getWithResponse(String name, RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -127,14 +133,16 @@ public Response putWithResponse(String name, BinaryData resource, Re * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -163,25 +171,29 @@ public Response postWithResponse(String name, RequestOptions request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/SpecialHeadersClientBuilder.java b/typespec-tests/src/main/java/com/cadl/specialheaders/SpecialHeadersClientBuilder.java index 019f90130d..7c6416ddb2 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/SpecialHeadersClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/SpecialHeadersClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersImpl.java b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersImpl.java index 18b60b8531..5cc2907d34 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersImpl.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersImpl.java @@ -184,25 +184,29 @@ Response listWithEtagNextSync(@PathParam(value = "nextLink", encoded * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -241,25 +245,29 @@ public Mono> putWithRequestHeadersWithResponseAsync(String * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -294,25 +302,29 @@ public Response putWithRequestHeadersWithResponse(String name, Binar * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -347,25 +359,29 @@ public Mono> patchWithMatchHeadersWithResponseAsync(String * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -390,14 +406,16 @@ public Response patchWithMatchHeadersWithResponse(String name, Binar * Resource list operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -421,14 +439,16 @@ private Mono> listWithEtagSinglePageAsync(RequestOptio * Resource list operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -450,14 +470,16 @@ public PagedFlux listWithEtagAsync(RequestOptions requestOptions) { * Resource list operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -479,14 +501,16 @@ private PagedResponse listWithEtagSinglePage(RequestOptions requestO * Resource list operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -510,14 +534,16 @@ public PagedIterable listWithEtag(RequestOptions requestOptions) { * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -544,14 +570,16 @@ private Mono> listWithEtagNextSinglePageAsync(String n * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersOptionalBodiesImpl.java b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersOptionalBodiesImpl.java index ec32792dc2..1a3f7927dc 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersOptionalBodiesImpl.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/EtagHeadersOptionalBodiesImpl.java @@ -118,25 +118,29 @@ Response putWithOptionalBodySync(@HostParam("endpoint") String endpo * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param format The format parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,25 +192,29 @@ public Mono> putWithOptionalBodyWithResponseAsync(String fo * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param format The format parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/OperationLocationPollingStrategy.java index d06960c0b4..f394596760 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/PollingUtils.java index 5c3b85c8b8..d8de52b8c3 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/RepeatabilityHeadersImpl.java b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/RepeatabilityHeadersImpl.java index b45fdf9a70..1ad1291b2b 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/RepeatabilityHeadersImpl.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/RepeatabilityHeadersImpl.java @@ -32,9 +32,9 @@ import com.azure.core.util.CoreUtils; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; -import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.TypeReference; import com.cadl.specialheaders.SpecialHeadersServiceVersion; @@ -175,14 +175,16 @@ Response createLroSync(@HostParam("endpoint") String endpoint, * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -203,14 +205,16 @@ public Mono> getWithResponseAsync(String name, RequestOptio * Resource read operation template. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -240,25 +244,29 @@ public Response getWithResponse(String name, RequestOptions requestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -306,25 +314,29 @@ public Mono> putWithResponseAsync(String name, BinaryData r * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -370,14 +382,16 @@ public Response putWithResponse(String name, BinaryData resource, Re * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -421,14 +435,16 @@ public Mono> postWithResponseAsync(String name, RequestOpti * You can add these to a request with {@link RequestOptions#addHeader} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -472,25 +488,29 @@ public Response postWithResponse(String name, RequestOptions request * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -538,25 +558,29 @@ private Mono> createLroWithResponseAsync(String name, Binar * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -603,25 +627,29 @@ private Response createLroWithResponse(String name, BinaryData resou * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -661,25 +689,29 @@ public PollerFlux beginCreateLroAsync(String name, Binar * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -719,25 +751,29 @@ public SyncPoller beginCreateLro(String name, BinaryData * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -777,25 +813,29 @@ public PollerFlux beginCreateLroWithModelAsync(S * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     description: String (Optional)
      *     type: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. diff --git a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/SyncOperationLocationPollingStrategy.java index 8439eeff73..8a65c8b345 100644 --- a/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/specialheaders/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/cadl/union/UnionAsyncClient.java b/typespec-tests/src/main/java/com/cadl/union/UnionAsyncClient.java index cf6c83781e..f955700186 100644 --- a/typespec-tests/src/main/java/com/cadl/union/UnionAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/union/UnionAsyncClient.java @@ -16,8 +16,8 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollOperationDetails; +import com.azure.core.util.polling.PollerFlux; import com.cadl.union.implementation.UnionFlattenOpsImpl; import com.cadl.union.implementation.models.SendLongRequest; import com.cadl.union.implementation.models.SendRequest; @@ -48,14 +48,16 @@ public final class UnionAsyncClient { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
      *     }
      *     input: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -83,7 +85,8 @@ public Mono> sendWithResponse(String id, BinaryData sendRequest, * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -94,7 +97,8 @@ public Mono> sendWithResponse(String id, BinaryData sendRequest,
      *     dataLong: Long (Optional)
      *     data_float: Double (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -139,7 +143,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) { * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -157,7 +162,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) {
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/union/UnionClient.java b/typespec-tests/src/main/java/com/cadl/union/UnionClient.java index ed19ddb792..8a6919cbd4 100644 --- a/typespec-tests/src/main/java/com/cadl/union/UnionClient.java +++ b/typespec-tests/src/main/java/com/cadl/union/UnionClient.java @@ -46,14 +46,16 @@ public final class UnionClient { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
      *     }
      *     input: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -81,7 +83,8 @@ public Response sendWithResponse(String id, BinaryData sendRequest, Reques * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -92,7 +95,8 @@ public Response sendWithResponse(String id, BinaryData sendRequest, Reques
      *     dataLong: Long (Optional)
      *     data_float: Double (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -136,7 +140,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -154,7 +159,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/union/UnionClientBuilder.java b/typespec-tests/src/main/java/com/cadl/union/UnionClientBuilder.java index 5d32640515..99911f986c 100644 --- a/typespec-tests/src/main/java/com/cadl/union/UnionClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/union/UnionClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/union/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/union/implementation/OperationLocationPollingStrategy.java index 37fbef30e0..e9414de9e5 100644 --- a/typespec-tests/src/main/java/com/cadl/union/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/union/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/union/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/cadl/union/implementation/PollingUtils.java index a8fb4572ef..26329fc8c1 100644 --- a/typespec-tests/src/main/java/com/cadl/union/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/cadl/union/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/union/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/union/implementation/SyncOperationLocationPollingStrategy.java index 85c9c796e4..bb82d3c8f9 100644 --- a/typespec-tests/src/main/java/com/cadl/union/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/union/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/cadl/union/implementation/UnionFlattenOpsImpl.java b/typespec-tests/src/main/java/com/cadl/union/implementation/UnionFlattenOpsImpl.java index 9a7ee5cd53..cf020d5ba2 100644 --- a/typespec-tests/src/main/java/com/cadl/union/implementation/UnionFlattenOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/union/implementation/UnionFlattenOpsImpl.java @@ -26,9 +26,9 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; -import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.TypeReference; import com.cadl.union.UnionServiceVersion; @@ -159,14 +159,16 @@ Response generateSync(@HostParam("endpoint") String endpoint, * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
      *     }
      *     input: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -189,14 +191,16 @@ public Mono> sendWithResponseAsync(String id, BinaryData sendRequ * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
      *     }
      *     input: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendRequest The sendRequest parameter. @@ -225,7 +229,8 @@ public Response sendWithResponse(String id, BinaryData sendRequest, Reques * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -236,7 +241,8 @@ public Response sendWithResponse(String id, BinaryData sendRequest, Reques
      *     dataLong: Long (Optional)
      *     data_float: Double (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -266,7 +272,8 @@ public Mono> sendLongWithResponseAsync(String id, BinaryData send * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     user (Optional): {
      *         user: String (Required)
@@ -277,7 +284,8 @@ public Mono> sendLongWithResponseAsync(String id, BinaryData send
      *     dataLong: Long (Optional)
      *     data_float: Double (Optional)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param sendLongRequest The sendLongRequest parameter. @@ -343,7 +351,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -361,7 +370,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -382,7 +392,8 @@ private Mono> generateWithResponseAsync(RequestOptions requ * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -400,7 +411,8 @@ private Mono> generateWithResponseAsync(RequestOptions requ
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -420,7 +432,8 @@ private Response generateWithResponse(RequestOptions requestOptions) * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -438,7 +451,8 @@ private Response generateWithResponse(RequestOptions requestOptions)
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -465,7 +479,8 @@ public PollerFlux beginGenerateAsync(RequestOptions requ * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -483,7 +498,8 @@ public PollerFlux beginGenerateAsync(RequestOptions requ
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -510,7 +526,8 @@ public SyncPoller beginGenerate(RequestOptions requestOp * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -528,7 +545,8 @@ public SyncPoller beginGenerate(RequestOptions requestOp
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -555,7 +573,8 @@ public PollerFlux beginGenerateWithModelAsync(Requ * A long-running remote procedure call (RPC) operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -573,7 +592,8 @@ public PollerFlux beginGenerateWithModelAsync(Requ
      *         data: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/versioning/VersioningAsyncClient.java b/typespec-tests/src/main/java/com/cadl/versioning/VersioningAsyncClient.java index 5050cafeea..f400a2000a 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/VersioningAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/VersioningAsyncClient.java @@ -17,8 +17,8 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; -import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollOperationDetails; +import com.azure.core.util.polling.PollerFlux; import com.cadl.versioning.implementation.VersioningOpsImpl; import com.cadl.versioning.models.ExportedResource; import com.cadl.versioning.models.Resource; @@ -55,7 +55,8 @@ public final class VersioningAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -72,7 +73,8 @@ public final class VersioningAsyncClient {
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -101,13 +103,15 @@ public PollerFlux beginExport(String name, RequestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,23 +130,27 @@ public PagedFlux list(RequestOptions requestOptions) { * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. diff --git a/typespec-tests/src/main/java/com/cadl/versioning/VersioningClient.java b/typespec-tests/src/main/java/com/cadl/versioning/VersioningClient.java index 4446429962..4193a6f441 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/VersioningClient.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/VersioningClient.java @@ -51,7 +51,8 @@ public final class VersioningClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -68,7 +69,8 @@ public final class VersioningClient {
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -97,13 +99,15 @@ public SyncPoller beginExport(String name, RequestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -122,23 +126,27 @@ public PagedIterable list(RequestOptions requestOptions) { * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. diff --git a/typespec-tests/src/main/java/com/cadl/versioning/VersioningClientBuilder.java b/typespec-tests/src/main/java/com/cadl/versioning/VersioningClientBuilder.java index bf3f217538..e854aa1ae4 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/VersioningClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/VersioningClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/versioning/implementation/OperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/versioning/implementation/OperationLocationPollingStrategy.java index eaac162765..a4379efdf3 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/implementation/OperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/implementation/OperationLocationPollingStrategy.java @@ -17,10 +17,9 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.time.Duration; import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/versioning/implementation/PollingUtils.java b/typespec-tests/src/main/java/com/cadl/versioning/implementation/PollingUtils.java index b67972a84b..fbba2ec7b7 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/implementation/PollingUtils.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/implementation/PollingUtils.java @@ -12,8 +12,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; -import reactor.core.publisher.Mono; - import java.net.URI; import java.net.URISyntaxException; import java.time.DateTimeException; @@ -23,6 +21,7 @@ import java.util.Map; import java.util.function.Function; import java.util.function.Supplier; +import reactor.core.publisher.Mono; // DO NOT modify this helper class diff --git a/typespec-tests/src/main/java/com/cadl/versioning/implementation/SyncOperationLocationPollingStrategy.java b/typespec-tests/src/main/java/com/cadl/versioning/implementation/SyncOperationLocationPollingStrategy.java index 35a1bc8a84..3891745d02 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/implementation/SyncOperationLocationPollingStrategy.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/implementation/SyncOperationLocationPollingStrategy.java @@ -17,7 +17,6 @@ import com.azure.core.util.serializer.JsonSerializerProviders; import com.azure.core.util.serializer.ObjectSerializer; import com.azure.core.util.serializer.TypeReference; - import java.io.UncheckedIOException; import java.time.Duration; import java.time.OffsetDateTime; diff --git a/typespec-tests/src/main/java/com/cadl/versioning/implementation/VersioningOpsImpl.java b/typespec-tests/src/main/java/com/cadl/versioning/implementation/VersioningOpsImpl.java index e32901663d..f16aa47aeb 100644 --- a/typespec-tests/src/main/java/com/cadl/versioning/implementation/VersioningOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/versioning/implementation/VersioningOpsImpl.java @@ -32,9 +32,9 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; -import com.azure.core.util.polling.PollOperationDetails; import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.TypeReference; import com.cadl.versioning.VersioningServiceVersion; @@ -181,7 +181,8 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -198,7 +199,8 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true)
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -227,7 +229,8 @@ private Mono> exportWithResponseAsync(String name, RequestO * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -244,7 +247,8 @@ private Mono> exportWithResponseAsync(String name, RequestO
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -272,7 +276,8 @@ private Response exportWithResponse(String name, RequestOptions requ * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -289,7 +294,8 @@ private Response exportWithResponse(String name, RequestOptions requ
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -324,7 +330,8 @@ public PollerFlux beginExportAsync(String name, RequestO * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -341,7 +348,8 @@ public PollerFlux beginExportAsync(String name, RequestO
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -376,7 +384,8 @@ public SyncPoller beginExport(String name, RequestOption * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -393,7 +402,8 @@ public SyncPoller beginExport(String name, RequestOption
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -430,7 +440,8 @@ public PollerFlux beginExportWithModelAs * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     status: String(NotStarted/Running/Succeeded/Failed/Canceled) (Required)
@@ -447,7 +458,8 @@ public PollerFlux beginExportWithModelAs
      *         resourceUri: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -486,13 +498,15 @@ public SyncPoller beginExportWithModel(S * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -525,13 +539,15 @@ private Mono> listSinglePageAsync(RequestOptions reque * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -562,13 +578,15 @@ public PagedFlux listAsync(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -599,13 +617,15 @@ private PagedResponse listSinglePage(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -627,23 +647,27 @@ public PagedIterable list(RequestOptions requestOptions) { * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -668,23 +692,27 @@ private Mono> createLongRunningWithResponseAsync(String nam * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -708,23 +736,27 @@ private Response createLongRunningWithResponse(String name, BinaryDa * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -754,23 +786,27 @@ public PollerFlux beginCreateLongRunningAsync(String nam * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -800,23 +836,27 @@ public SyncPoller beginCreateLongRunning(String name, Bi * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -846,23 +886,27 @@ public PollerFlux beginCreateLongRunningWithMode * Long-running resource create or replace operation template. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param resource The resource instance. @@ -894,13 +938,15 @@ public SyncPoller beginCreateLongRunningWithMode * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -927,13 +973,15 @@ private Mono> listNextSinglePageAsync(String nextLink, * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: String (Required)
      *     name: String (Required)
      *     type: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityAsyncClient.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityAsyncClient.java index 784156e5c0..dae970549c 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityAsyncClient.java @@ -45,13 +45,15 @@ public final class VisibilityAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,21 +72,25 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -104,22 +110,26 @@ public Mono> createWithResponse(BinaryData dog, RequestOpti * The query operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -139,21 +149,25 @@ public Mono> queryWithResponse(BinaryData dog, RequestOptio * The roundtrip operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClient.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClient.java index 201032e4b3..7ac31bb4d5 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClient.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClient.java @@ -43,13 +43,15 @@ public final class VisibilityClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,21 +70,25 @@ public Response getWithResponse(RequestOptions requestOptions) { * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -102,22 +108,26 @@ public Response createWithResponse(BinaryData dog, RequestOptions re * The query operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -137,21 +147,25 @@ public Response queryWithResponse(BinaryData dog, RequestOptions req * The roundtrip operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClientBuilder.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClientBuilder.java index 832b8adc38..0255594e17 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadAsyncClient.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadAsyncClient.java index dede5b5e63..132a151aa0 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadAsyncClient.java @@ -42,13 +42,15 @@ public final class VisibilityReadAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadClient.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadClient.java index 03d4633cd2..ade45a01ae 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadClient.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityReadClient.java @@ -40,13 +40,15 @@ public final class VisibilityReadClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteAsyncClient.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteAsyncClient.java index 88373b5f5d..2ad6ac8e70 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteAsyncClient.java @@ -43,21 +43,25 @@ public final class VisibilityWriteAsyncClient { * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteClient.java b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteClient.java index 8f9c534c23..612acf05a8 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteClient.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/VisibilityWriteClient.java @@ -41,21 +41,25 @@ public final class VisibilityWriteClient { * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityClientImpl.java b/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityClientImpl.java index e7e9451941..581166899d 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityClientImpl.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityClientImpl.java @@ -239,13 +239,15 @@ Response roundtripSync(@HostParam("endpoint") String endpoint, * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -264,13 +266,15 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -289,21 +293,25 @@ public Response getWithResponse(RequestOptions requestOptions) { * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -325,21 +333,25 @@ public Mono> createWithResponseAsync(BinaryData dog, Reques * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -360,22 +372,26 @@ public Response createWithResponse(BinaryData dog, RequestOptions re * The query operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -397,22 +413,26 @@ public Mono> queryWithResponseAsync(BinaryData dog, Request * The query operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -433,21 +453,25 @@ public Response queryWithResponse(BinaryData dog, RequestOptions req * The roundtrip operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -469,21 +493,25 @@ public Mono> roundtripWithResponseAsync(BinaryData body, Re * The roundtrip operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     secretName: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityReadsImpl.java b/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityReadsImpl.java index 0cc46f0a42..70ca6d8ceb 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityReadsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityReadsImpl.java @@ -80,13 +80,15 @@ Response getSync(@HostParam("endpoint") String endpoint, @HeaderPara * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -105,13 +107,15 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityWritesImpl.java b/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityWritesImpl.java index 19648f316f..b699ba2083 100644 --- a/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityWritesImpl.java +++ b/typespec-tests/src/main/java/com/cadl/visibility/implementation/VisibilityWritesImpl.java @@ -83,21 +83,25 @@ Response createSync(@HostParam("endpoint") String endpoint, * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -119,21 +123,25 @@ public Mono> createWithResponseAsync(BinaryData dog, Reques * The create operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: int (Required)
      *     secretName: String (Required)
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param dog The dog parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeAsyncClient.java b/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeAsyncClient.java index b85ecb9d6b..2a3954da46 100644 --- a/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeAsyncClient.java +++ b/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeAsyncClient.java @@ -44,21 +44,25 @@ public final class WireTypeAsyncClient { * The superClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -78,21 +82,25 @@ public Mono> superClassMismatchWithResponse(BinaryData body * The subClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -112,21 +120,25 @@ public Mono> subClassMismatchWithResponse(BinaryData body, * The bothClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClient.java b/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClient.java index fc83bfc091..9aa89ecfa7 100644 --- a/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClient.java +++ b/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClient.java @@ -42,21 +42,25 @@ public final class WireTypeClient { * The superClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -76,21 +80,25 @@ public Response superClassMismatchWithResponse(BinaryData body, Requ * The subClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,21 +118,25 @@ public Response subClassMismatchWithResponse(BinaryData body, Reques * The bothClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClientBuilder.java b/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClientBuilder.java index 7469c39793..c0cd52490a 100644 --- a/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClientBuilder.java +++ b/typespec-tests/src/main/java/com/cadl/wiretype/WireTypeClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/cadl/wiretype/implementation/WireTypeOpsImpl.java b/typespec-tests/src/main/java/com/cadl/wiretype/implementation/WireTypeOpsImpl.java index 2670cb132f..b99fd50638 100644 --- a/typespec-tests/src/main/java/com/cadl/wiretype/implementation/WireTypeOpsImpl.java +++ b/typespec-tests/src/main/java/com/cadl/wiretype/implementation/WireTypeOpsImpl.java @@ -123,21 +123,25 @@ Response bothClassMismatchSync(@HostParam("endpoint") String endpoin * The superClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -160,21 +164,25 @@ public Mono> superClassMismatchWithResponseAsync(BinaryData * The superClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     dateTime: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -196,21 +204,25 @@ public Response superClassMismatchWithResponse(BinaryData body, Requ * The subClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -233,21 +245,25 @@ public Mono> subClassMismatchWithResponseAsync(BinaryData b * The subClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTime: OffsetDateTime (Required)
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -269,21 +285,25 @@ public Response subClassMismatchWithResponse(BinaryData body, Reques * The bothClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -306,21 +326,25 @@ public Mono> bothClassMismatchWithResponseAsync(BinaryData * The bothClassMismatch operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     dateTimeRfc7231: DateTimeRfc1123 (Required)
      *     base64url: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/ClientModelAsyncClient.java b/typespec-tests/src/main/java/com/client/naming/ClientModelAsyncClient.java index ad6a0fe3df..2f050407de 100644 --- a/typespec-tests/src/main/java/com/client/naming/ClientModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/client/naming/ClientModelAsyncClient.java @@ -43,11 +43,13 @@ public final class ClientModelAsyncClient { * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -67,11 +69,13 @@ public Mono> clientWithResponse(BinaryData body, RequestOptions r * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/ClientModelClient.java b/typespec-tests/src/main/java/com/client/naming/ClientModelClient.java index 4417a4d8fa..bd134885fa 100644 --- a/typespec-tests/src/main/java/com/client/naming/ClientModelClient.java +++ b/typespec-tests/src/main/java/com/client/naming/ClientModelClient.java @@ -41,11 +41,13 @@ public final class ClientModelClient { * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -65,11 +67,13 @@ public Response clientWithResponse(BinaryData body, RequestOptions request * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/NamingAsyncClient.java b/typespec-tests/src/main/java/com/client/naming/NamingAsyncClient.java index 431994ec29..61c6813958 100644 --- a/typespec-tests/src/main/java/com/client/naming/NamingAsyncClient.java +++ b/typespec-tests/src/main/java/com/client/naming/NamingAsyncClient.java @@ -77,11 +77,13 @@ public Mono> parameterWithResponse(String clientName, RequestOpti * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -101,11 +103,13 @@ public Mono> clientWithResponse(BinaryData body, RequestOptions r * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -125,11 +129,13 @@ public Mono> languageWithResponse(BinaryData body, RequestOptions * The compatibleWithEncodedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/NamingClient.java b/typespec-tests/src/main/java/com/client/naming/NamingClient.java index 0bde965520..cff7dfd03c 100644 --- a/typespec-tests/src/main/java/com/client/naming/NamingClient.java +++ b/typespec-tests/src/main/java/com/client/naming/NamingClient.java @@ -75,11 +75,13 @@ public Response parameterWithResponse(String clientName, RequestOptions re * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -99,11 +101,13 @@ public Response clientWithResponse(BinaryData body, RequestOptions request * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -123,11 +127,13 @@ public Response languageWithResponse(BinaryData body, RequestOptions reque * The compatibleWithEncodedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/NamingClientBuilder.java b/typespec-tests/src/main/java/com/client/naming/NamingClientBuilder.java index 87c6004abd..6007b9aff0 100644 --- a/typespec-tests/src/main/java/com/client/naming/NamingClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/naming/NamingClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/naming/UnionEnumAsyncClient.java b/typespec-tests/src/main/java/com/client/naming/UnionEnumAsyncClient.java index e13d749135..fc20b724d8 100644 --- a/typespec-tests/src/main/java/com/client/naming/UnionEnumAsyncClient.java +++ b/typespec-tests/src/main/java/com/client/naming/UnionEnumAsyncClient.java @@ -43,9 +43,11 @@ public final class UnionEnumAsyncClient { * The unionEnumName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(value1)
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -65,9 +67,11 @@ public Mono> unionEnumNameWithResponse(BinaryData body, RequestOp * The unionEnumMemberName operation. *

Request Body Schema

* - *
{@code
-     * String(value1 / value2)
-     * }
+ *
+     * {@code
+     * String(value1/value2)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/UnionEnumClient.java b/typespec-tests/src/main/java/com/client/naming/UnionEnumClient.java index fb22deed5a..188050fe9a 100644 --- a/typespec-tests/src/main/java/com/client/naming/UnionEnumClient.java +++ b/typespec-tests/src/main/java/com/client/naming/UnionEnumClient.java @@ -41,9 +41,11 @@ public final class UnionEnumClient { * The unionEnumName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(value1)
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -63,9 +65,11 @@ public Response unionEnumNameWithResponse(BinaryData body, RequestOptions * The unionEnumMemberName operation. *

Request Body Schema

* - *
{@code
-     * String(value1 / value2)
-     * }
+ *
+     * {@code
+     * String(value1/value2)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/implementation/ClientModelsImpl.java b/typespec-tests/src/main/java/com/client/naming/implementation/ClientModelsImpl.java index 8e2403e6b8..4f5727536d 100644 --- a/typespec-tests/src/main/java/com/client/naming/implementation/ClientModelsImpl.java +++ b/typespec-tests/src/main/java/com/client/naming/implementation/ClientModelsImpl.java @@ -103,11 +103,13 @@ Response languageSync(@HostParam("endpoint") String endpoint, * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -128,11 +130,13 @@ public Mono> clientWithResponseAsync(BinaryData body, RequestOpti * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -152,11 +156,13 @@ public Response clientWithResponse(BinaryData body, RequestOptions request * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -177,11 +183,13 @@ public Mono> languageWithResponseAsync(BinaryData body, RequestOp * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/implementation/NamingClientImpl.java b/typespec-tests/src/main/java/com/client/naming/implementation/NamingClientImpl.java index 2b80eddc75..b85ba59b1c 100644 --- a/typespec-tests/src/main/java/com/client/naming/implementation/NamingClientImpl.java +++ b/typespec-tests/src/main/java/com/client/naming/implementation/NamingClientImpl.java @@ -355,11 +355,13 @@ public Response parameterWithResponse(String clientName, RequestOptions re * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -380,11 +382,13 @@ public Mono> clientWithResponseAsync(BinaryData body, RequestOpti * The client operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -404,11 +408,13 @@ public Response clientWithResponse(BinaryData body, RequestOptions request * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -429,11 +435,13 @@ public Mono> languageWithResponseAsync(BinaryData body, RequestOp * The language operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     defaultName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -453,11 +461,13 @@ public Response languageWithResponse(BinaryData body, RequestOptions reque * The compatibleWithEncodedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -479,11 +489,13 @@ public Mono> compatibleWithEncodedNameWithResponseAsync(BinaryDat * The compatibleWithEncodedName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/naming/implementation/UnionEnumsImpl.java b/typespec-tests/src/main/java/com/client/naming/implementation/UnionEnumsImpl.java index ed4791a76e..226c838f15 100644 --- a/typespec-tests/src/main/java/com/client/naming/implementation/UnionEnumsImpl.java +++ b/typespec-tests/src/main/java/com/client/naming/implementation/UnionEnumsImpl.java @@ -103,9 +103,11 @@ Response unionEnumMemberNameSync(@HostParam("endpoint") String endpoint, * The unionEnumName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(value1)
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -126,9 +128,11 @@ public Mono> unionEnumNameWithResponseAsync(BinaryData body, Requ * The unionEnumName operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String(value1)
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -148,9 +152,11 @@ public Response unionEnumNameWithResponse(BinaryData body, RequestOptions * The unionEnumMemberName operation. *

Request Body Schema

* - *
{@code
-     * String(value1 / value2)
-     * }
+ *
+     * {@code
+     * String(value1/value2)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -171,9 +177,11 @@ public Mono> unionEnumMemberNameWithResponseAsync(BinaryData body * The unionEnumMemberName operation. *

Request Body Schema

* - *
{@code
-     * String(value1 / value2)
-     * }
+ *
+     * {@code
+     * String(value1/value2)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/client/structure/service/ClientAClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/ClientAClientBuilder.java index 524b821280..39ad0ac944 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/ClientAClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/ClientAClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/structure/service/ClientBClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/ClientBClientBuilder.java index 5e62b0f4a9..2e151df9e5 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/ClientBClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/ClientBClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/structure/service/FirstClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/FirstClientBuilder.java index 05bdd3587a..4e07b3fc24 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/FirstClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/FirstClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/structure/service/RenamedOperationClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/RenamedOperationClientBuilder.java index 25a6292f72..7cbba3c1c7 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/RenamedOperationClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/RenamedOperationClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/structure/service/ServiceClientClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/ServiceClientClientBuilder.java index b162ae1114..f28cabb3c8 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/ServiceClientClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/ServiceClientClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/structure/service/TwoOperationGroupClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/TwoOperationGroupClientBuilder.java index 9e78ba0015..04c566409c 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/TwoOperationGroupClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/TwoOperationGroupClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/client/structure/service/subnamespace/SecondClientBuilder.java b/typespec-tests/src/main/java/com/client/structure/service/subnamespace/SecondClientBuilder.java index f6105d7536..1d48e1b40f 100644 --- a/typespec-tests/src/main/java/com/client/structure/service/subnamespace/SecondClientBuilder.java +++ b/typespec-tests/src/main/java/com/client/structure/service/subnamespace/SecondClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/encode/bytes/BytesClientBuilder.java b/typespec-tests/src/main/java/com/encode/bytes/BytesClientBuilder.java index df2b8d0061..bc5dc006da 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/BytesClientBuilder.java +++ b/typespec-tests/src/main/java/com/encode/bytes/BytesClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/encode/bytes/PropertyAsyncClient.java b/typespec-tests/src/main/java/com/encode/bytes/PropertyAsyncClient.java index 15185865a3..4cd491c469 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/PropertyAsyncClient.java +++ b/typespec-tests/src/main/java/com/encode/bytes/PropertyAsyncClient.java @@ -45,19 +45,23 @@ public final class PropertyAsyncClient { * The defaultMethod operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -77,19 +81,23 @@ public Mono> defaultMethodWithResponse(BinaryData body, Req * The base64 operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -109,19 +117,23 @@ public Mono> base64WithResponse(BinaryData body, RequestOpt * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -141,23 +153,27 @@ public Mono> base64urlWithResponse(BinaryData body, Request * The base64urlArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         Base64Url (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/bytes/PropertyClient.java b/typespec-tests/src/main/java/com/encode/bytes/PropertyClient.java index ff873baa50..8bb162e80e 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/PropertyClient.java +++ b/typespec-tests/src/main/java/com/encode/bytes/PropertyClient.java @@ -43,19 +43,23 @@ public final class PropertyClient { * The defaultMethod operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -75,19 +79,23 @@ public Response defaultMethodWithResponse(BinaryData body, RequestOp * The base64 operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -107,19 +115,23 @@ public Response base64WithResponse(BinaryData body, RequestOptions r * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -139,23 +151,27 @@ public Response base64urlWithResponse(BinaryData body, RequestOption * The base64urlArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         Base64Url (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/bytes/RequestBodyAsyncClient.java b/typespec-tests/src/main/java/com/encode/bytes/RequestBodyAsyncClient.java index 1cde0b0847..5c908488d4 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/RequestBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/encode/bytes/RequestBodyAsyncClient.java @@ -42,9 +42,11 @@ public final class RequestBodyAsyncClient { * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -64,9 +66,11 @@ public Mono> defaultMethodWithResponse(BinaryData value, RequestO * The octetStream operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -86,9 +90,11 @@ public Mono> octetStreamWithResponse(BinaryData value, RequestOpt * The customContentType operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,9 +114,11 @@ public Mono> customContentTypeWithResponse(BinaryData value, Requ * The base64 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -130,9 +138,11 @@ public Mono> base64WithResponse(BinaryData value, RequestOptions * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/bytes/RequestBodyClient.java b/typespec-tests/src/main/java/com/encode/bytes/RequestBodyClient.java index b5e7b95b04..0ffb478141 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/RequestBodyClient.java +++ b/typespec-tests/src/main/java/com/encode/bytes/RequestBodyClient.java @@ -40,9 +40,11 @@ public final class RequestBodyClient { * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -62,9 +64,11 @@ public Response defaultMethodWithResponse(BinaryData value, RequestOptions * The octetStream operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -84,9 +88,11 @@ public Response octetStreamWithResponse(BinaryData value, RequestOptions r * The customContentType operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -106,9 +112,11 @@ public Response customContentTypeWithResponse(BinaryData value, RequestOpt * The base64 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -128,9 +136,11 @@ public Response base64WithResponse(BinaryData value, RequestOptions reques * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyAsyncClient.java b/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyAsyncClient.java index ab7775c600..c394ff00c0 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyAsyncClient.java @@ -42,9 +42,11 @@ public final class ResponseBodyAsyncClient { * The defaultMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> defaultMethodWithResponse(RequestOptions reque * The octetStream operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -84,9 +88,11 @@ public Mono> octetStreamWithResponse(RequestOptions request * The customContentType operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -105,9 +111,11 @@ public Mono> customContentTypeWithResponse(RequestOptions r * The base64 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,9 +134,11 @@ public Mono> base64WithResponse(RequestOptions requestOptio * The base64url operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyClient.java b/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyClient.java index a6660515b5..bd32be3d8e 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyClient.java +++ b/typespec-tests/src/main/java/com/encode/bytes/ResponseBodyClient.java @@ -40,9 +40,11 @@ public final class ResponseBodyClient { * The defaultMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response defaultMethodWithResponse(RequestOptions requestOpti * The octetStream operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -82,9 +86,11 @@ public Response octetStreamWithResponse(RequestOptions requestOption * The customContentType operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -103,9 +109,11 @@ public Response customContentTypeWithResponse(RequestOptions request * The base64 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,9 +132,11 @@ public Response base64WithResponse(RequestOptions requestOptions) { * The base64url operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/encode/bytes/implementation/PropertiesImpl.java b/typespec-tests/src/main/java/com/encode/bytes/implementation/PropertiesImpl.java index cf13e81e8d..4c8b2bcb9f 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/implementation/PropertiesImpl.java +++ b/typespec-tests/src/main/java/com/encode/bytes/implementation/PropertiesImpl.java @@ -143,19 +143,23 @@ Response base64urlArraySync(@HostParam("endpoint") String endpoint, * The defaultMethod operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -177,19 +181,23 @@ public Mono> defaultMethodWithResponseAsync(BinaryData body * The defaultMethod operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -211,19 +219,23 @@ public Response defaultMethodWithResponse(BinaryData body, RequestOp * The base64 operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -245,19 +257,23 @@ public Mono> base64WithResponseAsync(BinaryData body, Reque * The base64 operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -278,19 +294,23 @@ public Response base64WithResponse(BinaryData body, RequestOptions r * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -312,19 +332,23 @@ public Mono> base64urlWithResponseAsync(BinaryData body, Re * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Base64Url (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -346,23 +370,27 @@ public Response base64urlWithResponse(BinaryData body, RequestOption * The base64urlArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         Base64Url (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -384,23 +412,27 @@ public Mono> base64urlArrayWithResponseAsync(BinaryData bod * The base64urlArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         Base64Url (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/bytes/implementation/RequestBodiesImpl.java b/typespec-tests/src/main/java/com/encode/bytes/implementation/RequestBodiesImpl.java index 87b035b669..15a65a71cd 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/implementation/RequestBodiesImpl.java +++ b/typespec-tests/src/main/java/com/encode/bytes/implementation/RequestBodiesImpl.java @@ -163,9 +163,11 @@ Response base64urlSync(@HostParam("endpoint") String endpoint, * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -186,9 +188,11 @@ public Mono> defaultMethodWithResponseAsync(BinaryData value, Req * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -208,9 +212,11 @@ public Response defaultMethodWithResponse(BinaryData value, RequestOptions * The octetStream operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -231,9 +237,11 @@ public Mono> octetStreamWithResponseAsync(BinaryData value, Reque * The octetStream operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -253,9 +261,11 @@ public Response octetStreamWithResponse(BinaryData value, RequestOptions r * The customContentType operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -276,9 +286,11 @@ public Mono> customContentTypeWithResponseAsync(BinaryData value, * The customContentType operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -299,9 +311,11 @@ public Response customContentTypeWithResponse(BinaryData value, RequestOpt * The base64 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -322,9 +336,11 @@ public Mono> base64WithResponseAsync(BinaryData value, RequestOpt * The base64 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -344,9 +360,11 @@ public Response base64WithResponse(BinaryData value, RequestOptions reques * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -367,9 +385,11 @@ public Mono> base64urlWithResponseAsync(BinaryData value, Request * The base64url operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/bytes/implementation/ResponseBodiesImpl.java b/typespec-tests/src/main/java/com/encode/bytes/implementation/ResponseBodiesImpl.java index 8f84bfe688..02a1283417 100644 --- a/typespec-tests/src/main/java/com/encode/bytes/implementation/ResponseBodiesImpl.java +++ b/typespec-tests/src/main/java/com/encode/bytes/implementation/ResponseBodiesImpl.java @@ -152,9 +152,11 @@ Response base64urlSync(@HostParam("endpoint") String endpoint, @Head * The defaultMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -174,9 +176,11 @@ public Mono> defaultMethodWithResponseAsync(RequestOptions * The defaultMethod operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -195,9 +199,11 @@ public Response defaultMethodWithResponse(RequestOptions requestOpti * The octetStream operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,9 +223,11 @@ public Mono> octetStreamWithResponseAsync(RequestOptions re * The octetStream operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -238,9 +246,11 @@ public Response octetStreamWithResponse(RequestOptions requestOption * The customContentType operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -260,9 +270,11 @@ public Mono> customContentTypeWithResponseAsync(RequestOpti * The customContentType operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -281,9 +293,11 @@ public Response customContentTypeWithResponse(RequestOptions request * The base64 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -303,9 +317,11 @@ public Mono> base64WithResponseAsync(RequestOptions request * The base64 operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * byte[]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -324,9 +340,11 @@ public Response base64WithResponse(RequestOptions requestOptions) { * The base64url operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -346,9 +364,11 @@ public Mono> base64urlWithResponseAsync(RequestOptions requ * The base64url operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Base64Url
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/encode/datetime/DatetimeClientBuilder.java b/typespec-tests/src/main/java/com/encode/datetime/DatetimeClientBuilder.java index d228837b6a..179373a9e7 100644 --- a/typespec-tests/src/main/java/com/encode/datetime/DatetimeClientBuilder.java +++ b/typespec-tests/src/main/java/com/encode/datetime/DatetimeClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/encode/datetime/PropertyAsyncClient.java b/typespec-tests/src/main/java/com/encode/datetime/PropertyAsyncClient.java index 5539e67d1b..936d2182d9 100644 --- a/typespec-tests/src/main/java/com/encode/datetime/PropertyAsyncClient.java +++ b/typespec-tests/src/main/java/com/encode/datetime/PropertyAsyncClient.java @@ -46,19 +46,23 @@ public final class PropertyAsyncClient { * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -78,19 +82,23 @@ public Mono> defaultMethodWithResponse(BinaryData body, Req * The rfc3339 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,19 +118,23 @@ public Mono> rfc3339WithResponse(BinaryData body, RequestOp * The rfc7231 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -142,19 +154,23 @@ public Mono> rfc7231WithResponse(BinaryData body, RequestOp * The unixTimestamp operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -174,23 +190,27 @@ public Mono> unixTimestampWithResponse(BinaryData body, Req * The unixTimestampArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         long (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/datetime/PropertyClient.java b/typespec-tests/src/main/java/com/encode/datetime/PropertyClient.java index ea134932f3..ba1b0d2d59 100644 --- a/typespec-tests/src/main/java/com/encode/datetime/PropertyClient.java +++ b/typespec-tests/src/main/java/com/encode/datetime/PropertyClient.java @@ -44,19 +44,23 @@ public final class PropertyClient { * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -76,19 +80,23 @@ public Response defaultMethodWithResponse(BinaryData body, RequestOp * The rfc3339 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,19 +116,23 @@ public Response rfc3339WithResponse(BinaryData body, RequestOptions * The rfc7231 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -140,19 +152,23 @@ public Response rfc7231WithResponse(BinaryData body, RequestOptions * The unixTimestamp operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,23 +188,27 @@ public Response unixTimestampWithResponse(BinaryData body, RequestOp * The unixTimestampArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         long (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/datetime/implementation/PropertiesImpl.java b/typespec-tests/src/main/java/com/encode/datetime/implementation/PropertiesImpl.java index 0ee32e70e6..0abe2b06e5 100644 --- a/typespec-tests/src/main/java/com/encode/datetime/implementation/PropertiesImpl.java +++ b/typespec-tests/src/main/java/com/encode/datetime/implementation/PropertiesImpl.java @@ -163,19 +163,23 @@ Response unixTimestampArraySync(@HostParam("endpoint") String endpoi * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -197,19 +201,23 @@ public Mono> defaultMethodWithResponseAsync(BinaryData body * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -231,19 +239,23 @@ public Response defaultMethodWithResponse(BinaryData body, RequestOp * The rfc3339 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -265,19 +277,23 @@ public Mono> rfc3339WithResponseAsync(BinaryData body, Requ * The rfc3339 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -298,19 +314,23 @@ public Response rfc3339WithResponse(BinaryData body, RequestOptions * The rfc7231 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -332,19 +352,23 @@ public Mono> rfc7231WithResponseAsync(BinaryData body, Requ * The rfc7231 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: DateTimeRfc1123 (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -365,19 +389,23 @@ public Response rfc7231WithResponse(BinaryData body, RequestOptions * The unixTimestamp operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -399,19 +427,23 @@ public Mono> unixTimestampWithResponseAsync(BinaryData body * The unixTimestamp operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -433,23 +465,27 @@ public Response unixTimestampWithResponse(BinaryData body, RequestOp * The unixTimestampArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         long (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -472,23 +508,27 @@ public Mono> unixTimestampArrayWithResponseAsync(BinaryData * The unixTimestampArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         long (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/duration/DurationClientBuilder.java b/typespec-tests/src/main/java/com/encode/duration/DurationClientBuilder.java index 502799aad5..3ce478a709 100644 --- a/typespec-tests/src/main/java/com/encode/duration/DurationClientBuilder.java +++ b/typespec-tests/src/main/java/com/encode/duration/DurationClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/encode/duration/PropertyAsyncClient.java b/typespec-tests/src/main/java/com/encode/duration/PropertyAsyncClient.java index e4968a20fa..ac44be1900 100644 --- a/typespec-tests/src/main/java/com/encode/duration/PropertyAsyncClient.java +++ b/typespec-tests/src/main/java/com/encode/duration/PropertyAsyncClient.java @@ -21,8 +21,8 @@ import com.encode.duration.models.Float64SecondsDurationProperty; import com.encode.duration.models.FloatSecondsDurationArrayProperty; import com.encode.duration.models.FloatSecondsDurationProperty; -import com.encode.duration.models.Int32SecondsDurationProperty; import com.encode.duration.models.ISO8601DurationProperty; +import com.encode.duration.models.Int32SecondsDurationProperty; import reactor.core.publisher.Mono; /** @@ -47,19 +47,23 @@ public final class PropertyAsyncClient { * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -79,19 +83,23 @@ public Mono> defaultMethodWithResponse(BinaryData body, Req * The iso8601 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -111,19 +119,23 @@ public Mono> iso8601WithResponse(BinaryData body, RequestOp * The int32Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -143,19 +155,23 @@ public Mono> int32SecondsWithResponse(BinaryData body, Requ * The floatSeconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -175,19 +191,23 @@ public Mono> floatSecondsWithResponse(BinaryData body, Requ * The float64Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -207,23 +227,27 @@ public Mono> float64SecondsWithResponse(BinaryData body, Re * The floatSecondsArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         double (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/duration/PropertyClient.java b/typespec-tests/src/main/java/com/encode/duration/PropertyClient.java index 4b96b81f77..5be718ac98 100644 --- a/typespec-tests/src/main/java/com/encode/duration/PropertyClient.java +++ b/typespec-tests/src/main/java/com/encode/duration/PropertyClient.java @@ -20,8 +20,8 @@ import com.encode.duration.models.Float64SecondsDurationProperty; import com.encode.duration.models.FloatSecondsDurationArrayProperty; import com.encode.duration.models.FloatSecondsDurationProperty; -import com.encode.duration.models.Int32SecondsDurationProperty; import com.encode.duration.models.ISO8601DurationProperty; +import com.encode.duration.models.Int32SecondsDurationProperty; /** * Initializes a new instance of the synchronous DurationClient type. @@ -45,19 +45,23 @@ public final class PropertyClient { * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -77,19 +81,23 @@ public Response defaultMethodWithResponse(BinaryData body, RequestOp * The iso8601 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -109,19 +117,23 @@ public Response iso8601WithResponse(BinaryData body, RequestOptions * The int32Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -141,19 +153,23 @@ public Response int32SecondsWithResponse(BinaryData body, RequestOpt * The floatSeconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -173,19 +189,23 @@ public Response floatSecondsWithResponse(BinaryData body, RequestOpt * The float64Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -205,23 +225,27 @@ public Response float64SecondsWithResponse(BinaryData body, RequestO * The floatSecondsArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         double (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/duration/implementation/PropertiesImpl.java b/typespec-tests/src/main/java/com/encode/duration/implementation/PropertiesImpl.java index d3f98e0853..04b2063e17 100644 --- a/typespec-tests/src/main/java/com/encode/duration/implementation/PropertiesImpl.java +++ b/typespec-tests/src/main/java/com/encode/duration/implementation/PropertiesImpl.java @@ -183,19 +183,23 @@ Response floatSecondsArraySync(@HostParam("endpoint") String endpoin * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -217,19 +221,23 @@ public Mono> defaultMethodWithResponseAsync(BinaryData body * The defaultMethod operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -251,19 +259,23 @@ public Response defaultMethodWithResponse(BinaryData body, RequestOp * The iso8601 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,19 +297,23 @@ public Mono> iso8601WithResponseAsync(BinaryData body, Requ * The iso8601 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -318,19 +334,23 @@ public Response iso8601WithResponse(BinaryData body, RequestOptions * The int32Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -352,19 +372,23 @@ public Mono> int32SecondsWithResponseAsync(BinaryData body, * The int32Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -386,19 +410,23 @@ public Response int32SecondsWithResponse(BinaryData body, RequestOpt * The floatSeconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -420,19 +448,23 @@ public Mono> floatSecondsWithResponseAsync(BinaryData body, * The floatSeconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -454,19 +486,23 @@ public Response floatSecondsWithResponse(BinaryData body, RequestOpt * The float64Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -488,19 +524,23 @@ public Mono> float64SecondsWithResponseAsync(BinaryData bod * The float64Seconds operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -522,23 +562,27 @@ public Response float64SecondsWithResponse(BinaryData body, RequestO * The floatSecondsArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         double (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -561,23 +605,27 @@ public Mono> floatSecondsArrayWithResponseAsync(BinaryData * The floatSecondsArray operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value (Required): [
      *         double (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/numeric/NumericAsyncClient.java b/typespec-tests/src/main/java/com/encode/numeric/NumericAsyncClient.java index 3ae0ecfa30..d60882ef61 100644 --- a/typespec-tests/src/main/java/com/encode/numeric/NumericAsyncClient.java +++ b/typespec-tests/src/main/java/com/encode/numeric/NumericAsyncClient.java @@ -44,19 +44,23 @@ public final class NumericAsyncClient { * The safeintAsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -76,19 +80,23 @@ public Mono> safeintAsStringWithResponse(BinaryData value, * The uint32AsStringOptional operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -109,19 +117,23 @@ public Mono> uint32AsStringOptionalWithResponse(BinaryData * The uint8AsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: int (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/numeric/NumericClient.java b/typespec-tests/src/main/java/com/encode/numeric/NumericClient.java index e0e8334a50..cd5d9a52ac 100644 --- a/typespec-tests/src/main/java/com/encode/numeric/NumericClient.java +++ b/typespec-tests/src/main/java/com/encode/numeric/NumericClient.java @@ -42,19 +42,23 @@ public final class NumericClient { * The safeintAsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -74,19 +78,23 @@ public Response safeintAsStringWithResponse(BinaryData value, Reques * The uint32AsStringOptional operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -106,19 +114,23 @@ public Response uint32AsStringOptionalWithResponse(BinaryData value, * The uint8AsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: int (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/encode/numeric/NumericClientBuilder.java b/typespec-tests/src/main/java/com/encode/numeric/NumericClientBuilder.java index e227406f3c..f4d85354fc 100644 --- a/typespec-tests/src/main/java/com/encode/numeric/NumericClientBuilder.java +++ b/typespec-tests/src/main/java/com/encode/numeric/NumericClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/encode/numeric/implementation/PropertiesImpl.java b/typespec-tests/src/main/java/com/encode/numeric/implementation/PropertiesImpl.java index 00c4b294c4..a194d20a9d 100644 --- a/typespec-tests/src/main/java/com/encode/numeric/implementation/PropertiesImpl.java +++ b/typespec-tests/src/main/java/com/encode/numeric/implementation/PropertiesImpl.java @@ -123,19 +123,23 @@ Response uint8AsStringSync(@HostParam("endpoint") String endpoint, * The safeintAsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -158,19 +162,23 @@ public Mono> safeintAsStringWithResponseAsync(BinaryData va * The safeintAsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: long (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -192,19 +200,23 @@ public Response safeintAsStringWithResponse(BinaryData value, Reques * The uint32AsStringOptional operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -227,19 +239,23 @@ public Mono> uint32AsStringOptionalWithResponseAsync(Binary * The uint32AsStringOptional operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: Integer (Optional)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,19 +277,23 @@ public Response uint32AsStringOptionalWithResponse(BinaryData value, * The uint8AsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: int (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -295,19 +315,23 @@ public Mono> uint8AsStringWithResponseAsync(BinaryData valu * The uint8AsString operation. *

Request Body Schema

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

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     value: int (Required)
      * }
-     * }
+ * } + *
* * @param value The value parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/basic/BasicClientBuilder.java b/typespec-tests/src/main/java/com/parameters/basic/BasicClientBuilder.java index db9f8484e1..4432ad2f0e 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/BasicClientBuilder.java +++ b/typespec-tests/src/main/java/com/parameters/basic/BasicClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyAsyncClient.java b/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyAsyncClient.java index fdf00056d4..f1c1940f2c 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyAsyncClient.java @@ -42,11 +42,13 @@ public final class ExplicitBodyAsyncClient { * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyClient.java b/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyClient.java index ee13ecf9bf..ad6aeb0ad0 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyClient.java +++ b/typespec-tests/src/main/java/com/parameters/basic/ExplicitBodyClient.java @@ -40,11 +40,13 @@ public final class ExplicitBodyClient { * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyAsyncClient.java b/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyAsyncClient.java index f46dacbd4c..f50c390bf4 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyAsyncClient.java @@ -42,11 +42,13 @@ public final class ImplicitBodyAsyncClient { * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param simpleRequest The simpleRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyClient.java b/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyClient.java index bb3c238c13..02bb6e7da8 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyClient.java +++ b/typespec-tests/src/main/java/com/parameters/basic/ImplicitBodyClient.java @@ -40,11 +40,13 @@ public final class ImplicitBodyClient { * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param simpleRequest The simpleRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/basic/implementation/ExplicitBodiesImpl.java b/typespec-tests/src/main/java/com/parameters/basic/implementation/ExplicitBodiesImpl.java index 1d8fb58927..c5f7132b3a 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/implementation/ExplicitBodiesImpl.java +++ b/typespec-tests/src/main/java/com/parameters/basic/implementation/ExplicitBodiesImpl.java @@ -83,11 +83,13 @@ Response simpleSync(@HostParam("endpoint") String endpoint, * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,11 +110,13 @@ public Mono> simpleWithResponseAsync(BinaryData body, RequestOpti * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/basic/implementation/ImplicitBodiesImpl.java b/typespec-tests/src/main/java/com/parameters/basic/implementation/ImplicitBodiesImpl.java index 1278afcded..35dc095853 100644 --- a/typespec-tests/src/main/java/com/parameters/basic/implementation/ImplicitBodiesImpl.java +++ b/typespec-tests/src/main/java/com/parameters/basic/implementation/ImplicitBodiesImpl.java @@ -83,11 +83,13 @@ Response simpleSync(@HostParam("endpoint") String endpoint, * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param simpleRequest The simpleRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,11 +110,13 @@ public Mono> simpleWithResponseAsync(BinaryData simpleRequest, Re * The simple operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param simpleRequest The simpleRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityAsyncClient.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityAsyncClient.java index 79fc03bcdd..1fbd0afd52 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityAsyncClient.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityAsyncClient.java @@ -42,11 +42,13 @@ public final class BodyOptionalityAsyncClient { * The requiredExplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -66,11 +68,13 @@ public Mono> requiredExplicitWithResponse(BinaryData body, Reques * The requiredImplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyModel The bodyModel parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClient.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClient.java index f4cdf489f2..9ee61d2ccd 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClient.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClient.java @@ -40,11 +40,13 @@ public final class BodyOptionalityClient { * The requiredExplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -64,11 +66,13 @@ public Response requiredExplicitWithResponse(BinaryData body, RequestOptio * The requiredImplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyModel The bodyModel parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClientBuilder.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClientBuilder.java index 8ff3dc9c93..9801dae37f 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClientBuilder.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/BodyOptionalityClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitAsyncClient.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitAsyncClient.java index 3fc48d2233..61c1dd7f45 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitAsyncClient.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitAsyncClient.java @@ -50,11 +50,13 @@ public final class OptionalExplicitAsyncClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -81,11 +83,13 @@ public Mono> setWithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitClient.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitClient.java index 435a507941..fdf691e775 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitClient.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/OptionalExplicitClient.java @@ -48,11 +48,13 @@ public final class OptionalExplicitClient { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -79,11 +81,13 @@ public Response setWithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/BodyOptionalityClientImpl.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/BodyOptionalityClientImpl.java index 9388cdaedf..3417fc005c 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/BodyOptionalityClientImpl.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/BodyOptionalityClientImpl.java @@ -185,11 +185,13 @@ Response requiredImplicitSync(@HostParam("endpoint") String endpoint, * The requiredExplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -210,11 +212,13 @@ public Mono> requiredExplicitWithResponseAsync(BinaryData body, R * The requiredExplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -234,11 +238,13 @@ public Response requiredExplicitWithResponse(BinaryData body, RequestOptio * The requiredImplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyModel The bodyModel parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -259,11 +265,13 @@ public Mono> requiredImplicitWithResponseAsync(BinaryData bodyMod * The requiredImplicit operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyModel The bodyModel parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/OptionalExplicitsImpl.java b/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/OptionalExplicitsImpl.java index cb4d687e7b..cc06d9dde4 100644 --- a/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/OptionalExplicitsImpl.java +++ b/typespec-tests/src/main/java/com/parameters/bodyoptionality/implementation/OptionalExplicitsImpl.java @@ -103,11 +103,13 @@ Mono> omit(@HostParam("endpoint") String endpoint, RequestOptions * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -139,11 +141,13 @@ public Mono> setWithResponseAsync(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -175,11 +179,13 @@ public Response setWithResponse(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -211,11 +217,13 @@ public Mono> omitWithResponseAsync(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/parameters/collectionformat/CollectionFormatClientBuilder.java b/typespec-tests/src/main/java/com/parameters/collectionformat/CollectionFormatClientBuilder.java index f029cc7b92..b52f24bbae 100644 --- a/typespec-tests/src/main/java/com/parameters/collectionformat/CollectionFormatClientBuilder.java +++ b/typespec-tests/src/main/java/com/parameters/collectionformat/CollectionFormatClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/parameters/spread/AliasAsyncClient.java b/typespec-tests/src/main/java/com/parameters/spread/AliasAsyncClient.java index 6bb61d0274..826d682db1 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/AliasAsyncClient.java +++ b/typespec-tests/src/main/java/com/parameters/spread/AliasAsyncClient.java @@ -47,11 +47,13 @@ public final class AliasAsyncClient { * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param spreadAsRequestBodyRequest The spreadAsRequestBodyRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -72,11 +74,13 @@ public Mono> spreadAsRequestBodyWithResponse(BinaryData spreadAsR * The spreadParameterWithInnerModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -100,11 +104,13 @@ public Mono> spreadParameterWithInnerModelWithResponse(String id, * The spreadAsRequestParameter operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -128,7 +134,8 @@ public Mono> spreadAsRequestParameterWithResponse(String id, Stri * The spreadWithMultipleParameters operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredString: String (Required)
      *     optionalInt: Integer (Optional)
@@ -139,7 +146,8 @@ public Mono> spreadAsRequestParameterWithResponse(String id, Stri
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -163,12 +171,14 @@ public Mono> spreadWithMultipleParametersWithResponse(String id, * spread an alias with contains another alias property as body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. diff --git a/typespec-tests/src/main/java/com/parameters/spread/AliasClient.java b/typespec-tests/src/main/java/com/parameters/spread/AliasClient.java index fbc955011e..964ac7cd7d 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/AliasClient.java +++ b/typespec-tests/src/main/java/com/parameters/spread/AliasClient.java @@ -45,11 +45,13 @@ public final class AliasClient { * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param spreadAsRequestBodyRequest The spreadAsRequestBodyRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -70,11 +72,13 @@ public Response spreadAsRequestBodyWithResponse(BinaryData spreadAsRequest * The spreadParameterWithInnerModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -98,11 +102,13 @@ public Response spreadParameterWithInnerModelWithResponse(String id, Strin * The spreadAsRequestParameter operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -126,7 +132,8 @@ public Response spreadAsRequestParameterWithResponse(String id, String xMs * The spreadWithMultipleParameters operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredString: String (Required)
      *     optionalInt: Integer (Optional)
@@ -137,7 +144,8 @@ public Response spreadAsRequestParameterWithResponse(String id, String xMs
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -161,12 +169,14 @@ public Response spreadWithMultipleParametersWithResponse(String id, String * spread an alias with contains another alias property as body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. diff --git a/typespec-tests/src/main/java/com/parameters/spread/ModelAsyncClient.java b/typespec-tests/src/main/java/com/parameters/spread/ModelAsyncClient.java index 9e583fcee8..28f5598681 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/ModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/parameters/spread/ModelAsyncClient.java @@ -43,11 +43,13 @@ public final class ModelAsyncClient { * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyParameter The bodyParameter parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -68,11 +70,13 @@ public Mono> spreadAsRequestBodyWithResponse(BinaryData bodyParam * The spreadCompositeRequestOnlyWithBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -112,11 +116,13 @@ public Mono> spreadCompositeRequestWithoutBodyWithResponse(String * The spreadCompositeRequest operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. @@ -139,11 +145,13 @@ public Mono> spreadCompositeRequestWithResponse(String name, Stri * The spreadCompositeRequestMix operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. diff --git a/typespec-tests/src/main/java/com/parameters/spread/ModelClient.java b/typespec-tests/src/main/java/com/parameters/spread/ModelClient.java index 4fa5c72343..5173c21eb6 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/ModelClient.java +++ b/typespec-tests/src/main/java/com/parameters/spread/ModelClient.java @@ -41,11 +41,13 @@ public final class ModelClient { * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyParameter The bodyParameter parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -65,11 +67,13 @@ public Response spreadAsRequestBodyWithResponse(BinaryData bodyParameter, * The spreadCompositeRequestOnlyWithBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -109,11 +113,13 @@ public Response spreadCompositeRequestWithoutBodyWithResponse(String name, * The spreadCompositeRequest operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. @@ -136,11 +142,13 @@ public Response spreadCompositeRequestWithResponse(String name, String tes * The spreadCompositeRequestMix operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. diff --git a/typespec-tests/src/main/java/com/parameters/spread/SpreadClientBuilder.java b/typespec-tests/src/main/java/com/parameters/spread/SpreadClientBuilder.java index 47711e460b..df1b9517d8 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/SpreadClientBuilder.java +++ b/typespec-tests/src/main/java/com/parameters/spread/SpreadClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/parameters/spread/implementation/AliasImpl.java b/typespec-tests/src/main/java/com/parameters/spread/implementation/AliasImpl.java index b99cea4e3e..5de4ff150e 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/implementation/AliasImpl.java +++ b/typespec-tests/src/main/java/com/parameters/spread/implementation/AliasImpl.java @@ -181,11 +181,13 @@ Response spreadParameterWithInnerAliasSync(@HostParam("endpoint") String e * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param spreadAsRequestBodyRequest The spreadAsRequestBodyRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -207,11 +209,13 @@ public Mono> spreadAsRequestBodyWithResponseAsync(BinaryData spre * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param spreadAsRequestBodyRequest The spreadAsRequestBodyRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -233,11 +237,13 @@ public Response spreadAsRequestBodyWithResponse(BinaryData spreadAsRequest * The spreadParameterWithInnerModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -261,11 +267,13 @@ public Mono> spreadParameterWithInnerModelWithResponseAsync(Strin * The spreadParameterWithInnerModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -289,11 +297,13 @@ public Response spreadParameterWithInnerModelWithResponse(String id, Strin * The spreadAsRequestParameter operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -317,11 +327,13 @@ public Mono> spreadAsRequestParameterWithResponseAsync(String id, * The spreadAsRequestParameter operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -345,7 +357,8 @@ public Response spreadAsRequestParameterWithResponse(String id, String xMs * The spreadWithMultipleParameters operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredString: String (Required)
      *     optionalInt: Integer (Optional)
@@ -356,7 +369,8 @@ public Response spreadAsRequestParameterWithResponse(String id, String xMs
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -380,7 +394,8 @@ public Mono> spreadWithMultipleParametersWithResponseAsync(String * The spreadWithMultipleParameters operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredString: String (Required)
      *     optionalInt: Integer (Optional)
@@ -391,7 +406,8 @@ public Mono> spreadWithMultipleParametersWithResponseAsync(String
      *         String (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -415,12 +431,14 @@ public Response spreadWithMultipleParametersWithResponse(String id, String * spread an alias with contains another alias property as body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. @@ -444,12 +462,14 @@ public Mono> spreadParameterWithInnerAliasWithResponseAsync(Strin * spread an alias with contains another alias property as body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param id The id parameter. * @param xMsTestHeader The xMsTestHeader parameter. diff --git a/typespec-tests/src/main/java/com/parameters/spread/implementation/ModelsImpl.java b/typespec-tests/src/main/java/com/parameters/spread/implementation/ModelsImpl.java index 7b1e891174..5e7acec1bb 100644 --- a/typespec-tests/src/main/java/com/parameters/spread/implementation/ModelsImpl.java +++ b/typespec-tests/src/main/java/com/parameters/spread/implementation/ModelsImpl.java @@ -169,11 +169,13 @@ Response spreadCompositeRequestMixSync(@HostParam("endpoint") String endpo * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyParameter The bodyParameter parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -195,11 +197,13 @@ public Mono> spreadAsRequestBodyWithResponseAsync(BinaryData body * The spreadAsRequestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param bodyParameter The bodyParameter parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -220,11 +224,13 @@ public Response spreadAsRequestBodyWithResponse(BinaryData bodyParameter, * The spreadCompositeRequestOnlyWithBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -246,11 +252,13 @@ public Mono> spreadCompositeRequestOnlyWithBodyWithResponseAsync( * The spreadCompositeRequestOnlyWithBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +318,13 @@ public Response spreadCompositeRequestWithoutBodyWithResponse(String name, * The spreadCompositeRequest operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. @@ -338,11 +348,13 @@ public Mono> spreadCompositeRequestWithResponseAsync(String name, * The spreadCompositeRequest operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. @@ -366,11 +378,13 @@ public Response spreadCompositeRequestWithResponse(String name, String tes * The spreadCompositeRequestMix operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. @@ -394,11 +408,13 @@ public Mono> spreadCompositeRequestMixWithResponseAsync(String na * The spreadCompositeRequestMix operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      * }
-     * }
+ * } + *
* * @param name The name parameter. * @param testHeader The testHeader parameter. diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/ContentNegotiationClientBuilder.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/ContentNegotiationClientBuilder.java index 10d4aa52e6..ea5db7b47f 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/ContentNegotiationClientBuilder.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/ContentNegotiationClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyAsyncClient.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyAsyncClient.java index 3c34076a75..4545c7900b 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyAsyncClient.java @@ -42,9 +42,11 @@ public final class DifferentBodyAsyncClient { * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Mono> getAvatarAsPngWithResponse(RequestOptions requ * The getAvatarAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     content: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyClient.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyClient.java index b083260996..fa47cfc46b 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyClient.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/DifferentBodyClient.java @@ -40,9 +40,11 @@ public final class DifferentBodyClient { * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,11 +63,13 @@ public Response getAvatarAsPngWithResponse(RequestOptions requestOpt * The getAvatarAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     content: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyAsyncClient.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyAsyncClient.java index 03d3d69c82..779b2847fe 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyAsyncClient.java @@ -41,9 +41,11 @@ public final class SameBodyAsyncClient { * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> getAvatarAsPngWithResponse(RequestOptions requ * The getAvatarAsJpeg operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyClient.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyClient.java index a6f27a8e62..c7f3b5d8a5 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyClient.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/SameBodyClient.java @@ -39,9 +39,11 @@ public final class SameBodyClient { * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response getAvatarAsPngWithResponse(RequestOptions requestOpt * The getAvatarAsJpeg operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/DifferentBodiesImpl.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/DifferentBodiesImpl.java index feeb0ea89a..636ccbc7ff 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/DifferentBodiesImpl.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/DifferentBodiesImpl.java @@ -98,9 +98,11 @@ Response getAvatarAsJsonSync(@HostParam("endpoint") String endpoint, * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -120,9 +122,11 @@ public Mono> getAvatarAsPngWithResponseAsync(RequestOptions * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -141,11 +145,13 @@ public Response getAvatarAsPngWithResponse(RequestOptions requestOpt * The getAvatarAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     content: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +171,13 @@ public Mono> getAvatarAsJsonWithResponseAsync(RequestOption * The getAvatarAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     content: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/SameBodiesImpl.java b/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/SameBodiesImpl.java index ed0f152210..b37ed831ea 100644 --- a/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/SameBodiesImpl.java +++ b/typespec-tests/src/main/java/com/payload/contentnegotiation/implementation/SameBodiesImpl.java @@ -98,9 +98,11 @@ Response getAvatarAsJpegSync(@HostParam("endpoint") String endpoint, * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -120,9 +122,11 @@ public Mono> getAvatarAsPngWithResponseAsync(RequestOptions * The getAvatarAsPng operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -141,9 +145,11 @@ public Response getAvatarAsPngWithResponse(RequestOptions requestOpt * The getAvatarAsJpeg operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -163,9 +169,11 @@ public Mono> getAvatarAsJpegWithResponseAsync(RequestOption * The getAvatarAsJpeg operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BinaryData
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchAsyncClient.java b/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchAsyncClient.java index ba33191a59..6bdc663b88 100644 --- a/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchAsyncClient.java @@ -44,7 +44,8 @@ public final class JsonMergePatchAsyncClient { * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -64,11 +65,13 @@ public final class JsonMergePatchAsyncClient {
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -88,7 +91,8 @@ public final class JsonMergePatchAsyncClient {
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,7 +112,8 @@ public Mono> createResourceWithResponse(BinaryData body, Re * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -127,11 +132,13 @@ public Mono> createResourceWithResponse(BinaryData body, Re
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -151,7 +158,8 @@ public Mono> createResourceWithResponse(BinaryData body, Re
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -179,7 +187,8 @@ public Mono> updateResourceWithResponse(BinaryData body, Re * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -198,11 +207,13 @@ public Mono> updateResourceWithResponse(BinaryData body, Re
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -222,7 +233,8 @@ public Mono> updateResourceWithResponse(BinaryData body, Re
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClient.java b/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClient.java index 08acc09d0a..06d70e9a08 100644 --- a/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClient.java +++ b/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClient.java @@ -42,7 +42,8 @@ public final class JsonMergePatchClient { * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -62,11 +63,13 @@ public final class JsonMergePatchClient {
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -86,7 +89,8 @@ public final class JsonMergePatchClient {
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -106,7 +110,8 @@ public Response createResourceWithResponse(BinaryData body, RequestO * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -125,11 +130,13 @@ public Response createResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -149,7 +156,8 @@ public Response createResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -177,7 +185,8 @@ public Response updateResourceWithResponse(BinaryData body, RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -196,11 +205,13 @@ public Response updateResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -220,7 +231,8 @@ public Response updateResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClientBuilder.java b/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClientBuilder.java index c669c66315..8a317395bf 100644 --- a/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClientBuilder.java +++ b/typespec-tests/src/main/java/com/payload/jsonmergepatch/JsonMergePatchClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/payload/jsonmergepatch/implementation/JsonMergePatchClientImpl.java b/typespec-tests/src/main/java/com/payload/jsonmergepatch/implementation/JsonMergePatchClientImpl.java index c83fd683c7..048390c133 100644 --- a/typespec-tests/src/main/java/com/payload/jsonmergepatch/implementation/JsonMergePatchClientImpl.java +++ b/typespec-tests/src/main/java/com/payload/jsonmergepatch/implementation/JsonMergePatchClientImpl.java @@ -190,7 +190,8 @@ Response updateOptionalResourceSync(@HostParam("endpoint") String en * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -210,11 +211,13 @@ Response updateOptionalResourceSync(@HostParam("endpoint") String en
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -234,7 +237,8 @@ Response updateOptionalResourceSync(@HostParam("endpoint") String en
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -256,7 +260,8 @@ public Mono> createResourceWithResponseAsync(BinaryData bod * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -276,11 +281,13 @@ public Mono> createResourceWithResponseAsync(BinaryData bod
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -300,7 +307,8 @@ public Mono> createResourceWithResponseAsync(BinaryData bod
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -321,7 +329,8 @@ public Response createResourceWithResponse(BinaryData body, RequestO * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -340,11 +349,13 @@ public Response createResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -364,7 +375,8 @@ public Response createResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -386,7 +398,8 @@ public Mono> updateResourceWithResponseAsync(BinaryData bod * Test content-type: application/merge-patch+json with required body. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -405,11 +418,13 @@ public Mono> updateResourceWithResponseAsync(BinaryData bod
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -429,7 +444,8 @@ public Mono> updateResourceWithResponseAsync(BinaryData bod
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -458,7 +474,8 @@ public Response updateResourceWithResponse(BinaryData body, RequestO * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -477,11 +494,13 @@ public Response updateResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -501,7 +520,8 @@ public Response updateResourceWithResponse(BinaryData body, RequestO
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -535,7 +555,8 @@ public Mono> updateOptionalResourceWithResponseAsync(Reques * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     description: String (Optional)
      *     map (Optional): {
@@ -554,11 +575,13 @@ public Mono> updateOptionalResourceWithResponseAsync(Reques
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     description: String (Optional)
@@ -578,7 +601,8 @@ public Mono> updateOptionalResourceWithResponseAsync(Reques
      *         int (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeAsyncClient.java b/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeAsyncClient.java index 5efbab2649..735d930d71 100644 --- a/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeAsyncClient.java @@ -41,9 +41,11 @@ public final class MediaTypeAsyncClient { * The sendAsText operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -63,9 +65,11 @@ public Mono> sendAsTextWithResponse(BinaryData text, RequestOptio * The getAsText operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -84,9 +88,11 @@ public Mono> getAsTextWithResponse(RequestOptions requestOp * The sendAsJson operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -106,9 +112,11 @@ public Mono> sendAsJsonWithResponse(BinaryData text, RequestOptio * The getAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClient.java b/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClient.java index c228fb2862..6e3ade0f92 100644 --- a/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClient.java +++ b/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClient.java @@ -39,9 +39,11 @@ public final class MediaTypeClient { * The sendAsText operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -61,9 +63,11 @@ public Response sendAsTextWithResponse(BinaryData text, RequestOptions req * The getAsText operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -82,9 +86,11 @@ public Response getAsTextWithResponse(RequestOptions requestOptions) * The sendAsJson operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -104,9 +110,11 @@ public Response sendAsJsonWithResponse(BinaryData text, RequestOptions req * The getAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClientBuilder.java b/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClientBuilder.java index c2efd2827a..712e24fa29 100644 --- a/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClientBuilder.java +++ b/typespec-tests/src/main/java/com/payload/mediatype/MediaTypeClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/payload/mediatype/implementation/StringBodiesImpl.java b/typespec-tests/src/main/java/com/payload/mediatype/implementation/StringBodiesImpl.java index 4acde5ace5..4b217e2aac 100644 --- a/typespec-tests/src/main/java/com/payload/mediatype/implementation/StringBodiesImpl.java +++ b/typespec-tests/src/main/java/com/payload/mediatype/implementation/StringBodiesImpl.java @@ -140,9 +140,11 @@ Response getAsJsonSync(@HostParam("endpoint") String endpoint, @Head * The sendAsText operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -163,9 +165,11 @@ public Mono> sendAsTextWithResponseAsync(BinaryData text, Request * The sendAsText operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -185,9 +189,11 @@ public Response sendAsTextWithResponse(BinaryData text, RequestOptions req * The getAsText operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -207,9 +213,11 @@ public Mono> getAsTextWithResponseAsync(RequestOptions requ * The getAsText operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -228,9 +236,11 @@ public Response getAsTextWithResponse(RequestOptions requestOptions) * The sendAsJson operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -251,9 +261,11 @@ public Mono> sendAsJsonWithResponseAsync(BinaryData text, Request * The sendAsJson operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param text The text parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -273,9 +285,11 @@ public Response sendAsJsonWithResponse(BinaryData text, RequestOptions req * The getAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -295,9 +309,11 @@ public Mono> getAsJsonWithResponseAsync(RequestOptions requ * The getAsJson operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/multipart/FormDataAsyncClient.java b/typespec-tests/src/main/java/com/payload/multipart/FormDataAsyncClient.java index 6667c9a41b..1d30da7575 100644 --- a/typespec-tests/src/main/java/com/payload/multipart/FormDataAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/multipart/FormDataAsyncClient.java @@ -360,13 +360,12 @@ public Mono anonymousModel(ProfileImageFileDetails profileImage) { // Generated convenience method for anonymousModelWithResponse RequestOptions requestOptions = new RequestOptions(); AnonymousModelRequest anonymousModelRequestObj = new AnonymousModelRequest(profileImage); - BinaryData anonymousModelRequest - = new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", anonymousModelRequestObj.getProfileImage().getContent(), - anonymousModelRequestObj.getProfileImage().getContentType(), - anonymousModelRequestObj.getProfileImage().getFilename()) - .end() - .getRequestBody(); + BinaryData anonymousModelRequest = new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", anonymousModelRequestObj.getProfileImage().getContent(), + anonymousModelRequestObj.getProfileImage().getContentType(), + anonymousModelRequestObj.getProfileImage().getFilename()) + .end() + .getRequestBody(); return anonymousModelWithResponse(anonymousModelRequest, requestOptions).flatMap(FluxUtil::toMono); } } diff --git a/typespec-tests/src/main/java/com/payload/multipart/FormDataClient.java b/typespec-tests/src/main/java/com/payload/multipart/FormDataClient.java index b29a458929..218ead1cc9 100644 --- a/typespec-tests/src/main/java/com/payload/multipart/FormDataClient.java +++ b/typespec-tests/src/main/java/com/payload/multipart/FormDataClient.java @@ -347,13 +347,12 @@ public void anonymousModel(ProfileImageFileDetails profileImage) { // Generated convenience method for anonymousModelWithResponse RequestOptions requestOptions = new RequestOptions(); AnonymousModelRequest anonymousModelRequestObj = new AnonymousModelRequest(profileImage); - BinaryData anonymousModelRequest - = new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", anonymousModelRequestObj.getProfileImage().getContent(), - anonymousModelRequestObj.getProfileImage().getContentType(), - anonymousModelRequestObj.getProfileImage().getFilename()) - .end() - .getRequestBody(); + BinaryData anonymousModelRequest = new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", anonymousModelRequestObj.getProfileImage().getContent(), + anonymousModelRequestObj.getProfileImage().getContentType(), + anonymousModelRequestObj.getProfileImage().getFilename()) + .end() + .getRequestBody(); anonymousModelWithResponse(anonymousModelRequest, requestOptions).getValue(); } } diff --git a/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeAsyncClient.java b/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeAsyncClient.java index ba862a4b85..9e9be683d9 100644 --- a/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeAsyncClient.java @@ -115,11 +115,13 @@ Mono> optionalContentTypeWithResponse(BinaryData body, RequestOpt public Mono imageJpegContentType(FileWithHttpPartSpecificContentTypeRequest body) { // Generated convenience method for imageJpegContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - return imageJpegContentTypeWithResponse(new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", body.getProfileImage().getContent(), - body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) - .end() - .getRequestBody(), requestOptions).flatMap(FluxUtil::toMono); + return imageJpegContentTypeWithResponse( + new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", body.getProfileImage().getContent(), + body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) + .end() + .getRequestBody(), + requestOptions).flatMap(FluxUtil::toMono); } /** @@ -139,11 +141,13 @@ public Mono imageJpegContentType(FileWithHttpPartSpecificContentTypeReques public Mono requiredContentType(FileWithHttpPartRequiredContentTypeRequest body) { // Generated convenience method for requiredContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - return requiredContentTypeWithResponse(new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", body.getProfileImage().getContent(), - body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) - .end() - .getRequestBody(), requestOptions).flatMap(FluxUtil::toMono); + return requiredContentTypeWithResponse( + new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", body.getProfileImage().getContent(), + body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) + .end() + .getRequestBody(), + requestOptions).flatMap(FluxUtil::toMono); } /** @@ -163,10 +167,12 @@ public Mono requiredContentType(FileWithHttpPartRequiredContentTypeRequest public Mono optionalContentType(FileWithHttpPartOptionalContentTypeRequest body) { // Generated convenience method for optionalContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - return optionalContentTypeWithResponse(new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", body.getProfileImage().getContent(), - body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) - .end() - .getRequestBody(), requestOptions).flatMap(FluxUtil::toMono); + return optionalContentTypeWithResponse( + new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", body.getProfileImage().getContent(), + body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) + .end() + .getRequestBody(), + requestOptions).flatMap(FluxUtil::toMono); } } diff --git a/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeClient.java b/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeClient.java index 6a80d823fe..915fc01b87 100644 --- a/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeClient.java +++ b/typespec-tests/src/main/java/com/payload/multipart/FormDataHttpPartsContentTypeClient.java @@ -112,11 +112,13 @@ Response optionalContentTypeWithResponse(BinaryData body, RequestOptions r public void imageJpegContentType(FileWithHttpPartSpecificContentTypeRequest body) { // Generated convenience method for imageJpegContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - imageJpegContentTypeWithResponse(new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", body.getProfileImage().getContent(), - body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) - .end() - .getRequestBody(), requestOptions).getValue(); + imageJpegContentTypeWithResponse( + new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", body.getProfileImage().getContent(), + body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) + .end() + .getRequestBody(), + requestOptions).getValue(); } /** @@ -135,11 +137,13 @@ public void imageJpegContentType(FileWithHttpPartSpecificContentTypeRequest body public void requiredContentType(FileWithHttpPartRequiredContentTypeRequest body) { // Generated convenience method for requiredContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - requiredContentTypeWithResponse(new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", body.getProfileImage().getContent(), - body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) - .end() - .getRequestBody(), requestOptions).getValue(); + requiredContentTypeWithResponse( + new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", body.getProfileImage().getContent(), + body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) + .end() + .getRequestBody(), + requestOptions).getValue(); } /** @@ -158,10 +162,12 @@ public void requiredContentType(FileWithHttpPartRequiredContentTypeRequest body) public void optionalContentType(FileWithHttpPartOptionalContentTypeRequest body) { // Generated convenience method for optionalContentTypeWithResponse RequestOptions requestOptions = new RequestOptions(); - optionalContentTypeWithResponse(new MultipartFormDataHelper(requestOptions) - .serializeFileField("profileImage", body.getProfileImage().getContent(), - body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) - .end() - .getRequestBody(), requestOptions).getValue(); + optionalContentTypeWithResponse( + new MultipartFormDataHelper(requestOptions) + .serializeFileField("profileImage", body.getProfileImage().getContent(), + body.getProfileImage().getContentType(), body.getProfileImage().getFilename()) + .end() + .getRequestBody(), + requestOptions).getValue(); } } diff --git a/typespec-tests/src/main/java/com/payload/multipart/MultiPartClientBuilder.java b/typespec-tests/src/main/java/com/payload/multipart/MultiPartClientBuilder.java index cac14e25a9..3f5df0ddcc 100644 --- a/typespec-tests/src/main/java/com/payload/multipart/MultiPartClientBuilder.java +++ b/typespec-tests/src/main/java/com/payload/multipart/MultiPartClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/payload/multipart/implementation/MultipartFormDataHelper.java b/typespec-tests/src/main/java/com/payload/multipart/implementation/MultipartFormDataHelper.java index 306ae3e65f..cd03f712fa 100644 --- a/typespec-tests/src/main/java/com/payload/multipart/implementation/MultipartFormDataHelper.java +++ b/typespec-tests/src/main/java/com/payload/multipart/implementation/MultipartFormDataHelper.java @@ -8,7 +8,6 @@ import com.azure.core.http.rest.RequestOptions; import com.azure.core.util.BinaryData; import com.azure.core.util.CoreUtils; - import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.SequenceInputStream; diff --git a/typespec-tests/src/main/java/com/payload/pageable/PageableAsyncClient.java b/typespec-tests/src/main/java/com/payload/pageable/PageableAsyncClient.java index 1aab73bd48..c0becb4e9d 100644 --- a/typespec-tests/src/main/java/com/payload/pageable/PageableAsyncClient.java +++ b/typespec-tests/src/main/java/com/payload/pageable/PageableAsyncClient.java @@ -51,11 +51,13 @@ public final class PageableAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/pageable/PageableClient.java b/typespec-tests/src/main/java/com/payload/pageable/PageableClient.java index 2f81f2ef11..498158e5ba 100644 --- a/typespec-tests/src/main/java/com/payload/pageable/PageableClient.java +++ b/typespec-tests/src/main/java/com/payload/pageable/PageableClient.java @@ -47,11 +47,13 @@ public final class PageableClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/payload/pageable/PageableClientBuilder.java b/typespec-tests/src/main/java/com/payload/pageable/PageableClientBuilder.java index 5e4da1687b..e91095b6ba 100644 --- a/typespec-tests/src/main/java/com/payload/pageable/PageableClientBuilder.java +++ b/typespec-tests/src/main/java/com/payload/pageable/PageableClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/payload/pageable/implementation/PageableClientImpl.java b/typespec-tests/src/main/java/com/payload/pageable/implementation/PageableClientImpl.java index bc5106cec3..53cb892b38 100644 --- a/typespec-tests/src/main/java/com/payload/pageable/implementation/PageableClientImpl.java +++ b/typespec-tests/src/main/java/com/payload/pageable/implementation/PageableClientImpl.java @@ -181,11 +181,13 @@ Response listNextSync(@PathParam(value = "nextLink", encoded = true) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +215,13 @@ private Mono> listSinglePageAsync(RequestOptions reque * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -266,11 +270,13 @@ public PagedFlux listAsync(RequestOptions requestOptions) { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -298,11 +304,13 @@ private PagedResponse listSinglePage(RequestOptions requestOptions) * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -346,11 +354,13 @@ public PagedIterable list(RequestOptions requestOptions) { * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -375,11 +385,13 @@ private Mono> listNextSinglePageAsync(String nextLink, * Get the next page of items. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/resiliency/servicedriven/ResiliencyServiceDrivenClientBuilder.java b/typespec-tests/src/main/java/com/resiliency/servicedriven/ResiliencyServiceDrivenClientBuilder.java index e56acf8643..2f5ad4a56d 100644 --- a/typespec-tests/src/main/java/com/resiliency/servicedriven/ResiliencyServiceDrivenClientBuilder.java +++ b/typespec-tests/src/main/java/com/resiliency/servicedriven/ResiliencyServiceDrivenClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/resiliency/servicedriven/v1/ResiliencyServiceDrivenClientBuilder.java b/typespec-tests/src/main/java/com/resiliency/servicedriven/v1/ResiliencyServiceDrivenClientBuilder.java index 4b851ce32d..4a86026eab 100644 --- a/typespec-tests/src/main/java/com/resiliency/servicedriven/v1/ResiliencyServiceDrivenClientBuilder.java +++ b/typespec-tests/src/main/java/com/resiliency/servicedriven/v1/ResiliencyServiceDrivenClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/routes/RoutesClientBuilder.java b/typespec-tests/src/main/java/com/routes/RoutesClientBuilder.java index 154a5d9c87..12449b2d60 100644 --- a/typespec-tests/src/main/java/com/routes/RoutesClientBuilder.java +++ b/typespec-tests/src/main/java/com/routes/RoutesClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonAsyncClient.java b/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonAsyncClient.java index c94c99c9da..e5c3c45c82 100644 --- a/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonAsyncClient.java +++ b/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonAsyncClient.java @@ -42,11 +42,13 @@ public final class JsonAsyncClient { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -66,11 +68,13 @@ public Mono> sendWithResponse(BinaryData body, RequestOptions req * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClient.java b/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClient.java index 5a77458d3a..4db3134f31 100644 --- a/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClient.java +++ b/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClient.java @@ -40,11 +40,13 @@ public final class JsonClient { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -64,11 +66,13 @@ public Response sendWithResponse(BinaryData body, RequestOptions requestOp * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClientBuilder.java b/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClientBuilder.java index 6ff9943293..bde3a47220 100644 --- a/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClientBuilder.java +++ b/typespec-tests/src/main/java/com/serialization/encodedname/json/JsonClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/serialization/encodedname/json/implementation/PropertiesImpl.java b/typespec-tests/src/main/java/com/serialization/encodedname/json/implementation/PropertiesImpl.java index a72b2daa01..b5c0003121 100644 --- a/typespec-tests/src/main/java/com/serialization/encodedname/json/implementation/PropertiesImpl.java +++ b/typespec-tests/src/main/java/com/serialization/encodedname/json/implementation/PropertiesImpl.java @@ -101,11 +101,13 @@ Response getSync(@HostParam("endpoint") String endpoint, @HeaderPara * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -126,11 +128,13 @@ public Mono> sendWithResponseAsync(BinaryData body, RequestOption * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -150,11 +154,13 @@ public Response sendWithResponse(BinaryData body, RequestOptions requestOp * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -173,11 +179,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     wireName: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/server/endpoint/notdefined/NotDefinedClientBuilder.java b/typespec-tests/src/main/java/com/server/endpoint/notdefined/NotDefinedClientBuilder.java index 4b2debed28..b902dfbe24 100644 --- a/typespec-tests/src/main/java/com/server/endpoint/notdefined/NotDefinedClientBuilder.java +++ b/typespec-tests/src/main/java/com/server/endpoint/notdefined/NotDefinedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/server/path/multiple/MultipleClientBuilder.java b/typespec-tests/src/main/java/com/server/path/multiple/MultipleClientBuilder.java index 1ebc0bd08f..163f2d758e 100644 --- a/typespec-tests/src/main/java/com/server/path/multiple/MultipleClientBuilder.java +++ b/typespec-tests/src/main/java/com/server/path/multiple/MultipleClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/server/path/single/SingleClientBuilder.java b/typespec-tests/src/main/java/com/server/path/single/SingleClientBuilder.java index c57813214c..f173026543 100644 --- a/typespec-tests/src/main/java/com/server/path/single/SingleClientBuilder.java +++ b/typespec-tests/src/main/java/com/server/path/single/SingleClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/server/versions/notversioned/NotVersionedClientBuilder.java b/typespec-tests/src/main/java/com/server/versions/notversioned/NotVersionedClientBuilder.java index a45cce4ea5..2d0250bd6c 100644 --- a/typespec-tests/src/main/java/com/server/versions/notversioned/NotVersionedClientBuilder.java +++ b/typespec-tests/src/main/java/com/server/versions/notversioned/NotVersionedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/server/versions/versioned/VersionedClientBuilder.java b/typespec-tests/src/main/java/com/server/versions/versioned/VersionedClientBuilder.java index e7196aa293..60db0efe65 100644 --- a/typespec-tests/src/main/java/com/server/versions/versioned/VersionedClientBuilder.java +++ b/typespec-tests/src/main/java/com/server/versions/versioned/VersionedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/specialheaders/conditionalrequest/ConditionalRequestClientBuilder.java b/typespec-tests/src/main/java/com/specialheaders/conditionalrequest/ConditionalRequestClientBuilder.java index 422aefcef4..05712aa167 100644 --- a/typespec-tests/src/main/java/com/specialheaders/conditionalrequest/ConditionalRequestClientBuilder.java +++ b/typespec-tests/src/main/java/com/specialheaders/conditionalrequest/ConditionalRequestClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/specialheaders/repeatability/RepeatabilityClientBuilder.java b/typespec-tests/src/main/java/com/specialheaders/repeatability/RepeatabilityClientBuilder.java index 8502679f2f..af0a75a410 100644 --- a/typespec-tests/src/main/java/com/specialheaders/repeatability/RepeatabilityClientBuilder.java +++ b/typespec-tests/src/main/java/com/specialheaders/repeatability/RepeatabilityClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/specialwords/ModelPropertiesAsyncClient.java b/typespec-tests/src/main/java/com/specialwords/ModelPropertiesAsyncClient.java index 724629b742..337b3c7496 100644 --- a/typespec-tests/src/main/java/com/specialwords/ModelPropertiesAsyncClient.java +++ b/typespec-tests/src/main/java/com/specialwords/ModelPropertiesAsyncClient.java @@ -42,11 +42,13 @@ public final class ModelPropertiesAsyncClient { * The sameAsModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     SameAsModel: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/specialwords/ModelPropertiesClient.java b/typespec-tests/src/main/java/com/specialwords/ModelPropertiesClient.java index 80681b3a10..a34f9f5422 100644 --- a/typespec-tests/src/main/java/com/specialwords/ModelPropertiesClient.java +++ b/typespec-tests/src/main/java/com/specialwords/ModelPropertiesClient.java @@ -40,11 +40,13 @@ public final class ModelPropertiesClient { * The sameAsModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     SameAsModel: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/specialwords/ModelsAsyncClient.java b/typespec-tests/src/main/java/com/specialwords/ModelsAsyncClient.java index 8636aae086..53e36ab23e 100644 --- a/typespec-tests/src/main/java/com/specialwords/ModelsAsyncClient.java +++ b/typespec-tests/src/main/java/com/specialwords/ModelsAsyncClient.java @@ -74,11 +74,13 @@ public final class ModelsAsyncClient { * The withAnd operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -98,11 +100,13 @@ public Mono> withAndWithResponse(BinaryData body, RequestOptions * The withAs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -122,11 +126,13 @@ public Mono> withAsWithResponse(BinaryData body, RequestOptions r * The withAssert operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -146,11 +152,13 @@ public Mono> withAssertWithResponse(BinaryData body, RequestOptio * The withAsync operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -170,11 +178,13 @@ public Mono> withAsyncWithResponse(BinaryData body, RequestOption * The withAwait operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -194,11 +204,13 @@ public Mono> withAwaitWithResponse(BinaryData body, RequestOption * The withBreak operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -218,11 +230,13 @@ public Mono> withBreakWithResponse(BinaryData body, RequestOption * The withClass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -242,11 +256,13 @@ public Mono> withClassWithResponse(BinaryData body, RequestOption * The withConstructor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -266,11 +282,13 @@ public Mono> withConstructorWithResponse(BinaryData body, Request * The withContinue operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -290,11 +308,13 @@ public Mono> withContinueWithResponse(BinaryData body, RequestOpt * The withDef operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -314,11 +334,13 @@ public Mono> withDefWithResponse(BinaryData body, RequestOptions * The withDel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -338,11 +360,13 @@ public Mono> withDelWithResponse(BinaryData body, RequestOptions * The withElif operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -362,11 +386,13 @@ public Mono> withElifWithResponse(BinaryData body, RequestOptions * The withElse operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -386,11 +412,13 @@ public Mono> withElseWithResponse(BinaryData body, RequestOptions * The withExcept operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -410,11 +438,13 @@ public Mono> withExceptWithResponse(BinaryData body, RequestOptio * The withExec operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -434,11 +464,13 @@ public Mono> withExecWithResponse(BinaryData body, RequestOptions * The withFinally operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -458,11 +490,13 @@ public Mono> withFinallyWithResponse(BinaryData body, RequestOpti * The withFor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -482,11 +516,13 @@ public Mono> withForWithResponse(BinaryData body, RequestOptions * The withFrom operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -506,11 +542,13 @@ public Mono> withFromWithResponse(BinaryData body, RequestOptions * The withGlobal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -530,11 +568,13 @@ public Mono> withGlobalWithResponse(BinaryData body, RequestOptio * The withIf operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -554,11 +594,13 @@ public Mono> withIfWithResponse(BinaryData body, RequestOptions r * The withImport operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -578,11 +620,13 @@ public Mono> withImportWithResponse(BinaryData body, RequestOptio * The withIn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -602,11 +646,13 @@ public Mono> withInWithResponse(BinaryData body, RequestOptions r * The withIs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -626,11 +672,13 @@ public Mono> withIsWithResponse(BinaryData body, RequestOptions r * The withLambda operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -650,11 +698,13 @@ public Mono> withLambdaWithResponse(BinaryData body, RequestOptio * The withNot operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -674,11 +724,13 @@ public Mono> withNotWithResponse(BinaryData body, RequestOptions * The withOr operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -698,11 +750,13 @@ public Mono> withOrWithResponse(BinaryData body, RequestOptions r * The withPass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -722,11 +776,13 @@ public Mono> withPassWithResponse(BinaryData body, RequestOptions * The withRaise operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -746,11 +802,13 @@ public Mono> withRaiseWithResponse(BinaryData body, RequestOption * The withReturn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -770,11 +828,13 @@ public Mono> withReturnWithResponse(BinaryData body, RequestOptio * The withTry operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -794,11 +854,13 @@ public Mono> withTryWithResponse(BinaryData body, RequestOptions * The withWhile operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -818,11 +880,13 @@ public Mono> withWhileWithResponse(BinaryData body, RequestOption * The withWith operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -842,11 +906,13 @@ public Mono> withWithWithResponse(BinaryData body, RequestOptions * The withYield operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/specialwords/ModelsClient.java b/typespec-tests/src/main/java/com/specialwords/ModelsClient.java index 9a27855c07..eaa6273092 100644 --- a/typespec-tests/src/main/java/com/specialwords/ModelsClient.java +++ b/typespec-tests/src/main/java/com/specialwords/ModelsClient.java @@ -72,11 +72,13 @@ public final class ModelsClient { * The withAnd operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -96,11 +98,13 @@ public Response withAndWithResponse(BinaryData body, RequestOptions reques * The withAs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -120,11 +124,13 @@ public Response withAsWithResponse(BinaryData body, RequestOptions request * The withAssert operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -144,11 +150,13 @@ public Response withAssertWithResponse(BinaryData body, RequestOptions req * The withAsync operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -168,11 +176,13 @@ public Response withAsyncWithResponse(BinaryData body, RequestOptions requ * The withAwait operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -192,11 +202,13 @@ public Response withAwaitWithResponse(BinaryData body, RequestOptions requ * The withBreak operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -216,11 +228,13 @@ public Response withBreakWithResponse(BinaryData body, RequestOptions requ * The withClass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -240,11 +254,13 @@ public Response withClassWithResponse(BinaryData body, RequestOptions requ * The withConstructor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -264,11 +280,13 @@ public Response withConstructorWithResponse(BinaryData body, RequestOption * The withContinue operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -288,11 +306,13 @@ public Response withContinueWithResponse(BinaryData body, RequestOptions r * The withDef operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -312,11 +332,13 @@ public Response withDefWithResponse(BinaryData body, RequestOptions reques * The withDel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -336,11 +358,13 @@ public Response withDelWithResponse(BinaryData body, RequestOptions reques * The withElif operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -360,11 +384,13 @@ public Response withElifWithResponse(BinaryData body, RequestOptions reque * The withElse operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -384,11 +410,13 @@ public Response withElseWithResponse(BinaryData body, RequestOptions reque * The withExcept operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -408,11 +436,13 @@ public Response withExceptWithResponse(BinaryData body, RequestOptions req * The withExec operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -432,11 +462,13 @@ public Response withExecWithResponse(BinaryData body, RequestOptions reque * The withFinally operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -456,11 +488,13 @@ public Response withFinallyWithResponse(BinaryData body, RequestOptions re * The withFor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -480,11 +514,13 @@ public Response withForWithResponse(BinaryData body, RequestOptions reques * The withFrom operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -504,11 +540,13 @@ public Response withFromWithResponse(BinaryData body, RequestOptions reque * The withGlobal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -528,11 +566,13 @@ public Response withGlobalWithResponse(BinaryData body, RequestOptions req * The withIf operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -552,11 +592,13 @@ public Response withIfWithResponse(BinaryData body, RequestOptions request * The withImport operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -576,11 +618,13 @@ public Response withImportWithResponse(BinaryData body, RequestOptions req * The withIn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -600,11 +644,13 @@ public Response withInWithResponse(BinaryData body, RequestOptions request * The withIs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -624,11 +670,13 @@ public Response withIsWithResponse(BinaryData body, RequestOptions request * The withLambda operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -648,11 +696,13 @@ public Response withLambdaWithResponse(BinaryData body, RequestOptions req * The withNot operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -672,11 +722,13 @@ public Response withNotWithResponse(BinaryData body, RequestOptions reques * The withOr operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -696,11 +748,13 @@ public Response withOrWithResponse(BinaryData body, RequestOptions request * The withPass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -720,11 +774,13 @@ public Response withPassWithResponse(BinaryData body, RequestOptions reque * The withRaise operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -744,11 +800,13 @@ public Response withRaiseWithResponse(BinaryData body, RequestOptions requ * The withReturn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -768,11 +826,13 @@ public Response withReturnWithResponse(BinaryData body, RequestOptions req * The withTry operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -792,11 +852,13 @@ public Response withTryWithResponse(BinaryData body, RequestOptions reques * The withWhile operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -816,11 +878,13 @@ public Response withWhileWithResponse(BinaryData body, RequestOptions requ * The withWith operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -840,11 +904,13 @@ public Response withWithWithResponse(BinaryData body, RequestOptions reque * The withYield operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/specialwords/SpecialWordsClientBuilder.java b/typespec-tests/src/main/java/com/specialwords/SpecialWordsClientBuilder.java index 5dce7abed9..797887a1f7 100644 --- a/typespec-tests/src/main/java/com/specialwords/SpecialWordsClientBuilder.java +++ b/typespec-tests/src/main/java/com/specialwords/SpecialWordsClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/specialwords/implementation/ModelPropertiesImpl.java b/typespec-tests/src/main/java/com/specialwords/implementation/ModelPropertiesImpl.java index bdf0af0544..fe1d32b0a7 100644 --- a/typespec-tests/src/main/java/com/specialwords/implementation/ModelPropertiesImpl.java +++ b/typespec-tests/src/main/java/com/specialwords/implementation/ModelPropertiesImpl.java @@ -83,11 +83,13 @@ Response sameAsModelSync(@HostParam("endpoint") String endpoint, * The sameAsModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     SameAsModel: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -108,11 +110,13 @@ public Mono> sameAsModelWithResponseAsync(BinaryData body, Reques * The sameAsModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     SameAsModel: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/specialwords/implementation/ModelsImpl.java b/typespec-tests/src/main/java/com/specialwords/implementation/ModelsImpl.java index 4b9e9e561d..61bb9578c8 100644 --- a/typespec-tests/src/main/java/com/specialwords/implementation/ModelsImpl.java +++ b/typespec-tests/src/main/java/com/specialwords/implementation/ModelsImpl.java @@ -722,11 +722,13 @@ Response withYieldSync(@HostParam("endpoint") String endpoint, * The withAnd operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -747,11 +749,13 @@ public Mono> withAndWithResponseAsync(BinaryData body, RequestOpt * The withAnd operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -771,11 +775,13 @@ public Response withAndWithResponse(BinaryData body, RequestOptions reques * The withAs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -796,11 +802,13 @@ public Mono> withAsWithResponseAsync(BinaryData body, RequestOpti * The withAs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -820,11 +828,13 @@ public Response withAsWithResponse(BinaryData body, RequestOptions request * The withAssert operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -845,11 +855,13 @@ public Mono> withAssertWithResponseAsync(BinaryData body, Request * The withAssert operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -869,11 +881,13 @@ public Response withAssertWithResponse(BinaryData body, RequestOptions req * The withAsync operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -894,11 +908,13 @@ public Mono> withAsyncWithResponseAsync(BinaryData body, RequestO * The withAsync operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -918,11 +934,13 @@ public Response withAsyncWithResponse(BinaryData body, RequestOptions requ * The withAwait operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -943,11 +961,13 @@ public Mono> withAwaitWithResponseAsync(BinaryData body, RequestO * The withAwait operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -967,11 +987,13 @@ public Response withAwaitWithResponse(BinaryData body, RequestOptions requ * The withBreak operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -992,11 +1014,13 @@ public Mono> withBreakWithResponseAsync(BinaryData body, RequestO * The withBreak operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1016,11 +1040,13 @@ public Response withBreakWithResponse(BinaryData body, RequestOptions requ * The withClass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1041,11 +1067,13 @@ public Mono> withClassWithResponseAsync(BinaryData body, RequestO * The withClass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1065,11 +1093,13 @@ public Response withClassWithResponse(BinaryData body, RequestOptions requ * The withConstructor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1090,11 +1120,13 @@ public Mono> withConstructorWithResponseAsync(BinaryData body, Re * The withConstructor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1114,11 +1146,13 @@ public Response withConstructorWithResponse(BinaryData body, RequestOption * The withContinue operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1139,11 +1173,13 @@ public Mono> withContinueWithResponseAsync(BinaryData body, Reque * The withContinue operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1163,11 +1199,13 @@ public Response withContinueWithResponse(BinaryData body, RequestOptions r * The withDef operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1188,11 +1226,13 @@ public Mono> withDefWithResponseAsync(BinaryData body, RequestOpt * The withDef operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1212,11 +1252,13 @@ public Response withDefWithResponse(BinaryData body, RequestOptions reques * The withDel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1237,11 +1279,13 @@ public Mono> withDelWithResponseAsync(BinaryData body, RequestOpt * The withDel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1261,11 +1305,13 @@ public Response withDelWithResponse(BinaryData body, RequestOptions reques * The withElif operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1286,11 +1332,13 @@ public Mono> withElifWithResponseAsync(BinaryData body, RequestOp * The withElif operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1310,11 +1358,13 @@ public Response withElifWithResponse(BinaryData body, RequestOptions reque * The withElse operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1335,11 +1385,13 @@ public Mono> withElseWithResponseAsync(BinaryData body, RequestOp * The withElse operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1359,11 +1411,13 @@ public Response withElseWithResponse(BinaryData body, RequestOptions reque * The withExcept operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1384,11 +1438,13 @@ public Mono> withExceptWithResponseAsync(BinaryData body, Request * The withExcept operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1408,11 +1464,13 @@ public Response withExceptWithResponse(BinaryData body, RequestOptions req * The withExec operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1433,11 +1491,13 @@ public Mono> withExecWithResponseAsync(BinaryData body, RequestOp * The withExec operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1457,11 +1517,13 @@ public Response withExecWithResponse(BinaryData body, RequestOptions reque * The withFinally operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1482,11 +1544,13 @@ public Mono> withFinallyWithResponseAsync(BinaryData body, Reques * The withFinally operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1506,11 +1570,13 @@ public Response withFinallyWithResponse(BinaryData body, RequestOptions re * The withFor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1531,11 +1597,13 @@ public Mono> withForWithResponseAsync(BinaryData body, RequestOpt * The withFor operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1555,11 +1623,13 @@ public Response withForWithResponse(BinaryData body, RequestOptions reques * The withFrom operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1580,11 +1650,13 @@ public Mono> withFromWithResponseAsync(BinaryData body, RequestOp * The withFrom operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1604,11 +1676,13 @@ public Response withFromWithResponse(BinaryData body, RequestOptions reque * The withGlobal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1629,11 +1703,13 @@ public Mono> withGlobalWithResponseAsync(BinaryData body, Request * The withGlobal operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1653,11 +1729,13 @@ public Response withGlobalWithResponse(BinaryData body, RequestOptions req * The withIf operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1678,11 +1756,13 @@ public Mono> withIfWithResponseAsync(BinaryData body, RequestOpti * The withIf operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1702,11 +1782,13 @@ public Response withIfWithResponse(BinaryData body, RequestOptions request * The withImport operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1727,11 +1809,13 @@ public Mono> withImportWithResponseAsync(BinaryData body, Request * The withImport operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1751,11 +1835,13 @@ public Response withImportWithResponse(BinaryData body, RequestOptions req * The withIn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1776,11 +1862,13 @@ public Mono> withInWithResponseAsync(BinaryData body, RequestOpti * The withIn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1800,11 +1888,13 @@ public Response withInWithResponse(BinaryData body, RequestOptions request * The withIs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1825,11 +1915,13 @@ public Mono> withIsWithResponseAsync(BinaryData body, RequestOpti * The withIs operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1849,11 +1941,13 @@ public Response withIsWithResponse(BinaryData body, RequestOptions request * The withLambda operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1874,11 +1968,13 @@ public Mono> withLambdaWithResponseAsync(BinaryData body, Request * The withLambda operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1898,11 +1994,13 @@ public Response withLambdaWithResponse(BinaryData body, RequestOptions req * The withNot operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1923,11 +2021,13 @@ public Mono> withNotWithResponseAsync(BinaryData body, RequestOpt * The withNot operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1947,11 +2047,13 @@ public Response withNotWithResponse(BinaryData body, RequestOptions reques * The withOr operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1972,11 +2074,13 @@ public Mono> withOrWithResponseAsync(BinaryData body, RequestOpti * The withOr operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1996,11 +2100,13 @@ public Response withOrWithResponse(BinaryData body, RequestOptions request * The withPass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2021,11 +2127,13 @@ public Mono> withPassWithResponseAsync(BinaryData body, RequestOp * The withPass operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2045,11 +2153,13 @@ public Response withPassWithResponse(BinaryData body, RequestOptions reque * The withRaise operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2070,11 +2180,13 @@ public Mono> withRaiseWithResponseAsync(BinaryData body, RequestO * The withRaise operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2094,11 +2206,13 @@ public Response withRaiseWithResponse(BinaryData body, RequestOptions requ * The withReturn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2119,11 +2233,13 @@ public Mono> withReturnWithResponseAsync(BinaryData body, Request * The withReturn operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2143,11 +2259,13 @@ public Response withReturnWithResponse(BinaryData body, RequestOptions req * The withTry operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2168,11 +2286,13 @@ public Mono> withTryWithResponseAsync(BinaryData body, RequestOpt * The withTry operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2192,11 +2312,13 @@ public Response withTryWithResponse(BinaryData body, RequestOptions reques * The withWhile operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2217,11 +2339,13 @@ public Mono> withWhileWithResponseAsync(BinaryData body, RequestO * The withWhile operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2241,11 +2365,13 @@ public Response withWhileWithResponse(BinaryData body, RequestOptions requ * The withWith operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2266,11 +2392,13 @@ public Mono> withWithWithResponseAsync(BinaryData body, RequestOp * The withWith operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2290,11 +2418,13 @@ public Response withWithWithResponse(BinaryData body, RequestOptions reque * The withYield operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2315,11 +2445,13 @@ public Mono> withYieldWithResponseAsync(BinaryData body, RequestO * The withYield operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/ArrayClientBuilder.java b/typespec-tests/src/main/java/com/type/array/ArrayClientBuilder.java index ff37bf08e4..450c5f5de4 100644 --- a/typespec-tests/src/main/java/com/type/array/ArrayClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/array/ArrayClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/array/BooleanValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/BooleanValueAsyncClient.java index 7a748300c9..4bb781bec0 100644 --- a/typespec-tests/src/main/java/com/type/array/BooleanValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/BooleanValueAsyncClient.java @@ -43,11 +43,13 @@ public final class BooleanValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/BooleanValueClient.java b/typespec-tests/src/main/java/com/type/array/BooleanValueClient.java index 4dbf50c268..4e5337a292 100644 --- a/typespec-tests/src/main/java/com/type/array/BooleanValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/BooleanValueClient.java @@ -41,11 +41,13 @@ public final class BooleanValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/DatetimeValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/DatetimeValueAsyncClient.java index fbb96c2b95..95cdfbd0b5 100644 --- a/typespec-tests/src/main/java/com/type/array/DatetimeValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/DatetimeValueAsyncClient.java @@ -44,11 +44,13 @@ public final class DatetimeValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/DatetimeValueClient.java b/typespec-tests/src/main/java/com/type/array/DatetimeValueClient.java index 95839710b3..d7f5d73fed 100644 --- a/typespec-tests/src/main/java/com/type/array/DatetimeValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/DatetimeValueClient.java @@ -42,11 +42,13 @@ public final class DatetimeValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/DurationValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/DurationValueAsyncClient.java index fbf823cf4a..f93c360cec 100644 --- a/typespec-tests/src/main/java/com/type/array/DurationValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/DurationValueAsyncClient.java @@ -44,11 +44,13 @@ public final class DurationValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/DurationValueClient.java b/typespec-tests/src/main/java/com/type/array/DurationValueClient.java index 3b12dee528..4a6e25ec73 100644 --- a/typespec-tests/src/main/java/com/type/array/DurationValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/DurationValueClient.java @@ -42,11 +42,13 @@ public final class DurationValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/Float32ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/Float32ValueAsyncClient.java index cc11095fc8..3cfbd9e13d 100644 --- a/typespec-tests/src/main/java/com/type/array/Float32ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/Float32ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class Float32ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/Float32ValueClient.java b/typespec-tests/src/main/java/com/type/array/Float32ValueClient.java index 0a74949d29..941a9ad17a 100644 --- a/typespec-tests/src/main/java/com/type/array/Float32ValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/Float32ValueClient.java @@ -41,11 +41,13 @@ public final class Float32ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/Int32ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/Int32ValueAsyncClient.java index 4aec6f16f2..bb87eb34e5 100644 --- a/typespec-tests/src/main/java/com/type/array/Int32ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/Int32ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class Int32ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/Int32ValueClient.java b/typespec-tests/src/main/java/com/type/array/Int32ValueClient.java index 28a40ec73f..2363399990 100644 --- a/typespec-tests/src/main/java/com/type/array/Int32ValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/Int32ValueClient.java @@ -41,11 +41,13 @@ public final class Int32ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/Int64ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/Int64ValueAsyncClient.java index 39d5d2416c..d9c6503c72 100644 --- a/typespec-tests/src/main/java/com/type/array/Int64ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/Int64ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class Int64ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/Int64ValueClient.java b/typespec-tests/src/main/java/com/type/array/Int64ValueClient.java index 3df1210efd..d316a76adc 100644 --- a/typespec-tests/src/main/java/com/type/array/Int64ValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/Int64ValueClient.java @@ -41,11 +41,13 @@ public final class Int64ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/ModelValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/ModelValueAsyncClient.java index 5f2495a549..4b3f561332 100644 --- a/typespec-tests/src/main/java/com/type/array/ModelValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/ModelValueAsyncClient.java @@ -44,7 +44,8 @@ public final class ModelValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -53,7 +54,8 @@ public final class ModelValueAsyncClient {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -81,7 +84,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/ModelValueClient.java b/typespec-tests/src/main/java/com/type/array/ModelValueClient.java index 40372f3b3e..3327b6d4c0 100644 --- a/typespec-tests/src/main/java/com/type/array/ModelValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/ModelValueClient.java @@ -42,7 +42,8 @@ public final class ModelValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -51,7 +52,8 @@ public final class ModelValueClient {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -79,7 +82,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableBooleanValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/NullableBooleanValueAsyncClient.java index d28335000a..8ec6e05234 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableBooleanValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableBooleanValueAsyncClient.java @@ -43,11 +43,13 @@ public final class NullableBooleanValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableBooleanValueClient.java b/typespec-tests/src/main/java/com/type/array/NullableBooleanValueClient.java index 44278e6b08..982e4cdc37 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableBooleanValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableBooleanValueClient.java @@ -41,11 +41,13 @@ public final class NullableBooleanValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableFloatValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/NullableFloatValueAsyncClient.java index 16c5ffc27f..1e60f45830 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableFloatValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableFloatValueAsyncClient.java @@ -43,11 +43,13 @@ public final class NullableFloatValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableFloatValueClient.java b/typespec-tests/src/main/java/com/type/array/NullableFloatValueClient.java index 57bcb11889..fd1aca68b8 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableFloatValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableFloatValueClient.java @@ -41,11 +41,13 @@ public final class NullableFloatValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableInt32ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/NullableInt32ValueAsyncClient.java index edc2d3a5c2..7488acfef5 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableInt32ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableInt32ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class NullableInt32ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableInt32ValueClient.java b/typespec-tests/src/main/java/com/type/array/NullableInt32ValueClient.java index b4dc7b7a2f..0e085bc033 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableInt32ValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableInt32ValueClient.java @@ -41,11 +41,13 @@ public final class NullableInt32ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableModelValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/NullableModelValueAsyncClient.java index b7bc9b38d5..5e52a30228 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableModelValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableModelValueAsyncClient.java @@ -44,7 +44,8 @@ public final class NullableModelValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -53,7 +54,8 @@ public final class NullableModelValueAsyncClient {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -81,7 +84,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableModelValueClient.java b/typespec-tests/src/main/java/com/type/array/NullableModelValueClient.java index bba70ab27d..832e294009 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableModelValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableModelValueClient.java @@ -42,7 +42,8 @@ public final class NullableModelValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -51,7 +52,8 @@ public final class NullableModelValueClient {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -79,7 +82,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableStringValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/NullableStringValueAsyncClient.java index 9c13b9f853..58e1997f5c 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableStringValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableStringValueAsyncClient.java @@ -43,11 +43,13 @@ public final class NullableStringValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/NullableStringValueClient.java b/typespec-tests/src/main/java/com/type/array/NullableStringValueClient.java index 974c49c1ae..3d713fb7a1 100644 --- a/typespec-tests/src/main/java/com/type/array/NullableStringValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/NullableStringValueClient.java @@ -41,11 +41,13 @@ public final class NullableStringValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/StringValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/StringValueAsyncClient.java index 33a539ea5b..1e7f828745 100644 --- a/typespec-tests/src/main/java/com/type/array/StringValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/StringValueAsyncClient.java @@ -43,11 +43,13 @@ public final class StringValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/StringValueClient.java b/typespec-tests/src/main/java/com/type/array/StringValueClient.java index 9a7d3ca464..ac807b2164 100644 --- a/typespec-tests/src/main/java/com/type/array/StringValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/StringValueClient.java @@ -41,11 +41,13 @@ public final class StringValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/UnknownValueAsyncClient.java b/typespec-tests/src/main/java/com/type/array/UnknownValueAsyncClient.java index bde6794e91..920edc6e04 100644 --- a/typespec-tests/src/main/java/com/type/array/UnknownValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/array/UnknownValueAsyncClient.java @@ -43,11 +43,13 @@ public final class UnknownValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/UnknownValueClient.java b/typespec-tests/src/main/java/com/type/array/UnknownValueClient.java index 69ad478c30..ece56bf1d7 100644 --- a/typespec-tests/src/main/java/com/type/array/UnknownValueClient.java +++ b/typespec-tests/src/main/java/com/type/array/UnknownValueClient.java @@ -41,11 +41,13 @@ public final class UnknownValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/BooleanValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/BooleanValuesImpl.java index 3f0d5b06a3..7da90d48f8 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/BooleanValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/BooleanValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/DatetimeValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/DatetimeValuesImpl.java index 7878448bf2..e200d603dd 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/DatetimeValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/DatetimeValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     OffsetDateTime (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/DurationValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/DurationValuesImpl.java index bdb0253104..36ab4ed4e8 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/DurationValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/DurationValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Duration (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/Float32ValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/Float32ValuesImpl.java index 3090e9b8cc..506e337558 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/Float32ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/Float32ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/Int32ValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/Int32ValuesImpl.java index 7a32bda1c4..6105955489 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/Int32ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/Int32ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/Int64ValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/Int64ValuesImpl.java index 0ee68b4174..624c2c9b6c 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/Int64ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/Int64ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     long (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/ModelValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/ModelValuesImpl.java index a9b4bbdf18..83f47fa7d4 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/ModelValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/ModelValuesImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/NullableBooleanValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/NullableBooleanValuesImpl.java index 4fdf0dd3ed..1bcecdb91d 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/NullableBooleanValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/NullableBooleanValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     boolean (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/NullableFloatValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/NullableFloatValuesImpl.java index 7c5932bec5..0aef6923c8 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/NullableFloatValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/NullableFloatValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     double (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/NullableInt32ValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/NullableInt32ValuesImpl.java index b4c447bfab..a7586857d0 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/NullableInt32ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/NullableInt32ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     int (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/NullableModelValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/NullableModelValuesImpl.java index 643063bfb7..f43a792075 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/NullableModelValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/NullableModelValuesImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *      (Required){
      *         property: String (Required)
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         ]
      *     }
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/NullableStringValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/NullableStringValuesImpl.java index bbf0ce8b3b..0197cce0bf 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/NullableStringValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/NullableStringValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/StringValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/StringValuesImpl.java index a4f654a3d5..51e87e4204 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/StringValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/StringValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     String (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/array/implementation/UnknownValuesImpl.java b/typespec-tests/src/main/java/com/type/array/implementation/UnknownValuesImpl.java index 278340bf3c..358b714575 100644 --- a/typespec-tests/src/main/java/com/type/array/implementation/UnknownValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/array/implementation/UnknownValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     Object (Required)
      * ]
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/BooleanValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/BooleanValueAsyncClient.java index 628a90cb77..ab4304ac90 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/BooleanValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/BooleanValueAsyncClient.java @@ -43,11 +43,13 @@ public final class BooleanValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/BooleanValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/BooleanValueClient.java index 60aca2a385..74fe943eda 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/BooleanValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/BooleanValueClient.java @@ -41,11 +41,13 @@ public final class BooleanValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueAsyncClient.java index 7c7f770cc6..b66e2ea168 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueAsyncClient.java @@ -44,11 +44,13 @@ public final class DatetimeValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueClient.java index 813caf4220..38cb04bc51 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/DatetimeValueClient.java @@ -42,11 +42,13 @@ public final class DatetimeValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/DictionaryClientBuilder.java b/typespec-tests/src/main/java/com/type/dictionary/DictionaryClientBuilder.java index d9c58a5c61..b9861b041f 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/DictionaryClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/dictionary/DictionaryClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/dictionary/DurationValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/DurationValueAsyncClient.java index d132421427..cc87fed86a 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/DurationValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/DurationValueAsyncClient.java @@ -44,11 +44,13 @@ public final class DurationValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/DurationValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/DurationValueClient.java index 184875c6c4..b2163e7e4a 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/DurationValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/DurationValueClient.java @@ -42,11 +42,13 @@ public final class DurationValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/Float32ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/Float32ValueAsyncClient.java index 2afb7881f7..8ac487fc65 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/Float32ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/Float32ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class Float32ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/Float32ValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/Float32ValueClient.java index 18a4376161..1efd4c4353 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/Float32ValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/Float32ValueClient.java @@ -41,11 +41,13 @@ public final class Float32ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/Int32ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/Int32ValueAsyncClient.java index 7de6c0d727..b90cac3de5 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/Int32ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/Int32ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class Int32ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/Int32ValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/Int32ValueClient.java index 31bea0c39f..da275abd36 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/Int32ValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/Int32ValueClient.java @@ -41,11 +41,13 @@ public final class Int32ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/Int64ValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/Int64ValueAsyncClient.java index 2fea0d0bac..5f9121abe2 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/Int64ValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/Int64ValueAsyncClient.java @@ -43,11 +43,13 @@ public final class Int64ValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/Int64ValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/Int64ValueClient.java index adedbeab00..d0697c7205 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/Int64ValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/Int64ValueClient.java @@ -41,11 +41,13 @@ public final class Int64ValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/ModelValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/ModelValueAsyncClient.java index 4b5b1abca9..b2e99660a1 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/ModelValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/ModelValueAsyncClient.java @@ -44,7 +44,8 @@ public final class ModelValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -53,7 +54,8 @@ public final class ModelValueAsyncClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -81,7 +84,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/ModelValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/ModelValueClient.java index 4104c0c380..d768a430ac 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/ModelValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/ModelValueClient.java @@ -42,7 +42,8 @@ public final class ModelValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -51,7 +52,8 @@ public final class ModelValueClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -79,7 +82,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueAsyncClient.java index 984f40996b..6072bc378a 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueAsyncClient.java @@ -43,11 +43,13 @@ public final class NullableFloatValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueClient.java index 47f9d893d1..a51d2bff51 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/NullableFloatValueClient.java @@ -41,11 +41,13 @@ public final class NullableFloatValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueAsyncClient.java index ffd9257b49..c2410fbe3b 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueAsyncClient.java @@ -44,7 +44,8 @@ public final class RecursiveModelValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -53,7 +54,8 @@ public final class RecursiveModelValueAsyncClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -81,7 +84,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueClient.java index 1eecfcbf8d..3efde74ee3 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/RecursiveModelValueClient.java @@ -42,7 +42,8 @@ public final class RecursiveModelValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -51,7 +52,8 @@ public final class RecursiveModelValueClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -79,7 +82,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/StringValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/StringValueAsyncClient.java index 68e13d53a6..0106b86cd2 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/StringValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/StringValueAsyncClient.java @@ -43,11 +43,13 @@ public final class StringValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/StringValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/StringValueClient.java index 4f37910bfc..e0635c0620 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/StringValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/StringValueClient.java @@ -41,11 +41,13 @@ public final class StringValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/UnknownValueAsyncClient.java b/typespec-tests/src/main/java/com/type/dictionary/UnknownValueAsyncClient.java index 2c3ccd9f7a..3ae561a0bd 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/UnknownValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/UnknownValueAsyncClient.java @@ -43,11 +43,13 @@ public final class UnknownValueAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/UnknownValueClient.java b/typespec-tests/src/main/java/com/type/dictionary/UnknownValueClient.java index 68579d60a9..4409f0622d 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/UnknownValueClient.java +++ b/typespec-tests/src/main/java/com/type/dictionary/UnknownValueClient.java @@ -41,11 +41,13 @@ public final class UnknownValueClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/BooleanValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/BooleanValuesImpl.java index 4252c4d7f2..1eecd1443d 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/BooleanValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/BooleanValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/DatetimeValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/DatetimeValuesImpl.java index c69e91000f..33f732722d 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/DatetimeValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/DatetimeValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/DurationValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/DurationValuesImpl.java index fd34b374c1..e2dec09422 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/DurationValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/DurationValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/Float32ValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/Float32ValuesImpl.java index 31c0c48d5b..866d053975 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/Float32ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/Float32ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: double (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/Int32ValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/Int32ValuesImpl.java index 218a66342b..df25d1fd60 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/Int32ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/Int32ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/Int64ValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/Int64ValuesImpl.java index 0a4f18ef6a..87f829b93f 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/Int64ValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/Int64ValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: long (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/ModelValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/ModelValuesImpl.java index 67b28966e9..2490ec9907 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/ModelValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/ModelValuesImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/NullableFloatValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/NullableFloatValuesImpl.java index 4bbec7bc7f..16a4a9fadb 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/NullableFloatValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/NullableFloatValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/RecursiveModelValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/RecursiveModelValuesImpl.java index ee8fad64fe..84275e7614 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/RecursiveModelValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/RecursiveModelValuesImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String (Required): {
      *         property: String (Required)
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/StringValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/StringValuesImpl.java index 185d11e415..7afee67d32 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/StringValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/StringValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/dictionary/implementation/UnknownValuesImpl.java b/typespec-tests/src/main/java/com/type/dictionary/implementation/UnknownValuesImpl.java index c8669d7a4c..207f92c4a4 100644 --- a/typespec-tests/src/main/java/com/type/dictionary/implementation/UnknownValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/dictionary/implementation/UnknownValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     String: Object (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleAsyncClient.java b/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleAsyncClient.java index 15b1e2eeab..470dce32ea 100644 --- a/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleAsyncClient.java @@ -42,9 +42,11 @@ public final class ExtensibleAsyncClient { * The getKnownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> getKnownValueWithResponse(RequestOptions reque * The getUnknownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -84,9 +88,11 @@ public Mono> getUnknownValueWithResponse(RequestOptions req * The putKnownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -106,9 +112,11 @@ public Mono> putKnownValueWithResponse(BinaryData body, RequestOp * The putUnknownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClient.java b/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClient.java index 1fb59042b4..cde07c193c 100644 --- a/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClient.java +++ b/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClient.java @@ -40,9 +40,11 @@ public final class ExtensibleClient { * The getKnownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response getKnownValueWithResponse(RequestOptions requestOpti * The getUnknownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -82,9 +86,11 @@ public Response getUnknownValueWithResponse(RequestOptions requestOp * The putKnownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -104,9 +110,11 @@ public Response putKnownValueWithResponse(BinaryData body, RequestOptions * The putUnknownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClientBuilder.java b/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClientBuilder.java index a97dfecb8d..0213db8e23 100644 --- a/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/enums/extensible/ExtensibleClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/enums/extensible/implementation/StringOperationsImpl.java b/typespec-tests/src/main/java/com/type/enums/extensible/implementation/StringOperationsImpl.java index fa6ded7cef..346f062934 100644 --- a/typespec-tests/src/main/java/com/type/enums/extensible/implementation/StringOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/enums/extensible/implementation/StringOperationsImpl.java @@ -140,9 +140,11 @@ Response putUnknownValueSync(@HostParam("endpoint") String endpoint, * The getKnownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -162,9 +164,11 @@ public Mono> getKnownValueWithResponseAsync(RequestOptions * The getKnownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -183,9 +187,11 @@ public Response getKnownValueWithResponse(RequestOptions requestOpti * The getUnknownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -205,9 +211,11 @@ public Mono> getUnknownValueWithResponseAsync(RequestOption * The getUnknownValue operation. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -226,9 +234,11 @@ public Response getUnknownValueWithResponse(RequestOptions requestOp * The putKnownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -249,9 +259,11 @@ public Mono> putKnownValueWithResponseAsync(BinaryData body, Requ * The putKnownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -271,9 +283,11 @@ public Response putKnownValueWithResponse(BinaryData body, RequestOptions * The putUnknownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -294,9 +308,11 @@ public Mono> putUnknownValueWithResponseAsync(BinaryData body, Re * The putUnknownValue operation. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/enums/fixed/FixedAsyncClient.java b/typespec-tests/src/main/java/com/type/enums/fixed/FixedAsyncClient.java index 6fce7b873e..c12d4020a6 100644 --- a/typespec-tests/src/main/java/com/type/enums/fixed/FixedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/enums/fixed/FixedAsyncClient.java @@ -42,9 +42,11 @@ public final class FixedAsyncClient { * getKnownValue. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> getKnownValueWithResponse(RequestOptions reque * putKnownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -85,9 +89,11 @@ public Mono> putKnownValueWithResponse(BinaryData body, RequestOp * putUnknownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/enums/fixed/FixedClient.java b/typespec-tests/src/main/java/com/type/enums/fixed/FixedClient.java index 3831007ca0..9bd55b8c03 100644 --- a/typespec-tests/src/main/java/com/type/enums/fixed/FixedClient.java +++ b/typespec-tests/src/main/java/com/type/enums/fixed/FixedClient.java @@ -40,9 +40,11 @@ public final class FixedClient { * getKnownValue. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response getKnownValueWithResponse(RequestOptions requestOpti * putKnownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -83,9 +87,11 @@ public Response putKnownValueWithResponse(BinaryData body, RequestOptions * putUnknownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/enums/fixed/FixedClientBuilder.java b/typespec-tests/src/main/java/com/type/enums/fixed/FixedClientBuilder.java index f6976efa4b..65c11d5b25 100644 --- a/typespec-tests/src/main/java/com/type/enums/fixed/FixedClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/enums/fixed/FixedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/enums/fixed/implementation/StringOperationsImpl.java b/typespec-tests/src/main/java/com/type/enums/fixed/implementation/StringOperationsImpl.java index 0bf97bfa46..8db3127455 100644 --- a/typespec-tests/src/main/java/com/type/enums/fixed/implementation/StringOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/enums/fixed/implementation/StringOperationsImpl.java @@ -122,9 +122,11 @@ Response putUnknownValueSync(@HostParam("endpoint") String endpoint, * getKnownValue. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -144,9 +146,11 @@ public Mono> getKnownValueWithResponseAsync(RequestOptions * getKnownValue. *

Response Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,9 +169,11 @@ public Response getKnownValueWithResponse(RequestOptions requestOpti * putKnownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,9 +194,11 @@ public Mono> putKnownValueWithResponseAsync(BinaryData body, Requ * putKnownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -210,9 +218,11 @@ public Response putKnownValueWithResponse(BinaryData body, RequestOptions * putUnknownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -233,9 +243,11 @@ public Mono> putUnknownValueWithResponseAsync(BinaryData body, Re * putUnknownValue. *

Request Body Schema

* - *
{@code
-     * String(Monday / Tuesday / Wednesday / Thursday / Friday / Saturday / Sunday)
-     * }
+ *
+     * {@code
+     * String(Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday)
+     * }
+     * 
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/empty/EmptyAsyncClient.java b/typespec-tests/src/main/java/com/type/model/empty/EmptyAsyncClient.java index 8c7a7085eb..39b2cf739d 100644 --- a/typespec-tests/src/main/java/com/type/model/empty/EmptyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/empty/EmptyAsyncClient.java @@ -44,9 +44,12 @@ public final class EmptyAsyncClient { * The putEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -66,9 +69,12 @@ public Mono> putEmptyWithResponse(BinaryData input, RequestOption * The getEmpty operation. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -88,15 +94,21 @@ public Mono> getEmptyWithResponse(RequestOptions requestOpt * The postRoundTripEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/empty/EmptyClient.java b/typespec-tests/src/main/java/com/type/model/empty/EmptyClient.java index d83cabc5c2..1c251121c8 100644 --- a/typespec-tests/src/main/java/com/type/model/empty/EmptyClient.java +++ b/typespec-tests/src/main/java/com/type/model/empty/EmptyClient.java @@ -42,9 +42,12 @@ public final class EmptyClient { * The putEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -64,9 +67,12 @@ public Response putEmptyWithResponse(BinaryData input, RequestOptions requ * The getEmpty operation. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -85,15 +91,21 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * The postRoundTripEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/empty/EmptyClientBuilder.java b/typespec-tests/src/main/java/com/type/model/empty/EmptyClientBuilder.java index 169491e894..2d1294aa2a 100644 --- a/typespec-tests/src/main/java/com/type/model/empty/EmptyClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/empty/EmptyClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/empty/implementation/EmptyClientImpl.java b/typespec-tests/src/main/java/com/type/model/empty/implementation/EmptyClientImpl.java index 1efee1de49..b17eea2b91 100644 --- a/typespec-tests/src/main/java/com/type/model/empty/implementation/EmptyClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/empty/implementation/EmptyClientImpl.java @@ -188,9 +188,12 @@ Response postRoundTripEmptySync(@HostParam("endpoint") String endpoi * The putEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -211,9 +214,12 @@ public Mono> putEmptyWithResponseAsync(BinaryData input, RequestO * The putEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -233,9 +239,12 @@ public Response putEmptyWithResponse(BinaryData input, RequestOptions requ * The getEmpty operation. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -255,9 +264,12 @@ public Mono> getEmptyWithResponseAsync(RequestOptions reque * The getEmpty operation. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -276,15 +288,21 @@ public Response getEmptyWithResponse(RequestOptions requestOptions) * The postRoundTripEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -308,15 +326,21 @@ public Mono> postRoundTripEmptyWithResponseAsync(BinaryData * The postRoundTripEmpty operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorAsyncClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorAsyncClient.java index f75a57ccab..b6c8c407c5 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorAsyncClient.java @@ -43,12 +43,14 @@ public final class EnumDiscriminatorAsyncClient { * Receive model with extensible enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,12 +70,14 @@ public Mono> getExtensibleModelWithResponse(RequestOptions * Send model with extensible enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param input Dog to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -93,12 +97,14 @@ public Mono> putExtensibleModelWithResponse(BinaryData input, Req * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -118,12 +124,14 @@ public Mono> putExtensibleModelWithResponse(BinaryData input, Req * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -143,12 +151,14 @@ public Mono> getExtensibleModelWrongDiscriminatorWithRespon * Receive model with fixed enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -168,12 +178,14 @@ public Mono> getFixedModelWithResponse(RequestOptions reque * Send model with fixed enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param input Snake to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -193,12 +205,14 @@ public Mono> putFixedModelWithResponse(BinaryData input, RequestO * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -217,12 +231,14 @@ public Mono> getFixedModelMissingDiscriminatorWithResponse( * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClient.java index 5ab61e86e0..b866b0cd13 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClient.java @@ -41,12 +41,14 @@ public final class EnumDiscriminatorClient { * Receive model with extensible enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getExtensibleModelWithResponse(RequestOptions reques * Send model with extensible enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param input Dog to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -90,12 +94,14 @@ public Response putExtensibleModelWithResponse(BinaryData input, RequestOp * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -114,12 +120,14 @@ public Response getExtensibleModelMissingDiscriminatorWithResponse(R * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -138,12 +146,14 @@ public Response getExtensibleModelWrongDiscriminatorWithResponse(Req * Receive model with fixed enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -162,12 +172,14 @@ public Response getFixedModelWithResponse(RequestOptions requestOpti * Send model with fixed enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param input Snake to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,12 +199,14 @@ public Response putFixedModelWithResponse(BinaryData input, RequestOptions * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -211,12 +225,14 @@ public Response getFixedModelMissingDiscriminatorWithResponse(Reques * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClientBuilder.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClientBuilder.java index 2b53d06981..bd3fb5d94b 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/EnumDiscriminatorClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/implementation/EnumDiscriminatorClientImpl.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/implementation/EnumDiscriminatorClientImpl.java index 7fd484ee8c..043c90ab55 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/implementation/EnumDiscriminatorClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumdiscriminator/implementation/EnumDiscriminatorClientImpl.java @@ -280,12 +280,14 @@ Response getFixedModelWrongDiscriminatorSync(@HostParam("endpoint") * Receive model with extensible enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -306,12 +308,14 @@ public Mono> getExtensibleModelWithResponseAsync(RequestOpt * Receive model with extensible enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -330,12 +334,14 @@ public Response getExtensibleModelWithResponse(RequestOptions reques * Send model with extensible enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param input Dog to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -356,12 +362,14 @@ public Mono> putExtensibleModelWithResponseAsync(BinaryData input * Send model with extensible enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param input Dog to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -381,12 +389,14 @@ public Response putExtensibleModelWithResponse(BinaryData input, RequestOp * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -407,12 +417,14 @@ public Response putExtensibleModelWithResponse(BinaryData input, RequestOp * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -432,12 +444,14 @@ public Response getExtensibleModelMissingDiscriminatorWithResponse(R * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -459,12 +473,14 @@ public Response getExtensibleModelMissingDiscriminatorWithResponse(R * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(golden) (Required)
      *     weight: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -484,12 +500,14 @@ public Response getExtensibleModelWrongDiscriminatorWithResponse(Req * Receive model with fixed enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -510,12 +528,14 @@ public Mono> getFixedModelWithResponseAsync(RequestOptions * Receive model with fixed enum discriminator type. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -534,12 +554,14 @@ public Response getFixedModelWithResponse(RequestOptions requestOpti * Send model with fixed enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param input Snake to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -560,12 +582,14 @@ public Mono> putFixedModelWithResponseAsync(BinaryData input, Req * Send model with fixed enum discriminator type. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param input Snake to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -585,12 +609,14 @@ public Response putFixedModelWithResponse(BinaryData input, RequestOptions * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -611,12 +637,14 @@ public Response putFixedModelWithResponse(BinaryData input, RequestOptions * Get a model omitting the discriminator. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -635,12 +663,14 @@ public Response getFixedModelMissingDiscriminatorWithResponse(Reques * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -661,12 +691,14 @@ public Mono> getFixedModelWrongDiscriminatorWithResponseAsy * Get a model containing discriminator value never defined. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(cobra) (Required)
      *     length: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorAsyncClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorAsyncClient.java index 4a05fd20e4..874f5e6c6f 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorAsyncClient.java @@ -42,12 +42,14 @@ public final class EnumNestedDiscriminatorAsyncClient { * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,12 +69,14 @@ public Mono> getModelWithResponse(RequestOptions requestOpt * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -92,12 +96,14 @@ public Mono> putModelWithResponse(BinaryData input, RequestOption * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -117,12 +123,14 @@ public Mono> getRecursiveModelWithResponse(RequestOptions r * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -142,12 +150,14 @@ public Mono> putRecursiveModelWithResponse(BinaryData input, Requ * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,12 +177,14 @@ public Mono> getMissingDiscriminatorWithResponse(RequestOpt * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClient.java index 0e8bf8134f..6e10343352 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClient.java @@ -40,12 +40,14 @@ public final class EnumNestedDiscriminatorClient { * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getModelWithResponse(RequestOptions requestOptions) * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -90,12 +94,14 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -115,12 +121,14 @@ public Response getRecursiveModelWithResponse(RequestOptions request * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -140,12 +148,14 @@ public Response putRecursiveModelWithResponse(BinaryData input, RequestOpt * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,12 +175,14 @@ public Response getMissingDiscriminatorWithResponse(RequestOptions r * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClientBuilder.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClientBuilder.java index 277df88727..fd257ecdee 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/EnumNestedDiscriminatorClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/implementation/EnumNestedDiscriminatorClientImpl.java b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/implementation/EnumNestedDiscriminatorClientImpl.java index b98c4ecb03..eb57d96ddf 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/implementation/EnumNestedDiscriminatorClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/enumnesteddiscriminator/implementation/EnumNestedDiscriminatorClientImpl.java @@ -244,12 +244,14 @@ Response getWrongDiscriminatorSync(@HostParam("endpoint") String end * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -269,12 +271,14 @@ public Mono> getModelWithResponseAsync(RequestOptions reque * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -294,12 +298,14 @@ public Response getModelWithResponse(RequestOptions requestOptions) * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -320,12 +326,14 @@ public Mono> putModelWithResponseAsync(BinaryData input, RequestO * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -345,12 +353,14 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -371,12 +381,14 @@ public Mono> getRecursiveModelWithResponseAsync(RequestOpti * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -396,12 +408,14 @@ public Response getRecursiveModelWithResponse(RequestOptions request * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -422,12 +436,14 @@ public Mono> putRecursiveModelWithResponseAsync(BinaryData input, * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -447,12 +463,14 @@ public Response putRecursiveModelWithResponse(BinaryData input, RequestOpt * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -473,12 +491,14 @@ public Mono> getMissingDiscriminatorWithResponseAsync(Reque * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -498,12 +518,14 @@ public Response getMissingDiscriminatorWithResponse(RequestOptions r * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -524,12 +546,14 @@ public Mono> getWrongDiscriminatorWithResponseAsync(Request * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String(shark/salmon) (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorAsyncClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorAsyncClient.java index 36ff206431..d0c3e26094 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorAsyncClient.java @@ -42,12 +42,14 @@ public final class NestedDiscriminatorAsyncClient { * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,12 +69,14 @@ public Mono> getModelWithResponse(RequestOptions requestOpt * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -92,12 +96,14 @@ public Mono> putModelWithResponse(BinaryData input, RequestOption * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -117,12 +123,14 @@ public Mono> getRecursiveModelWithResponse(RequestOptions r * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -142,12 +150,14 @@ public Mono> putRecursiveModelWithResponse(BinaryData input, Requ * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,12 +177,14 @@ public Mono> getMissingDiscriminatorWithResponse(RequestOpt * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClient.java index 6692bab26a..49c08f3e09 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClient.java @@ -40,12 +40,14 @@ public final class NestedDiscriminatorClient { * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getModelWithResponse(RequestOptions requestOptions) * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -90,12 +94,14 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -115,12 +121,14 @@ public Response getRecursiveModelWithResponse(RequestOptions request * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -140,12 +148,14 @@ public Response putRecursiveModelWithResponse(BinaryData input, RequestOpt * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,12 +175,14 @@ public Response getMissingDiscriminatorWithResponse(RequestOptions r * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClientBuilder.java b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClientBuilder.java index 90d61f9bf0..694a0c95ac 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/NestedDiscriminatorClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/implementation/NestedDiscriminatorClientImpl.java b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/implementation/NestedDiscriminatorClientImpl.java index 7b9917ffe7..36302d7b51 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/implementation/NestedDiscriminatorClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/nesteddiscriminator/implementation/NestedDiscriminatorClientImpl.java @@ -244,12 +244,14 @@ Response getWrongDiscriminatorSync(@HostParam("endpoint") String end * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -269,12 +271,14 @@ public Mono> getModelWithResponseAsync(RequestOptions reque * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -294,12 +298,14 @@ public Response getModelWithResponse(RequestOptions requestOptions) * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -320,12 +326,14 @@ public Mono> putModelWithResponseAsync(BinaryData input, RequestO * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -345,12 +353,14 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -371,12 +381,14 @@ public Mono> getRecursiveModelWithResponseAsync(RequestOpti * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -396,12 +408,14 @@ public Response getRecursiveModelWithResponse(RequestOptions request * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -422,12 +436,14 @@ public Mono> putRecursiveModelWithResponseAsync(BinaryData input, * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -447,12 +463,14 @@ public Response putRecursiveModelWithResponse(BinaryData input, RequestOpt * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -473,12 +491,14 @@ public Mono> getMissingDiscriminatorWithResponseAsync(Reque * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -498,12 +518,14 @@ public Response getMissingDiscriminatorWithResponse(RequestOptions r * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -524,12 +546,14 @@ public Mono> getWrongDiscriminatorWithResponseAsync(Request * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     age: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedAsyncClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedAsyncClient.java index bd3b2a358d..2694ddad01 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedAsyncClient.java @@ -42,13 +42,15 @@ public final class NotDiscriminatedAsyncClient { * The postValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -68,13 +70,15 @@ public Mono> postValidWithResponse(BinaryData input, RequestOptio * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -94,23 +98,27 @@ public Mono> getValidWithResponse(RequestOptions requestOpt * The putValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClient.java index a0bde5926a..8296cd350f 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClient.java @@ -40,13 +40,15 @@ public final class NotDiscriminatedClient { * The postValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -66,13 +68,15 @@ public Response postValidWithResponse(BinaryData input, RequestOptions req * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -91,23 +95,27 @@ public Response getValidWithResponse(RequestOptions requestOptions) * The putValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClientBuilder.java b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClientBuilder.java index 65589f6b8f..592694cdc5 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/NotDiscriminatedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/implementation/NotDiscriminatedClientImpl.java b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/implementation/NotDiscriminatedClientImpl.java index 8bbbad56a7..98bd121b96 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/implementation/NotDiscriminatedClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/notdiscriminated/implementation/NotDiscriminatedClientImpl.java @@ -190,13 +190,15 @@ Response putValidSync(@HostParam("endpoint") String endpoint, * The postValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -217,13 +219,15 @@ public Mono> postValidWithResponseAsync(BinaryData input, Request * The postValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -243,13 +247,15 @@ public Response postValidWithResponse(BinaryData input, RequestOptions req * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -269,13 +275,15 @@ public Mono> getValidWithResponseAsync(RequestOptions reque * The getValid operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -294,23 +302,27 @@ public Response getValidWithResponse(RequestOptions requestOptions) * The putValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -333,23 +345,27 @@ public Mono> putValidWithResponseAsync(BinaryData input, Re * The putValid operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *     age: int (Required)
      *     smart: boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveAsyncClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveAsyncClient.java index b9a4e5aa6b..07cee9819e 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveAsyncClient.java @@ -42,14 +42,16 @@ public final class RecursiveAsyncClient { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -69,14 +71,16 @@ public Mono> putWithResponse(BinaryData input, RequestOptions req * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClient.java index 77b6812674..bb519927af 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClient.java @@ -40,14 +40,16 @@ public final class RecursiveClient { * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -67,14 +69,16 @@ public Response putWithResponse(BinaryData input, RequestOptions requestOp * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClientBuilder.java b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClientBuilder.java index 757f02ca3d..987341f73a 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/RecursiveClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/implementation/RecursiveClientImpl.java b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/implementation/RecursiveClientImpl.java index 97f4a67141..bceceac0e9 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/recursive/implementation/RecursiveClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/recursive/implementation/RecursiveClientImpl.java @@ -167,14 +167,16 @@ Response getSync(@HostParam("endpoint") String endpoint, @HeaderPara * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -195,14 +197,16 @@ public Mono> putWithResponseAsync(BinaryData input, RequestOption * The put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -222,14 +226,16 @@ public Response putWithResponse(BinaryData input, RequestOptions requestOp * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -248,14 +254,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     extension (Optional): [
      *         (recursive schema, see above)
      *     ]
      *     level: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorAsyncClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorAsyncClient.java index 824d3f77bf..06e02a67d1 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorAsyncClient.java @@ -43,12 +43,14 @@ public final class SingleDiscriminatorAsyncClient { * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,12 +70,14 @@ public Mono> getModelWithResponse(RequestOptions requestOpt * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -93,12 +97,14 @@ public Mono> putModelWithResponse(BinaryData input, RequestOption * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -118,12 +124,14 @@ public Mono> getRecursiveModelWithResponse(RequestOptions r * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -143,12 +151,14 @@ public Mono> putRecursiveModelWithResponse(BinaryData input, Requ * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -168,12 +178,14 @@ public Mono> getMissingDiscriminatorWithResponse(RequestOpt * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -193,12 +205,14 @@ public Mono> getWrongDiscriminatorWithResponse(RequestOptio * The getLegacyModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     size: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClient.java b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClient.java index 14e77c77ef..9ad87f0110 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClient.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClient.java @@ -41,12 +41,14 @@ public final class SingleDiscriminatorClient { * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,12 +68,14 @@ public Response getModelWithResponse(RequestOptions requestOptions) * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -91,12 +95,14 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -116,12 +122,14 @@ public Response getRecursiveModelWithResponse(RequestOptions request * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -141,12 +149,14 @@ public Response putRecursiveModelWithResponse(BinaryData input, RequestOpt * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -166,12 +176,14 @@ public Response getMissingDiscriminatorWithResponse(RequestOptions r * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -191,12 +203,14 @@ public Response getWrongDiscriminatorWithResponse(RequestOptions req * The getLegacyModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     size: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClientBuilder.java b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClientBuilder.java index ccebf1a8b8..633ce228be 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/SingleDiscriminatorClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/implementation/SingleDiscriminatorClientImpl.java b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/implementation/SingleDiscriminatorClientImpl.java index 5552826260..912dc811c9 100644 --- a/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/implementation/SingleDiscriminatorClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/inheritance/singlediscriminator/implementation/SingleDiscriminatorClientImpl.java @@ -262,12 +262,14 @@ Response getLegacyModelSync(@HostParam("endpoint") String endpoint, * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -287,12 +289,14 @@ public Mono> getModelWithResponseAsync(RequestOptions reque * The getModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -312,12 +316,14 @@ public Response getModelWithResponse(RequestOptions requestOptions) * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -338,12 +344,14 @@ public Mono> putModelWithResponseAsync(BinaryData input, RequestO * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -363,12 +371,14 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -389,12 +399,14 @@ public Mono> getRecursiveModelWithResponseAsync(RequestOpti * The getRecursiveModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -414,12 +426,14 @@ public Response getRecursiveModelWithResponse(RequestOptions request * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -440,12 +454,14 @@ public Mono> putRecursiveModelWithResponseAsync(BinaryData input, * The putRecursiveModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -465,12 +481,14 @@ public Response putRecursiveModelWithResponse(BinaryData input, RequestOpt * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -491,12 +509,14 @@ public Mono> getMissingDiscriminatorWithResponseAsync(Reque * The getMissingDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -516,12 +536,14 @@ public Response getMissingDiscriminatorWithResponse(RequestOptions r * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -542,12 +564,14 @@ public Mono> getWrongDiscriminatorWithResponseAsync(Request * The getWrongDiscriminator operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     wingspan: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -567,12 +591,14 @@ public Response getWrongDiscriminatorWithResponse(RequestOptions req * The getLegacyModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     size: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -593,12 +619,14 @@ public Mono> getLegacyModelWithResponseAsync(RequestOptions * The getLegacyModel operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     size: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/typespec-tests/src/main/java/com/type/model/usage/UsageAsyncClient.java b/typespec-tests/src/main/java/com/type/model/usage/UsageAsyncClient.java index 52b4e988fd..d5d39f6c06 100644 --- a/typespec-tests/src/main/java/com/type/model/usage/UsageAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/usage/UsageAsyncClient.java @@ -44,11 +44,13 @@ public final class UsageAsyncClient { * The input operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -68,11 +70,13 @@ public Mono> inputWithResponse(BinaryData input, RequestOptions r * The output operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -92,19 +96,23 @@ public Mono> outputWithResponse(RequestOptions requestOptio * The inputAndOutput operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/usage/UsageClient.java b/typespec-tests/src/main/java/com/type/model/usage/UsageClient.java index 84f101e5ef..aa46894070 100644 --- a/typespec-tests/src/main/java/com/type/model/usage/UsageClient.java +++ b/typespec-tests/src/main/java/com/type/model/usage/UsageClient.java @@ -42,11 +42,13 @@ public final class UsageClient { * The input operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -66,11 +68,13 @@ public Response inputWithResponse(BinaryData input, RequestOptions request * The output operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -89,19 +93,23 @@ public Response outputWithResponse(RequestOptions requestOptions) { * The inputAndOutput operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/usage/UsageClientBuilder.java b/typespec-tests/src/main/java/com/type/model/usage/UsageClientBuilder.java index 82dfb76e79..564142e0d6 100644 --- a/typespec-tests/src/main/java/com/type/model/usage/UsageClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/usage/UsageClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/usage/implementation/UsageClientImpl.java b/typespec-tests/src/main/java/com/type/model/usage/implementation/UsageClientImpl.java index c39f723ea6..576a62c50a 100644 --- a/typespec-tests/src/main/java/com/type/model/usage/implementation/UsageClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/usage/implementation/UsageClientImpl.java @@ -187,11 +187,13 @@ Response inputAndOutputSync(@HostParam("endpoint") String endpoint, * The input operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -212,11 +214,13 @@ public Mono> inputWithResponseAsync(BinaryData input, RequestOpti * The input operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -236,11 +240,13 @@ public Response inputWithResponse(BinaryData input, RequestOptions request * The output operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -260,11 +266,13 @@ public Mono> outputWithResponseAsync(RequestOptions request * The output operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -283,19 +291,23 @@ public Response outputWithResponse(RequestOptions requestOptions) { * The inputAndOutput operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -318,19 +330,23 @@ public Mono> inputAndOutputWithResponseAsync(BinaryData bod * The inputAndOutput operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/visibility/VisibilityAsyncClient.java b/typespec-tests/src/main/java/com/type/model/visibility/VisibilityAsyncClient.java index f2ad580525..748a5a67c9 100644 --- a/typespec-tests/src/main/java/com/type/model/visibility/VisibilityAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/model/visibility/VisibilityAsyncClient.java @@ -43,7 +43,8 @@ public final class VisibilityAsyncClient { * The getModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -55,11 +56,13 @@ public final class VisibilityAsyncClient {
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -71,7 +74,8 @@ public final class VisibilityAsyncClient {
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -92,7 +96,8 @@ public Mono> getModelWithResponse(BinaryData input, Request * The headModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -104,7 +109,8 @@ public Mono> getModelWithResponse(BinaryData input, Request
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -124,7 +130,8 @@ public Mono> headModelWithResponse(BinaryData input, RequestOptio * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -136,7 +143,8 @@ public Mono> headModelWithResponse(BinaryData input, RequestOptio
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -156,7 +164,8 @@ public Mono> putModelWithResponse(BinaryData input, RequestOption * The patchModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -168,7 +177,8 @@ public Mono> putModelWithResponse(BinaryData input, RequestOption
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,7 +198,8 @@ public Mono> patchModelWithResponse(BinaryData input, RequestOpti * The postModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -200,7 +211,8 @@ public Mono> patchModelWithResponse(BinaryData input, RequestOpti
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -220,7 +232,8 @@ public Mono> postModelWithResponse(BinaryData input, RequestOptio * The deleteModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -232,7 +245,8 @@ public Mono> postModelWithResponse(BinaryData input, RequestOptio
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -252,7 +266,8 @@ public Mono> deleteModelWithResponse(BinaryData input, RequestOpt * The putReadOnlyModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -261,11 +276,13 @@ public Mono> deleteModelWithResponse(BinaryData input, RequestOpt
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -274,7 +291,8 @@ public Mono> deleteModelWithResponse(BinaryData input, RequestOpt
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClient.java b/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClient.java index 758acf365e..97bb8d8dde 100644 --- a/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClient.java +++ b/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClient.java @@ -41,7 +41,8 @@ public final class VisibilityClient { * The getModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -53,11 +54,13 @@ public final class VisibilityClient {
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -69,7 +72,8 @@ public final class VisibilityClient {
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -89,7 +93,8 @@ public Response getModelWithResponse(BinaryData input, RequestOption * The headModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -101,7 +106,8 @@ public Response getModelWithResponse(BinaryData input, RequestOption
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -121,7 +127,8 @@ public Response headModelWithResponse(BinaryData input, RequestOptions req * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -133,7 +140,8 @@ public Response headModelWithResponse(BinaryData input, RequestOptions req
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -153,7 +161,8 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The patchModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -165,7 +174,8 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -185,7 +195,8 @@ public Response patchModelWithResponse(BinaryData input, RequestOptions re * The postModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -197,7 +208,8 @@ public Response patchModelWithResponse(BinaryData input, RequestOptions re
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -217,7 +229,8 @@ public Response postModelWithResponse(BinaryData input, RequestOptions req * The deleteModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -229,7 +242,8 @@ public Response postModelWithResponse(BinaryData input, RequestOptions req
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -249,7 +263,8 @@ public Response deleteModelWithResponse(BinaryData input, RequestOptions r * The putReadOnlyModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -258,11 +273,13 @@ public Response deleteModelWithResponse(BinaryData input, RequestOptions r
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -271,7 +288,8 @@ public Response deleteModelWithResponse(BinaryData input, RequestOptions r
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClientBuilder.java b/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClientBuilder.java index 70668f3bb1..729c2917c9 100644 --- a/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/model/visibility/VisibilityClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/model/visibility/implementation/VisibilityClientImpl.java b/typespec-tests/src/main/java/com/type/model/visibility/implementation/VisibilityClientImpl.java index 323e87eedb..5041361d46 100644 --- a/typespec-tests/src/main/java/com/type/model/visibility/implementation/VisibilityClientImpl.java +++ b/typespec-tests/src/main/java/com/type/model/visibility/implementation/VisibilityClientImpl.java @@ -274,7 +274,8 @@ Response putReadOnlyModelSync(@HostParam("endpoint") String endpoint * The getModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -286,11 +287,13 @@ Response putReadOnlyModelSync(@HostParam("endpoint") String endpoint
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -302,7 +305,8 @@ Response putReadOnlyModelSync(@HostParam("endpoint") String endpoint
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -325,7 +329,8 @@ public Mono> getModelWithResponseAsync(BinaryData input, Re * The getModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -337,11 +342,13 @@ public Mono> getModelWithResponseAsync(BinaryData input, Re
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -353,7 +360,8 @@ public Mono> getModelWithResponseAsync(BinaryData input, Re
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -374,7 +382,8 @@ public Response getModelWithResponse(BinaryData input, RequestOption * The headModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -386,7 +395,8 @@ public Response getModelWithResponse(BinaryData input, RequestOption
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -407,7 +417,8 @@ public Mono> headModelWithResponseAsync(BinaryData input, Request * The headModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -419,7 +430,8 @@ public Mono> headModelWithResponseAsync(BinaryData input, Request
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -439,7 +451,8 @@ public Response headModelWithResponse(BinaryData input, RequestOptions req * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -451,7 +464,8 @@ public Response headModelWithResponse(BinaryData input, RequestOptions req
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -472,7 +486,8 @@ public Mono> putModelWithResponseAsync(BinaryData input, RequestO * The putModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -484,7 +499,8 @@ public Mono> putModelWithResponseAsync(BinaryData input, RequestO
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -504,7 +520,8 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ * The patchModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -516,7 +533,8 @@ public Response putModelWithResponse(BinaryData input, RequestOptions requ
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -537,7 +555,8 @@ public Mono> patchModelWithResponseAsync(BinaryData input, Reques * The patchModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -549,7 +568,8 @@ public Mono> patchModelWithResponseAsync(BinaryData input, Reques
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -569,7 +589,8 @@ public Response patchModelWithResponse(BinaryData input, RequestOptions re * The postModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -581,7 +602,8 @@ public Response patchModelWithResponse(BinaryData input, RequestOptions re
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -602,7 +624,8 @@ public Mono> postModelWithResponseAsync(BinaryData input, Request * The postModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -614,7 +637,8 @@ public Mono> postModelWithResponseAsync(BinaryData input, Request
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -634,7 +658,8 @@ public Response postModelWithResponse(BinaryData input, RequestOptions req * The deleteModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -646,7 +671,8 @@ public Response postModelWithResponse(BinaryData input, RequestOptions req
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -667,7 +693,8 @@ public Mono> deleteModelWithResponseAsync(BinaryData input, Reque * The deleteModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     readProp: String (Required)
      *     queryProp: Integer (Required)
@@ -679,7 +706,8 @@ public Mono> deleteModelWithResponseAsync(BinaryData input, Reque
      *     ]
      *     deleteProp: Boolean (Required)
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -699,7 +727,8 @@ public Response deleteModelWithResponse(BinaryData input, RequestOptions r * The putReadOnlyModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -708,11 +737,13 @@ public Response deleteModelWithResponse(BinaryData input, RequestOptions r
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -721,7 +752,8 @@ public Response deleteModelWithResponse(BinaryData input, RequestOptions r
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -745,7 +777,8 @@ public Mono> putReadOnlyModelWithResponseAsync(BinaryData i * The putReadOnlyModel operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -754,11 +787,13 @@ public Mono> putReadOnlyModelWithResponseAsync(BinaryData i
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalNullableIntList (Optional): [
      *         int (Optional)
@@ -767,7 +802,8 @@ public Mono> putReadOnlyModelWithResponseAsync(BinaryData i
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param input The input parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/AdditionalPropertiesClientBuilder.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/AdditionalPropertiesClientBuilder.java index 6e1941fd41..5d981c87cc 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/AdditionalPropertiesClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/AdditionalPropertiesClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatAsyncClient.java index 0a77172f15..136dc3afaf 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsDifferentSpreadFloatAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -50,7 +51,8 @@ public final class ExtendsDifferentSpreadFloatAsyncClient {
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -77,7 +80,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatClient.java index a18b3d3fc5..d164543bec 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadFloatClient.java @@ -40,7 +40,8 @@ public final class ExtendsDifferentSpreadFloatClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -48,7 +49,8 @@ public final class ExtendsDifferentSpreadFloatClient {
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -75,7 +78,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayAsyncClient.java index 8e539dc46c..56f4f4d247 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsDifferentSpreadModelArrayAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -56,7 +57,8 @@ public final class ExtendsDifferentSpreadModelArrayAsyncClient {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -75,7 +77,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -89,7 +92,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayClient.java index c9341fbd75..b668212cf9 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelArrayClient.java @@ -40,7 +40,8 @@ public final class ExtendsDifferentSpreadModelArrayClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -54,7 +55,8 @@ public final class ExtendsDifferentSpreadModelArrayClient {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -73,7 +75,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -87,7 +90,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelAsyncClient.java index edeaef6e63..ff8b25af87 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsDifferentSpreadModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -52,7 +53,8 @@ public final class ExtendsDifferentSpreadModelAsyncClient {
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -71,7 +73,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -81,7 +84,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelClient.java index 3ef771373b..d980e30947 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadModelClient.java @@ -40,7 +40,8 @@ public final class ExtendsDifferentSpreadModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -50,7 +51,8 @@ public final class ExtendsDifferentSpreadModelClient {
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -79,7 +82,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringAsyncClient.java index 79c7ee9f46..41cb561905 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsDifferentSpreadStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -50,7 +51,8 @@ public final class ExtendsDifferentSpreadStringAsyncClient {
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -77,7 +80,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringClient.java index c110a4e66e..bec40055b0 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsDifferentSpreadStringClient.java @@ -40,7 +40,8 @@ public final class ExtendsDifferentSpreadStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -48,7 +49,8 @@ public final class ExtendsDifferentSpreadStringClient {
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -75,7 +78,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatAsyncClient.java index 165efe0962..c49b0bf6fc 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatAsyncClient.java @@ -42,14 +42,16 @@ public final class ExtendsFloatAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatClient.java index 2344a7bcc7..a5fe5caa95 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsFloatClient.java @@ -40,14 +40,16 @@ public final class ExtendsFloatClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayAsyncClient.java index aee6c3bdfc..79790eff7a 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsModelArrayAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -55,7 +56,8 @@ public final class ExtendsModelArrayAsyncClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -74,7 +76,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -87,7 +90,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayClient.java index 112640784b..997c9b990a 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelArrayClient.java @@ -40,7 +40,8 @@ public final class ExtendsModelArrayClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -53,7 +54,8 @@ public final class ExtendsModelArrayClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -85,7 +88,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelAsyncClient.java index 3e2c8a262b..0905754959 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -51,7 +52,8 @@ public final class ExtendsModelAsyncClient {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -79,7 +82,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelClient.java index 350b125c5b..53a9f75ed6 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsModelClient.java @@ -40,7 +40,8 @@ public final class ExtendsModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -49,7 +50,8 @@ public final class ExtendsModelClient {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -77,7 +80,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringAsyncClient.java index 631556ec37..57c8cede8c 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringAsyncClient.java @@ -42,14 +42,16 @@ public final class ExtendsStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringClient.java index 18ef0b0b98..368b2aa36d 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsStringClient.java @@ -40,14 +40,16 @@ public final class ExtendsStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownAsyncClient.java index a3971293d0..2f434ce62b 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownAsyncClient.java @@ -42,14 +42,16 @@ public final class ExtendsUnknownAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownClient.java index d1223a9711..0dcb456877 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownClient.java @@ -40,14 +40,16 @@ public final class ExtendsUnknownClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedAsyncClient.java index 47555089a1..fe29ca1bbe 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsUnknownDerivedAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -51,7 +52,8 @@ public final class ExtendsUnknownDerivedAsyncClient {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -79,7 +82,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedClient.java index a711f89a99..0144141610 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDerivedClient.java @@ -40,7 +40,8 @@ public final class ExtendsUnknownDerivedClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -49,7 +50,8 @@ public final class ExtendsUnknownDerivedClient {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -77,7 +80,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedAsyncClient.java index 2996ebdb51..0b45fb247f 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedAsyncClient.java @@ -42,7 +42,8 @@ public final class ExtendsUnknownDiscriminatedAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -50,7 +51,8 @@ public final class ExtendsUnknownDiscriminatedAsyncClient {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -77,7 +80,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedClient.java index 8c65533253..92b4d821d3 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/ExtendsUnknownDiscriminatedClient.java @@ -40,7 +40,8 @@ public final class ExtendsUnknownDiscriminatedClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -48,7 +49,8 @@ public final class ExtendsUnknownDiscriminatedClient {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -75,7 +78,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatAsyncClient.java index f0b5bec866..426a6a71ff 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatAsyncClient.java @@ -42,14 +42,16 @@ public final class IsFloatAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatClient.java index 59f59264a0..fd1568b52f 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsFloatClient.java @@ -40,14 +40,16 @@ public final class IsFloatClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayAsyncClient.java index dc5b7a138c..e2947ed255 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayAsyncClient.java @@ -42,7 +42,8 @@ public final class IsModelArrayAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -55,7 +56,8 @@ public final class IsModelArrayAsyncClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -74,7 +76,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -87,7 +90,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayClient.java index ed99323bec..8f5e3efb92 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelArrayClient.java @@ -40,7 +40,8 @@ public final class IsModelArrayClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -53,7 +54,8 @@ public final class IsModelArrayClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -85,7 +88,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelAsyncClient.java index 245ff40887..8a2914fa14 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelAsyncClient.java @@ -42,7 +42,8 @@ public final class IsModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -51,7 +52,8 @@ public final class IsModelAsyncClient {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -79,7 +82,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelClient.java index cb9bb36ef3..df44da99f4 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsModelClient.java @@ -40,7 +40,8 @@ public final class IsModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -49,7 +50,8 @@ public final class IsModelClient {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -77,7 +80,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringAsyncClient.java index 4388e9f9a7..dc61e185ad 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringAsyncClient.java @@ -42,14 +42,16 @@ public final class IsStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringClient.java index 54f77899d5..de1b4cb4b5 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsStringClient.java @@ -40,14 +40,16 @@ public final class IsStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownAsyncClient.java index 56fb6113f7..af6105bf80 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownAsyncClient.java @@ -42,14 +42,16 @@ public final class IsUnknownAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownClient.java index e5fde6da37..27f20dc434 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownClient.java @@ -40,14 +40,16 @@ public final class IsUnknownClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedAsyncClient.java index 6527d2fd23..a94da99040 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedAsyncClient.java @@ -42,7 +42,8 @@ public final class IsUnknownDerivedAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -51,7 +52,8 @@ public final class IsUnknownDerivedAsyncClient {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -79,7 +82,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedClient.java index ff945769c1..4ec4679b95 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDerivedClient.java @@ -40,7 +40,8 @@ public final class IsUnknownDerivedClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -49,7 +50,8 @@ public final class IsUnknownDerivedClient {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -77,7 +80,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedAsyncClient.java index 33cd143e8a..56aff1e81c 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedAsyncClient.java @@ -42,7 +42,8 @@ public final class IsUnknownDiscriminatedAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -50,7 +51,8 @@ public final class IsUnknownDiscriminatedAsyncClient {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -77,7 +80,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedClient.java index 8d336689cc..6153c1514a 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/IsUnknownDiscriminatedClient.java @@ -40,7 +40,8 @@ public final class IsUnknownDiscriminatedClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -48,7 +49,8 @@ public final class IsUnknownDiscriminatedClient {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -75,7 +78,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadAsyncClient.java index 4a7f13d101..df00f2ca06 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadAsyncClient.java @@ -42,14 +42,16 @@ public final class MultipleSpreadAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadClient.java index 695adb7ab4..a2178607b3 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/MultipleSpreadClient.java @@ -40,14 +40,16 @@ public final class MultipleSpreadClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatAsyncClient.java index 52c264e60c..eea92dd7f1 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadDifferentFloatAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatClient.java index cf800c43fe..796197b68d 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentFloatClient.java @@ -40,14 +40,16 @@ public final class SpreadDifferentFloatClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayAsyncClient.java index 90fbf5a45e..9ad669ad48 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayAsyncClient.java @@ -42,7 +42,8 @@ public final class SpreadDifferentModelArrayAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -53,7 +54,8 @@ public final class SpreadDifferentModelArrayAsyncClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -83,7 +86,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayClient.java index 75c931ef47..b2c1a7b80b 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelArrayClient.java @@ -40,7 +40,8 @@ public final class SpreadDifferentModelArrayClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -51,7 +52,8 @@ public final class SpreadDifferentModelArrayClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -81,7 +84,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelAsyncClient.java index dd78d0eafa..d628373e42 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelAsyncClient.java @@ -42,7 +42,8 @@ public final class SpreadDifferentModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -51,7 +52,8 @@ public final class SpreadDifferentModelAsyncClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -79,7 +82,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelClient.java index 2de9b57e67..efb3750a46 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentModelClient.java @@ -40,7 +40,8 @@ public final class SpreadDifferentModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -49,7 +50,8 @@ public final class SpreadDifferentModelClient {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -77,7 +80,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringAsyncClient.java index 9a5b404239..dfdea78897 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadDifferentStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringClient.java index c052f4d6b2..25a64d6626 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadDifferentStringClient.java @@ -40,14 +40,16 @@ public final class SpreadDifferentStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatAsyncClient.java index 4491b1cea4..454bb17c85 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadFloatAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatClient.java index 844165116e..e7db3f07ad 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadFloatClient.java @@ -40,14 +40,16 @@ public final class SpreadFloatClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayAsyncClient.java index bfb87faa8f..f4d15bd9a7 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayAsyncClient.java @@ -42,7 +42,8 @@ public final class SpreadModelArrayAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -55,7 +56,8 @@ public final class SpreadModelArrayAsyncClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -74,7 +76,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -87,7 +90,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayClient.java index d869e8b9df..0f18cea64b 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelArrayClient.java @@ -40,7 +40,8 @@ public final class SpreadModelArrayClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -53,7 +54,8 @@ public final class SpreadModelArrayClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -85,7 +88,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelAsyncClient.java index c1250d5eec..8f51b872b0 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelAsyncClient.java @@ -42,7 +42,8 @@ public final class SpreadModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -51,7 +52,8 @@ public final class SpreadModelAsyncClient {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -79,7 +82,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelClient.java index ed489d4347..88d830a630 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadModelClient.java @@ -40,7 +40,8 @@ public final class SpreadModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -49,7 +50,8 @@ public final class SpreadModelClient {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,7 +70,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -77,7 +80,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionAsyncClient.java index 7baae2dcb8..40776ebbeb 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadRecordDiscriminatedUnionAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionClient.java index 641f7c8498..527127d581 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordDiscriminatedUnionClient.java @@ -40,14 +40,16 @@ public final class SpreadRecordDiscriminatedUnionClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2AsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2AsyncClient.java index 25d072990b..d2d8a38bca 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2AsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2AsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadRecordNonDiscriminatedUnion2AsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2Client.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2Client.java index 25af9e4463..015acfbecf 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2Client.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion2Client.java @@ -40,14 +40,16 @@ public final class SpreadRecordNonDiscriminatedUnion2Client { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3AsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3AsyncClient.java index 067ee6ee43..f7459bce8f 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3AsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3AsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadRecordNonDiscriminatedUnion3AsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3Client.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3Client.java index d14844fa24..66acbfbbcd 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3Client.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnion3Client.java @@ -40,14 +40,16 @@ public final class SpreadRecordNonDiscriminatedUnion3Client { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionAsyncClient.java index 637b3d680f..02054551c4 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadRecordNonDiscriminatedUnionAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionClient.java index 96fda8ee04..31bed6158e 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordNonDiscriminatedUnionClient.java @@ -40,14 +40,16 @@ public final class SpreadRecordNonDiscriminatedUnionClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionAsyncClient.java index f59998aac8..5874693a6e 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadRecordUnionAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionClient.java index c8eaa17b0a..c22292a32d 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadRecordUnionClient.java @@ -40,14 +40,16 @@ public final class SpreadRecordUnionClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringAsyncClient.java index 51c27dd0e2..63229fb69e 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringAsyncClient.java @@ -42,14 +42,16 @@ public final class SpreadStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringClient.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringClient.java index ccd1774615..1ba61766ee 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/SpreadStringClient.java @@ -40,14 +40,16 @@ public final class SpreadStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,14 +68,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadFloatsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadFloatsImpl.java index d62be52179..55661e6793 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadFloatsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadFloatsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -109,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,7 +130,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -136,7 +139,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,7 +159,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -163,7 +168,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -184,7 +190,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -192,7 +199,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *     }
      *     derivedProp: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelArraysImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelArraysImpl.java index 8c75fb14cd..3d8d518528 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelArraysImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -115,7 +116,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -134,7 +136,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -148,7 +151,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -181,7 +186,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -202,7 +208,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -216,7 +223,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         (recursive schema, see above)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelsImpl.java index 8e55e04e63..a0558a0932 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadModelsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -111,7 +112,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -130,7 +132,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -140,7 +143,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -159,7 +163,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -169,7 +174,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -190,7 +196,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -200,7 +207,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *     }
      *     derivedProp (Required): (recursive schema, see derivedProp above)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadStringsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadStringsImpl.java index bfd2dd11f1..93d0008416 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsDifferentSpreadStringsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -109,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,7 +130,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -136,7 +139,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,7 +159,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -163,7 +168,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -184,7 +190,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
@@ -192,7 +199,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *     }
      *     derivedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsFloatsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsFloatsImpl.java index 11ac9cc0b3..f388694c0e 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsFloatsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsFloatsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelArraysImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelArraysImpl.java index e48e96e72c..d8130ac416 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelArraysImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -114,7 +115,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -133,7 +135,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -146,7 +149,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,7 +169,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -178,7 +183,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -199,7 +205,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -212,7 +219,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelsImpl.java index 37d6a056c3..af5841754e 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsModelsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsStringsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsStringsImpl.java index 2ee4476668..e7a1ac8d33 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsStringsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDerivedsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDerivedsImpl.java index 2aaf5b14d6..4cb4e5a3e9 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDerivedsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDerivedsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDiscriminatedsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDiscriminatedsImpl.java index 5e67fb8e72..64a3a96908 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDiscriminatedsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownDiscriminatedsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -109,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,7 +130,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -136,7 +139,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,7 +159,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -163,7 +168,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -184,7 +190,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -192,7 +199,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownsImpl.java index 28f682fb1d..60444fbca3 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/ExtendsUnknownsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsFloatsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsFloatsImpl.java index c652616256..8a1deead79 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsFloatsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsFloatsImpl.java @@ -100,14 +100,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,14 +128,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -152,14 +156,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -180,14 +186,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelArraysImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelArraysImpl.java index 8d95467fb6..d7e4a16506 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelArraysImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -114,7 +115,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -133,7 +135,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -146,7 +149,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,7 +169,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -178,7 +183,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -199,7 +205,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -212,7 +219,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelsImpl.java index 44b0c52fb1..2ff6f52c5f 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsModelsImpl.java @@ -100,7 +100,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -109,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,7 +130,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -137,7 +140,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -156,7 +160,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -165,7 +170,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -186,7 +192,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -195,7 +202,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsStringsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsStringsImpl.java index 35198e065c..96e8296237 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsStringsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDerivedsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDerivedsImpl.java index 05a68b6bb3..d6fb7fc7a2 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDerivedsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDerivedsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *     index: int (Required)
      *     age: Double (Optional)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDiscriminatedsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDiscriminatedsImpl.java index 11d80df74d..662021268c 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDiscriminatedsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownDiscriminatedsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -109,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,7 +130,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -136,7 +139,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,7 +159,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -163,7 +168,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -184,7 +190,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     kind: String (Required)
      *     name: String (Required)
@@ -192,7 +199,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownsImpl.java index 14af79a153..0b5b8d66df 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/IsUnknownsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: Object (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/MultipleSpreadsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/MultipleSpreadsImpl.java index 77c14978b2..be4a59de62 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/MultipleSpreadsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/MultipleSpreadsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentFloatsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentFloatsImpl.java index 0141e36ac4..a77114ac37 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentFloatsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentFloatsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelArraysImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelArraysImpl.java index c1e3aa384f..72ae9f1369 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelArraysImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -112,7 +113,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -131,7 +133,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -142,7 +145,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -161,7 +165,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -172,7 +177,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -193,7 +199,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -204,7 +211,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelsImpl.java index fed8bd79de..cf7cf39699 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentModelsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp: String (Required)
      *      (Optional): {
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         }
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentStringsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentStringsImpl.java index a8056c035e..88c41ca755 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadDifferentStringsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadFloatsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadFloatsImpl.java index a6e5600d38..97d141a398 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadFloatsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadFloatsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     id: double (Required)
      *      (Optional): {
      *         String: double (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelArraysImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelArraysImpl.java index 25eb98c761..070fccde22 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelArraysImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -114,7 +115,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -133,7 +135,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -146,7 +149,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,7 +169,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -178,7 +183,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -199,7 +205,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): [
      *          (Required){
@@ -212,7 +219,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelsImpl.java index fdd2a2fd9a..1b2fe4a2ba 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadModelsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -110,7 +111,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     knownProp (Required): {
      *         state: String (Required)
@@ -196,7 +203,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         String (Required): (recursive schema, see String above)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordDiscriminatedUnionsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordDiscriminatedUnionsImpl.java index 08605622c4..4265d14cbd 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordDiscriminatedUnionsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordDiscriminatedUnionsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion2sImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion2sImpl.java index 774b0db139..e891fd1023 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion2sImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion2sImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion3sImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion3sImpl.java index 29f7579eb5..4e4d8d5829 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion3sImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnion3sImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnionsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnionsImpl.java index f438e1fa77..466c059db4 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnionsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordNonDiscriminatedUnionsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordUnionsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordUnionsImpl.java index 381cf3286d..c5bb44ba4a 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordUnionsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadRecordUnionsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     flag: boolean (Required)
      *      (Optional): {
      *         String: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadStringsImpl.java b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadStringsImpl.java index 8c744222c5..9c2d98ef63 100644 --- a/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/additionalproperties/implementation/SpreadStringsImpl.java @@ -101,14 +101,16 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     name: String (Required)
      *      (Optional): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/BytesAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/BytesAsyncClient.java index dc15c34de7..50798951c9 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/BytesAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/BytesAsyncClient.java @@ -43,12 +43,14 @@ public final class BytesAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,12 +70,14 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,12 +97,14 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -118,12 +124,14 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/BytesClient.java b/typespec-tests/src/main/java/com/type/property/nullable/BytesClient.java index d8ae75cd3b..e13378f9fe 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/BytesClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/BytesClient.java @@ -41,12 +41,14 @@ public final class BytesClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -89,12 +93,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,12 +120,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteAsyncClient.java index 85e397e71a..d654c87047 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteAsyncClient.java @@ -43,14 +43,16 @@ public final class CollectionsByteAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,14 +72,16 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -97,14 +101,16 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -124,14 +130,16 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteClient.java b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteClient.java index 058ede5f10..47898c5b1a 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsByteClient.java @@ -41,14 +41,16 @@ public final class CollectionsByteClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,14 +69,16 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,14 +97,16 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -120,14 +126,16 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelAsyncClient.java index a0aca8862f..d954f7d667 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelAsyncClient.java @@ -43,7 +43,8 @@ public final class CollectionsModelAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -52,7 +53,8 @@ public final class CollectionsModelAsyncClient {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -81,7 +84,8 @@ public Mono> getNonNullWithResponse(RequestOptions requestO
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -101,7 +105,8 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -110,7 +115,8 @@ public Mono> getNullWithResponse(RequestOptions requestOpti
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -130,7 +136,8 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -139,7 +146,8 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelClient.java b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelClient.java index ce1d4f5cc9..b9a57a85c2 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsModelClient.java @@ -41,7 +41,8 @@ public final class CollectionsModelClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -50,7 +51,8 @@ public final class CollectionsModelClient {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -78,7 +81,8 @@ public Response getNonNullWithResponse(RequestOptions requestOptions
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -97,7 +101,8 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -106,7 +111,8 @@ public Response getNullWithResponse(RequestOptions requestOptions) {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -126,7 +132,8 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -135,7 +142,8 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringAsyncClient.java index a7a9cfdb5f..4bf0b0b289 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringAsyncClient.java @@ -43,14 +43,16 @@ public final class CollectionsStringAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,14 +72,16 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -97,14 +101,16 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -124,14 +130,16 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringClient.java b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringClient.java index 3329a9e430..765436ad61 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/CollectionsStringClient.java @@ -41,14 +41,16 @@ public final class CollectionsStringClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,14 +69,16 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,14 +97,16 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -120,14 +126,16 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationAsyncClient.java index ef61ca233d..111fa21db2 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationAsyncClient.java @@ -43,12 +43,14 @@ public final class DatetimeOperationAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,12 +70,14 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,12 +97,14 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -118,12 +124,14 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationClient.java b/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationClient.java index dfeb42ff6e..eb6b02021a 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/DatetimeOperationClient.java @@ -41,12 +41,14 @@ public final class DatetimeOperationClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -89,12 +93,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,12 +120,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationAsyncClient.java index 3766704382..64ee458842 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationAsyncClient.java @@ -43,12 +43,14 @@ public final class DurationOperationAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,12 +70,14 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,12 +97,14 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -118,12 +124,14 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationClient.java b/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationClient.java index e3a7cd47fb..156702a2ba 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/DurationOperationClient.java @@ -41,12 +41,14 @@ public final class DurationOperationClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -89,12 +93,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,12 +120,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/NullableClientBuilder.java b/typespec-tests/src/main/java/com/type/property/nullable/NullableClientBuilder.java index 2fd8684062..eb276198db 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/NullableClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/NullableClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/property/nullable/StringOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/nullable/StringOperationAsyncClient.java index 64cc982cfb..f8af0a5cd7 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/StringOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/StringOperationAsyncClient.java @@ -43,12 +43,14 @@ public final class StringOperationAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,12 +70,14 @@ public Mono> getNonNullWithResponse(RequestOptions requestO * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -93,12 +97,14 @@ public Mono> getNullWithResponse(RequestOptions requestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -118,12 +124,14 @@ public Mono> patchNonNullWithResponse(BinaryData body, RequestOpt * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/StringOperationClient.java b/typespec-tests/src/main/java/com/type/property/nullable/StringOperationClient.java index 3ec28d6f8a..0733060e5f 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/StringOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/StringOperationClient.java @@ -41,12 +41,14 @@ public final class StringOperationClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,12 +67,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -89,12 +93,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,12 +120,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/BytesImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/BytesImpl.java index a84d26ea0f..9028dc56ac 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/BytesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/BytesImpl.java @@ -139,12 +139,14 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,12 +167,14 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -189,12 +193,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -215,12 +221,14 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -239,12 +247,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -265,12 +275,14 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -290,12 +302,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -316,12 +330,14 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: byte[] (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsBytesImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsBytesImpl.java index 6d1cccfcbd..61605cd603 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsBytesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsBytesImpl.java @@ -140,14 +140,16 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -168,14 +170,16 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -194,14 +198,16 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -222,14 +228,16 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -248,14 +256,16 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -276,14 +286,16 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -303,14 +315,16 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -331,14 +345,16 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         byte[] (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsModelsImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsModelsImpl.java index c1d453e103..4778c8696b 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsModelsImpl.java @@ -140,7 +140,8 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -149,7 +150,8 @@ Response patchNullSync(@HostParam("endpoint") String endpoint,
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -170,7 +172,8 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -179,7 +182,8 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -198,7 +202,8 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -207,7 +212,8 @@ public Response getNonNullWithResponse(RequestOptions requestOptions
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -228,7 +234,8 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -237,7 +244,8 @@ public Mono> getNullWithResponseAsync(RequestOptions reques
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -256,7 +264,8 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -265,7 +274,8 @@ public Response getNullWithResponse(RequestOptions requestOptions) {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -286,7 +296,8 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -295,7 +306,8 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -315,7 +327,8 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -324,7 +337,8 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -345,7 +359,8 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
@@ -354,7 +369,8 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsStringsImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsStringsImpl.java index d6cd65ef09..9fc1973c55 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/CollectionsStringsImpl.java @@ -140,14 +140,16 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -168,14 +170,16 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -194,14 +198,16 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -222,14 +228,16 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -248,14 +256,16 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -276,14 +286,16 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -303,14 +315,16 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -331,14 +345,16 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty (Optional, Required on create): [
      *         String (Optional, Required on create)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/DatetimeOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/DatetimeOperationsImpl.java index d4356df4d4..31599fab60 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/DatetimeOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/DatetimeOperationsImpl.java @@ -140,12 +140,14 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -166,12 +168,14 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -190,12 +194,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,12 +222,14 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -240,12 +248,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -266,12 +276,14 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -291,12 +303,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -317,12 +331,14 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: OffsetDateTime (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/DurationOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/DurationOperationsImpl.java index c4f14ababb..02ac58edd2 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/DurationOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/DurationOperationsImpl.java @@ -140,12 +140,14 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -166,12 +168,14 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -190,12 +194,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,12 +222,14 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -240,12 +248,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -266,12 +276,14 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -291,12 +303,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -317,12 +331,14 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: Duration (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/nullable/implementation/StringOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/nullable/implementation/StringOperationsImpl.java index c4b61dcb84..8f731489c4 100644 --- a/typespec-tests/src/main/java/com/type/property/nullable/implementation/StringOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/nullable/implementation/StringOperationsImpl.java @@ -140,12 +140,14 @@ Response patchNullSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -166,12 +168,14 @@ public Mono> getNonNullWithResponseAsync(RequestOptions req * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -190,12 +194,14 @@ public Response getNonNullWithResponse(RequestOptions requestOptions * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,12 +222,14 @@ public Mono> getNullWithResponseAsync(RequestOptions reques * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -240,12 +248,14 @@ public Response getNullWithResponse(RequestOptions requestOptions) { * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -266,12 +276,14 @@ public Mono> patchNonNullWithResponseAsync(BinaryData body, Reque * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -291,12 +303,14 @@ public Response patchNonNullWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -317,12 +331,14 @@ public Mono> patchNullWithResponseAsync(BinaryData body, RequestO * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     requiredProperty: String (Optional, Required on create)
      *     nullableProperty: String (Optional, Required on create)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralAsyncClient.java index 1b744de174..89a148dfe6 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class BooleanLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralClient.java index aedbc41fb2..00b2fd3fff 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/BooleanLiteralClient.java @@ -40,11 +40,13 @@ public final class BooleanLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/BytesAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/BytesAsyncClient.java index ff4076bdd3..1efd076443 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/BytesAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/BytesAsyncClient.java @@ -42,11 +42,13 @@ public final class BytesAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/BytesClient.java b/typespec-tests/src/main/java/com/type/property/optional/BytesClient.java index e9a0400de8..42b8b6e6ee 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/BytesClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/BytesClient.java @@ -40,11 +40,13 @@ public final class BytesClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteAsyncClient.java index 82c01f6a28..e64e37b661 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteAsyncClient.java @@ -42,13 +42,15 @@ public final class CollectionsByteAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,13 +70,15 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -94,13 +98,15 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -120,13 +126,15 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteClient.java b/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteClient.java index 082eef861c..488e58a3ad 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/CollectionsByteClient.java @@ -40,13 +40,15 @@ public final class CollectionsByteClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,13 +67,15 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,13 +94,15 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -116,13 +122,15 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelAsyncClient.java index baf2f7a094..35934b3880 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelAsyncClient.java @@ -42,7 +42,8 @@ public final class CollectionsModelAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -50,7 +51,8 @@ public final class CollectionsModelAsyncClient {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -78,7 +81,8 @@ public Mono> getAllWithResponse(RequestOptions requestOptio
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -98,7 +102,8 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -106,7 +111,8 @@ public Mono> getDefaultWithResponse(RequestOptions requestO
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -126,7 +132,8 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -134,7 +141,8 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelClient.java b/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelClient.java index 4a2f838215..0674207990 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/CollectionsModelClient.java @@ -40,7 +40,8 @@ public final class CollectionsModelClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -48,7 +49,8 @@ public final class CollectionsModelClient {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -75,7 +78,8 @@ public Response getAllWithResponse(RequestOptions requestOptions) {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -94,7 +98,8 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -102,7 +107,8 @@ public Response getDefaultWithResponse(RequestOptions requestOptions
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -122,7 +128,8 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -130,7 +137,8 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationAsyncClient.java index 76b0916466..34e20328b5 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class DatetimeOperationAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationClient.java b/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationClient.java index 7707ac2dd6..6396c7ad1b 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/DatetimeOperationClient.java @@ -40,11 +40,13 @@ public final class DatetimeOperationClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/DurationOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/DurationOperationAsyncClient.java index 2e0543ca46..4fef8aefab 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/DurationOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/DurationOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class DurationOperationAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/DurationOperationClient.java b/typespec-tests/src/main/java/com/type/property/optional/DurationOperationClient.java index 276c91e42c..e66c073be7 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/DurationOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/DurationOperationClient.java @@ -40,11 +40,13 @@ public final class DurationOperationClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralAsyncClient.java index a2a5e7e831..26425f8fb6 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class FloatLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralClient.java index 55497ed2ce..5cc41262bb 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/FloatLiteralClient.java @@ -40,11 +40,13 @@ public final class FloatLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/IntLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/IntLiteralAsyncClient.java index 9054c2ff21..0c415e5355 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/IntLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/IntLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class IntLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/IntLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/IntLiteralClient.java index 9df5a7c453..ccf893f382 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/IntLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/IntLiteralClient.java @@ -40,11 +40,13 @@ public final class IntLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/OptionalClientBuilder.java b/typespec-tests/src/main/java/com/type/property/optional/OptionalClientBuilder.java index 10051d33c8..54689e66bd 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/OptionalClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/property/optional/OptionalClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/property/optional/PlainDateAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/PlainDateAsyncClient.java index 69a3a90fd7..d44bf7b00b 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/PlainDateAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/PlainDateAsyncClient.java @@ -42,11 +42,13 @@ public final class PlainDateAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/PlainDateClient.java b/typespec-tests/src/main/java/com/type/property/optional/PlainDateClient.java index 50abcca5eb..2d11f95198 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/PlainDateClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/PlainDateClient.java @@ -40,11 +40,13 @@ public final class PlainDateClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/PlainTimeAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/PlainTimeAsyncClient.java index 25736b8d8f..e4126d4bcc 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/PlainTimeAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/PlainTimeAsyncClient.java @@ -42,11 +42,13 @@ public final class PlainTimeAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/PlainTimeClient.java b/typespec-tests/src/main/java/com/type/property/optional/PlainTimeClient.java index 1b8d867dc4..58f0a38d33 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/PlainTimeClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/PlainTimeClient.java @@ -40,11 +40,13 @@ public final class PlainTimeClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalAsyncClient.java index 9f9d8c40f4..9277573e92 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalAsyncClient.java @@ -42,12 +42,14 @@ public final class RequiredAndOptionalAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,12 +69,14 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return only the required properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -92,12 +96,14 @@ public Mono> getRequiredOnlyWithResponse(RequestOptions req * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -117,12 +123,14 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with only required properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalClient.java b/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalClient.java index f617bed9c6..e53693f4f8 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/RequiredAndOptionalClient.java @@ -40,12 +40,14 @@ public final class RequiredAndOptionalClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,12 +66,14 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return only the required properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -88,12 +92,14 @@ public Response getRequiredOnlyWithResponse(RequestOptions requestOp * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -113,12 +119,14 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with only required properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/StringLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/StringLiteralAsyncClient.java index 8738ca2114..70ce437de5 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/StringLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/StringLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class StringLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/StringLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/StringLiteralClient.java index 9d9edb2a08..61ad58168d 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/StringLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/StringLiteralClient.java @@ -40,11 +40,13 @@ public final class StringLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/StringOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/StringOperationAsyncClient.java index ccb6ab14d8..abdb88d12b 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/StringOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/StringOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class StringOperationAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/StringOperationClient.java b/typespec-tests/src/main/java/com/type/property/optional/StringOperationClient.java index f5a89b6b7c..7c9c493ab0 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/StringOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/StringOperationClient.java @@ -40,11 +40,13 @@ public final class StringOperationClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralAsyncClient.java index c1a677f4f3..8e9c9043ce 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionFloatLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralClient.java index d73101ed7b..ead25a8316 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/UnionFloatLiteralClient.java @@ -40,11 +40,13 @@ public final class UnionFloatLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralAsyncClient.java index 0d026ff1c4..64ea2a37bc 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionIntLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralClient.java index 0e32a129ab..0b825f46e0 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/UnionIntLiteralClient.java @@ -40,11 +40,13 @@ public final class UnionIntLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralAsyncClient.java index 34e9fd00fa..c69bbc97e1 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionStringLiteralAsyncClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getAllWithResponse(RequestOptions requestOptio * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -90,11 +94,13 @@ public Mono> getDefaultWithResponse(RequestOptions requestO * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -114,11 +120,13 @@ public Mono> putAllWithResponse(BinaryData body, RequestOptions r * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralClient.java b/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralClient.java index c2965da697..0ccf8049e8 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/optional/UnionStringLiteralClient.java @@ -40,11 +40,13 @@ public final class UnionStringLiteralClient { * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -86,11 +90,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -110,11 +116,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/BooleanLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/BooleanLiteralsImpl.java index e417d0f075..83945ce62c 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/BooleanLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/BooleanLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(true) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/BytesImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/BytesImpl.java index 4aa5b0e291..7b9bc5dfbf 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/BytesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/BytesImpl.java @@ -139,11 +139,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -164,11 +166,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -187,11 +191,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -212,11 +218,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -235,11 +243,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -260,11 +270,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -284,11 +296,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -309,11 +323,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsBytesImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsBytesImpl.java index bc22af5f7d..f600f24b8e 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsBytesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsBytesImpl.java @@ -140,13 +140,15 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,13 +169,15 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -192,13 +196,15 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -219,13 +225,15 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -244,13 +252,15 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -271,13 +281,15 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -297,13 +309,15 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -324,13 +338,15 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *         byte[] (Optional)
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsModelsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsModelsImpl.java index f83f9c9443..7e1a9f10c5 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/CollectionsModelsImpl.java @@ -140,7 +140,8 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -148,7 +149,8 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint,
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -169,7 +171,8 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -177,7 +180,8 @@ public Mono> getAllWithResponseAsync(RequestOptions request
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -196,7 +200,8 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -204,7 +209,8 @@ public Response getAllWithResponse(RequestOptions requestOptions) {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -225,7 +231,8 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -233,7 +240,8 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -252,7 +260,8 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -260,7 +269,8 @@ public Response getDefaultWithResponse(RequestOptions requestOptions
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -281,7 +291,8 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -289,7 +300,8 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -309,7 +321,8 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -317,7 +330,8 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -338,7 +352,8 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Optional): [
      *          (Optional){
@@ -346,7 +361,8 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/DatetimeOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/DatetimeOperationsImpl.java index 538f44b6fe..2a16ed0c68 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/DatetimeOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/DatetimeOperationsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/DurationOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/DurationOperationsImpl.java index 3931d71c30..3608622c28 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/DurationOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/DurationOperationsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/FloatLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/FloatLiteralsImpl.java index 3b6a473338..44911d2586 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/FloatLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/FloatLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/IntLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/IntLiteralsImpl.java index 672e4db8c6..da33c99508 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/IntLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/IntLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainDatesImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainDatesImpl.java index c971409575..9aa124db11 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainDatesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainDatesImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: LocalDate (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainTimesImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainTimesImpl.java index 12a0ebd724..adba6c0ebf 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainTimesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/PlainTimesImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/RequiredAndOptionalsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/RequiredAndOptionalsImpl.java index 4e6d033bea..00bdcb01f6 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/RequiredAndOptionalsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/RequiredAndOptionalsImpl.java @@ -140,12 +140,14 @@ Response putRequiredOnlySync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -166,12 +168,14 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -190,12 +194,14 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return only the required properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,12 +222,14 @@ public Mono> getRequiredOnlyWithResponseAsync(RequestOption * Get models that will return only the required properties. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -240,12 +248,14 @@ public Response getRequiredOnlyWithResponse(RequestOptions requestOp * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -266,12 +276,14 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -291,12 +303,14 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with only required properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -317,12 +331,14 @@ public Mono> putRequiredOnlyWithResponseAsync(BinaryData body, Re * Put a body with only required properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     optionalProperty: String (Optional)
      *     requiredProperty: int (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/StringLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/StringLiteralsImpl.java index 7eb0af857e..57bd4f7e48 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/StringLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/StringLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/StringOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/StringOperationsImpl.java index e75323f134..5fcd29b9fa 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/StringOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/StringOperationsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionFloatLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionFloatLiteralsImpl.java index 2d6f4c8971..dde6dcc29c 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionFloatLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionFloatLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1.25/2.375) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionIntLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionIntLiteralsImpl.java index 1f032a817c..208304a2d3 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionIntLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionIntLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(1/2) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionStringLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionStringLiteralsImpl.java index f3269df466..4ee9622666 100644 --- a/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionStringLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/optional/implementation/UnionStringLiteralsImpl.java @@ -140,11 +140,13 @@ Response putDefaultSync(@HostParam("endpoint") String endpoint, * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,11 +167,13 @@ public Mono> getAllWithResponseAsync(RequestOptions request * Get models that will return all properties in the model. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -188,11 +192,13 @@ public Response getAllWithResponse(RequestOptions requestOptions) { * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -213,11 +219,13 @@ public Mono> getDefaultWithResponseAsync(RequestOptions req * Get models that will return the default object. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -236,11 +244,13 @@ public Response getDefaultWithResponse(RequestOptions requestOptions * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -261,11 +271,13 @@ public Mono> putAllWithResponseAsync(BinaryData body, RequestOpti * Put a body with all properties present. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -285,11 +297,13 @@ public Response putAllWithResponse(BinaryData body, RequestOptions request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -310,11 +324,13 @@ public Mono> putDefaultWithResponseAsync(BinaryData body, Request * Put a body with default properties. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralAsyncClient.java index b6af04d1cb..2b0172a191 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class BooleanLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralClient.java index 6b0a528a29..776e488a2a 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanLiteralClient.java @@ -40,11 +40,13 @@ public final class BooleanLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationAsyncClient.java index ab3775f865..fe9076ca76 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class BooleanOperationAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationClient.java index d4e7f5dd02..e4d643722c 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/BooleanOperationClient.java @@ -40,11 +40,13 @@ public final class BooleanOperationClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/BytesAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/BytesAsyncClient.java index dd79a17a7b..a8f09e8fe2 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/BytesAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/BytesAsyncClient.java @@ -42,11 +42,13 @@ public final class BytesAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/BytesClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/BytesClient.java index d3615f65a8..13aa277155 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/BytesClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/BytesClient.java @@ -40,11 +40,13 @@ public final class BytesClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntAsyncClient.java index 2828e55a22..6dbbeac71d 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntAsyncClient.java @@ -42,13 +42,15 @@ public final class CollectionsIntAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,13 +69,15 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntClient.java index 0d3b0442ec..87b77b688e 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsIntClient.java @@ -40,13 +40,15 @@ public final class CollectionsIntClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,13 +67,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelAsyncClient.java index b193658be3..5b4ee14e16 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelAsyncClient.java @@ -42,7 +42,8 @@ public final class CollectionsModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -50,7 +51,8 @@ public final class CollectionsModelAsyncClient {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -69,7 +71,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -77,7 +80,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelClient.java index 5ba3a996dc..aeb36793f0 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsModelClient.java @@ -40,7 +40,8 @@ public final class CollectionsModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -48,7 +49,8 @@ public final class CollectionsModelClient {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,7 +69,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -75,7 +78,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringAsyncClient.java index c4d33d5d27..b722bed290 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringAsyncClient.java @@ -42,13 +42,15 @@ public final class CollectionsStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,13 +69,15 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringClient.java index 18405b33ee..96ac3e7b5f 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/CollectionsStringClient.java @@ -40,13 +40,15 @@ public final class CollectionsStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,13 +67,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationAsyncClient.java index 421c87f118..ddf1aabb9c 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class DatetimeOperationAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationClient.java index 4c2c29ea5e..a8f642e548 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DatetimeOperationClient.java @@ -40,11 +40,13 @@ public final class DatetimeOperationClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128AsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128AsyncClient.java index bbb25640c2..aaea530f26 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128AsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128AsyncClient.java @@ -42,11 +42,13 @@ public final class Decimal128AsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128Client.java b/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128Client.java index 6b2e7e0b79..e2cae04152 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128Client.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/Decimal128Client.java @@ -40,11 +40,13 @@ public final class Decimal128Client { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalAsyncClient.java index 10495283a2..6828dfb914 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalAsyncClient.java @@ -42,11 +42,13 @@ public final class DecimalAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalClient.java index f3f2223231..006b580647 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DecimalClient.java @@ -40,11 +40,13 @@ public final class DecimalClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringAsyncClient.java index b776f2e001..ff85df9e84 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringAsyncClient.java @@ -42,13 +42,15 @@ public final class DictionaryStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,13 +69,15 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringClient.java index 0b7e9ca739..0f283a1d21 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DictionaryStringClient.java @@ -40,13 +40,15 @@ public final class DictionaryStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,13 +67,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationAsyncClient.java index bf23710596..b648594b11 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class DurationOperationAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationClient.java index f8452ab301..ebfc557b35 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/DurationOperationClient.java @@ -40,11 +40,13 @@ public final class DurationOperationClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/EnumAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/EnumAsyncClient.java index 6c8d1e4a54..9a6e61107b 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/EnumAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/EnumAsyncClient.java @@ -42,11 +42,13 @@ public final class EnumAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/EnumClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/EnumClient.java index a80ef76bef..98a73f7b9c 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/EnumClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/EnumClient.java @@ -40,11 +40,13 @@ public final class EnumClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumAsyncClient.java index f7dec5b955..c103b28293 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumAsyncClient.java @@ -42,11 +42,13 @@ public final class ExtensibleEnumAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumClient.java index d5085c2041..dd4bbd0032 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/ExtensibleEnumClient.java @@ -40,11 +40,13 @@ public final class ExtensibleEnumClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralAsyncClient.java index 8079183e5b..84ab7fd7ed 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class FloatLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralClient.java index 2ff74c5840..e7ad362463 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatLiteralClient.java @@ -40,11 +40,13 @@ public final class FloatLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationAsyncClient.java index a2ce50e823..b6d0dd59fe 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class FloatOperationAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationClient.java index fb2acae468..d5885e8e4b 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/FloatOperationClient.java @@ -40,11 +40,13 @@ public final class FloatOperationClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/IntAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/IntAsyncClient.java index 58bfa7d20b..c4d906c76c 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/IntAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/IntAsyncClient.java @@ -42,11 +42,13 @@ public final class IntAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/IntClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/IntClient.java index 5af2cc2da9..b55272b92a 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/IntClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/IntClient.java @@ -40,11 +40,13 @@ public final class IntClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralAsyncClient.java index 5e47bc9325..5e0ef5e57b 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class IntLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralClient.java index 60d67a57bf..755a581d24 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/IntLiteralClient.java @@ -40,11 +40,13 @@ public final class IntLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/ModelAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/ModelAsyncClient.java index c75310c16e..7919d0e18e 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/ModelAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/ModelAsyncClient.java @@ -42,13 +42,15 @@ public final class ModelAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,13 +69,15 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/ModelClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/ModelClient.java index 9e9cba4588..0b6183336d 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/ModelClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/ModelClient.java @@ -40,13 +40,15 @@ public final class ModelClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,13 +67,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/NeverAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/NeverAsyncClient.java index a2dfced927..c099a519f8 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/NeverAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/NeverAsyncClient.java @@ -42,9 +42,12 @@ public final class NeverAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +66,12 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/NeverClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/NeverClient.java index 27bb34204f..3d923a5433 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/NeverClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/NeverClient.java @@ -40,9 +40,12 @@ public final class NeverClient { * Get call. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +64,12 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralAsyncClient.java index 89e6d85cc4..a2898c3000 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class StringLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralClient.java index 6e7d29ce62..d81c08c509 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/StringLiteralClient.java @@ -40,11 +40,13 @@ public final class StringLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationAsyncClient.java index f1208deeb2..360bfc7637 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationAsyncClient.java @@ -42,11 +42,13 @@ public final class StringOperationAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationClient.java index a11dfddc54..c93bc84589 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/StringOperationClient.java @@ -40,11 +40,13 @@ public final class StringOperationClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueAsyncClient.java index 52d1903389..b356963219 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionEnumValueAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueClient.java index a1503da5fc..0a8d8f5d36 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionEnumValueClient.java @@ -40,11 +40,13 @@ public final class UnionEnumValueClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralAsyncClient.java index 160e23a08e..cbe327be8f 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionFloatLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralClient.java index 5ce4c1c405..b640445fb0 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionFloatLiteralClient.java @@ -40,11 +40,13 @@ public final class UnionFloatLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralAsyncClient.java index 4855784b53..4dbefaf693 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionIntLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralClient.java index d570a5aa5e..a13ea33905 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionIntLiteralClient.java @@ -40,11 +40,13 @@ public final class UnionIntLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralAsyncClient.java index e64dcb9244..52d62a339d 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralAsyncClient.java @@ -42,11 +42,13 @@ public final class UnionStringLiteralAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralClient.java index 933d39b0bd..4a5f4389d2 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnionStringLiteralClient.java @@ -40,11 +40,13 @@ public final class UnionStringLiteralClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayAsyncClient.java index 770b3d5ee5..d4790bc11f 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayAsyncClient.java @@ -42,11 +42,13 @@ public final class UnknownArrayAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayClient.java index a085998120..95110ad034 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownArrayClient.java @@ -40,11 +40,13 @@ public final class UnknownArrayClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictAsyncClient.java index 9460b676df..2b0b886a48 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictAsyncClient.java @@ -42,11 +42,13 @@ public final class UnknownDictAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictClient.java index 754d29a11e..70ffdc7515 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownDictClient.java @@ -40,11 +40,13 @@ public final class UnknownDictClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntAsyncClient.java index 6dab5dae36..e24ec558cd 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntAsyncClient.java @@ -42,11 +42,13 @@ public final class UnknownIntAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntClient.java index 1e8e38cbd0..4fb4f779f4 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownIntClient.java @@ -40,11 +40,13 @@ public final class UnknownIntClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringAsyncClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringAsyncClient.java index e8a87af736..621b79b51f 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringAsyncClient.java @@ -42,11 +42,13 @@ public final class UnknownStringAsyncClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringClient.java b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringClient.java index f4f9faf52f..e4db8f81e4 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringClient.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/UnknownStringClient.java @@ -40,11 +40,13 @@ public final class UnknownStringClient { * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,11 +65,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/ValueTypesClientBuilder.java b/typespec-tests/src/main/java/com/type/property/valuetypes/ValueTypesClientBuilder.java index c08bd9971f..0234c3fee7 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/ValueTypesClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/ValueTypesClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanLiteralsImpl.java index 5848e3691d..e067210076 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanOperationsImpl.java index 9afe0ace2c..81c77293c3 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BooleanOperationsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: boolean (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BytesImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BytesImpl.java index 517428e4ca..2eab421edf 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BytesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/BytesImpl.java @@ -100,11 +100,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,11 +125,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -146,11 +150,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -171,11 +177,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: byte[] (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsIntsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsIntsImpl.java index a91f37333d..be17e92264 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsIntsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsIntsImpl.java @@ -101,13 +101,15 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,13 +128,15 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -151,13 +155,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -178,13 +184,15 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         int (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsModelsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsModelsImpl.java index 791cce1929..be90464f51 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsModelsImpl.java @@ -101,7 +101,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -109,7 +110,8 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -128,7 +130,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -136,7 +139,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -155,7 +159,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -163,7 +168,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -184,7 +190,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *          (Required){
@@ -192,7 +199,8 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions
      *         }
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsStringsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsStringsImpl.java index a67d59771e..b3b3cb9967 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/CollectionsStringsImpl.java @@ -101,13 +101,15 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,13 +128,15 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -151,13 +155,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -178,13 +184,15 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): [
      *         String (Required)
      *     ]
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DatetimeOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DatetimeOperationsImpl.java index 592c4019b5..86895d3f89 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DatetimeOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DatetimeOperationsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: OffsetDateTime (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/Decimal128sImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/Decimal128sImpl.java index b7a90b185b..5f8475499e 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/Decimal128sImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/Decimal128sImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DecimalsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DecimalsImpl.java index 9de39e4d74..5758884cce 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DecimalsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DecimalsImpl.java @@ -100,11 +100,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,11 +125,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -146,11 +150,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -171,11 +177,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: BigDecimal (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DictionaryStringsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DictionaryStringsImpl.java index e9bbea5562..a12db79943 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DictionaryStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DictionaryStringsImpl.java @@ -101,13 +101,15 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,13 +128,15 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -151,13 +155,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -178,13 +184,15 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         String: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DurationOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DurationOperationsImpl.java index cdf87b14a1..b51b144ad1 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DurationOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/DurationOperationsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Duration (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/EnumsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/EnumsImpl.java index f62709f9d9..05d0e9eb60 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/EnumsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/EnumsImpl.java @@ -100,11 +100,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,11 +125,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -146,11 +150,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -171,11 +177,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ExtensibleEnumsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ExtensibleEnumsImpl.java index 6146f83517..b34533c12e 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ExtensibleEnumsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ExtensibleEnumsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(ValueOne/ValueTwo) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatLiteralsImpl.java index bd4c5042b2..48ce9409fe 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatOperationsImpl.java index 4cc17f7625..501289eb6d 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/FloatOperationsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: double (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntLiteralsImpl.java index 2449786fd0..fafa69191e 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntsImpl.java index 0a68ae4beb..c7a9bd1275 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/IntsImpl.java @@ -100,11 +100,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -123,11 +125,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -146,11 +150,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -171,11 +177,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: int (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ModelsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ModelsImpl.java index 04d5f18673..e80eacd4bc 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ModelsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/ModelsImpl.java @@ -100,13 +100,15 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -125,13 +127,15 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -150,13 +154,15 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -177,13 +183,15 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property (Required): {
      *         property: String (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/NeversImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/NeversImpl.java index ab363c68ce..dcdb9ec822 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/NeversImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/NeversImpl.java @@ -100,9 +100,12 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -121,9 +124,12 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -142,9 +148,12 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -165,9 +174,12 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
-     * { }
-     * }
+ *
+     * {@code
+     * {
+     * }
+     * }
+     * 
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringLiteralsImpl.java index f0cfae22a2..31d737cacc 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringOperationsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringOperationsImpl.java index 437a592659..ee99cd3b2d 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/StringOperationsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionEnumValuesImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionEnumValuesImpl.java index c18f9dc2cc..cfe4f57d89 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionEnumValuesImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionEnumValuesImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(value2) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionFloatLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionFloatLiteralsImpl.java index c587c7094b..7a660fbe13 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionFloatLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionFloatLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(43.125/46.875) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionIntLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionIntLiteralsImpl.java index 47b1c3216d..9ec76d9d50 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionIntLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionIntLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(42/43) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionStringLiteralsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionStringLiteralsImpl.java index d9176261b9..176f1656ec 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionStringLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnionStringLiteralsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: String(hello/world) (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownArraysImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownArraysImpl.java index 5e0ce54caa..4ac8441486 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownArraysImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownDictsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownDictsImpl.java index ddf7456a9e..831dc9fde6 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownDictsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownDictsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownIntsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownIntsImpl.java index c805517099..c98aa02864 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownIntsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownIntsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownStringsImpl.java b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownStringsImpl.java index 9d8d1b6204..b70d9fbd61 100644 --- a/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownStringsImpl.java +++ b/typespec-tests/src/main/java/com/type/property/valuetypes/implementation/UnknownStringsImpl.java @@ -101,11 +101,13 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * Get call. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * Put operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     property: Object (Required)
      * }
-     * }
+ * } + *
* * @param body body. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/BooleanOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/BooleanOperationAsyncClient.java index d5d00b8319..15a8168a8f 100644 --- a/typespec-tests/src/main/java/com/type/scalar/BooleanOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/BooleanOperationAsyncClient.java @@ -41,9 +41,11 @@ public final class BooleanOperationAsyncClient { * get boolean value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> getWithResponse(RequestOptions requestOptions) * put boolean value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/BooleanOperationClient.java b/typespec-tests/src/main/java/com/type/scalar/BooleanOperationClient.java index b3765fc21e..7c0e38940d 100644 --- a/typespec-tests/src/main/java/com/type/scalar/BooleanOperationClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/BooleanOperationClient.java @@ -39,9 +39,11 @@ public final class BooleanOperationClient { * get boolean value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put boolean value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeAsyncClient.java index 1afee86e35..83589d5a4e 100644 --- a/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeAsyncClient.java @@ -42,9 +42,11 @@ public final class Decimal128TypeAsyncClient { * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -63,9 +65,11 @@ public Mono> responseBodyWithResponse(RequestOptions reques * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeClient.java b/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeClient.java index 24ab91b98e..c0cb23e9cc 100644 --- a/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/Decimal128TypeClient.java @@ -40,9 +40,11 @@ public final class Decimal128TypeClient { * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response responseBodyWithResponse(RequestOptions requestOptio * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyAsyncClient.java index c915c73540..1aa3b9034d 100644 --- a/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyAsyncClient.java @@ -44,11 +44,13 @@ public final class Decimal128VerifyAsyncClient { * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,9 +69,11 @@ public Mono> prepareVerifyWithResponse(RequestOptions reque * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyClient.java b/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyClient.java index a25aaf989a..8d7d87ce6d 100644 --- a/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/Decimal128VerifyClient.java @@ -42,11 +42,13 @@ public final class Decimal128VerifyClient { * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,9 +67,11 @@ public Response prepareVerifyWithResponse(RequestOptions requestOpti * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/DecimalTypeAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/DecimalTypeAsyncClient.java index 4d5ef15e15..d0bea9a8cb 100644 --- a/typespec-tests/src/main/java/com/type/scalar/DecimalTypeAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/DecimalTypeAsyncClient.java @@ -42,9 +42,11 @@ public final class DecimalTypeAsyncClient { * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,9 +66,11 @@ public Mono> responseBodyWithResponse(RequestOptions reques * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/DecimalTypeClient.java b/typespec-tests/src/main/java/com/type/scalar/DecimalTypeClient.java index 983c89deee..74a93912ae 100644 --- a/typespec-tests/src/main/java/com/type/scalar/DecimalTypeClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/DecimalTypeClient.java @@ -40,9 +40,11 @@ public final class DecimalTypeClient { * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -61,9 +63,11 @@ public Response responseBodyWithResponse(RequestOptions requestOptio * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyAsyncClient.java index 64bd4b28d8..bd44c79412 100644 --- a/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyAsyncClient.java @@ -44,11 +44,13 @@ public final class DecimalVerifyAsyncClient { * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,9 +69,11 @@ public Mono> prepareVerifyWithResponse(RequestOptions reque * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyClient.java b/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyClient.java index d865fc9a59..43f71962d3 100644 --- a/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/DecimalVerifyClient.java @@ -42,11 +42,13 @@ public final class DecimalVerifyClient { * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,9 +67,11 @@ public Response prepareVerifyWithResponse(RequestOptions requestOpti * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/ScalarClientBuilder.java b/typespec-tests/src/main/java/com/type/scalar/ScalarClientBuilder.java index 8b71294c9a..2dcb3e76ea 100644 --- a/typespec-tests/src/main/java/com/type/scalar/ScalarClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/scalar/ScalarClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/scalar/StringOperationAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/StringOperationAsyncClient.java index a08bd9dfcd..c92a19a4e3 100644 --- a/typespec-tests/src/main/java/com/type/scalar/StringOperationAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/StringOperationAsyncClient.java @@ -41,9 +41,11 @@ public final class StringOperationAsyncClient { * get string value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> getWithResponse(RequestOptions requestOptions) * put string value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/StringOperationClient.java b/typespec-tests/src/main/java/com/type/scalar/StringOperationClient.java index f3b4f77150..0a396ad774 100644 --- a/typespec-tests/src/main/java/com/type/scalar/StringOperationClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/StringOperationClient.java @@ -39,9 +39,11 @@ public final class StringOperationClient { * get string value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put string value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/UnknownAsyncClient.java b/typespec-tests/src/main/java/com/type/scalar/UnknownAsyncClient.java index 1a0c97e690..d5bc0cd60f 100644 --- a/typespec-tests/src/main/java/com/type/scalar/UnknownAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/UnknownAsyncClient.java @@ -41,9 +41,11 @@ public final class UnknownAsyncClient { * get unknown value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -62,9 +64,11 @@ public Mono> getWithResponse(RequestOptions requestOptions) * put unknown value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/UnknownClient.java b/typespec-tests/src/main/java/com/type/scalar/UnknownClient.java index 6a09092ec3..79940e7c8b 100644 --- a/typespec-tests/src/main/java/com/type/scalar/UnknownClient.java +++ b/typespec-tests/src/main/java/com/type/scalar/UnknownClient.java @@ -39,9 +39,11 @@ public final class UnknownClient { * get unknown value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -60,9 +62,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put unknown value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/BooleanOperationsImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/BooleanOperationsImpl.java index de2b4533c8..76259863c5 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/BooleanOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/BooleanOperationsImpl.java @@ -101,9 +101,11 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * get boolean value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -122,9 +124,11 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * get boolean value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -143,9 +147,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put boolean value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -166,9 +172,11 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * put boolean value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * boolean
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128TypesImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128TypesImpl.java index 485753a5ae..117827b3a3 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128TypesImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128TypesImpl.java @@ -122,9 +122,11 @@ Response requestParameterSync(@HostParam("endpoint") String endpoint, * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -144,9 +146,11 @@ public Mono> responseBodyWithResponseAsync(RequestOptions r * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -165,9 +169,11 @@ public Response responseBodyWithResponse(RequestOptions requestOptio * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -188,9 +194,11 @@ public Mono> requestBodyWithResponseAsync(BinaryData body, Reques * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128VerifiesImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128VerifiesImpl.java index 60333b6446..2fd2cde7c6 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128VerifiesImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/Decimal128VerifiesImpl.java @@ -102,11 +102,13 @@ Response verifySync(@HostParam("endpoint") String endpoint, * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,11 +128,13 @@ public Mono> prepareVerifyWithResponseAsync(RequestOptions * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -149,9 +153,11 @@ public Response prepareVerifyWithResponse(RequestOptions requestOpti * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,9 +178,11 @@ public Mono> verifyWithResponseAsync(BinaryData body, RequestOpti * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalTypesImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalTypesImpl.java index f4883c57e8..9f1555ffe8 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalTypesImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalTypesImpl.java @@ -122,9 +122,11 @@ Response requestParameterSync(@HostParam("endpoint") String endpoint, * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -145,9 +147,11 @@ public Mono> responseBodyWithResponseAsync(RequestOptions r * The responseBody operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -166,9 +170,11 @@ public Response responseBodyWithResponse(RequestOptions requestOptio * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -189,9 +195,11 @@ public Mono> requestBodyWithResponseAsync(BinaryData body, Reques * The requestBody operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalVerifiesImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalVerifiesImpl.java index a74d656a76..2e90a249c7 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalVerifiesImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/DecimalVerifiesImpl.java @@ -102,11 +102,13 @@ Response verifySync(@HostParam("endpoint") String endpoint, * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -126,11 +128,13 @@ public Mono> prepareVerifyWithResponseAsync(RequestOptions * The prepareVerify operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * [
      *     BigDecimal (Required)
      * ]
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -149,9 +153,11 @@ public Response prepareVerifyWithResponse(RequestOptions requestOpti * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,9 +178,11 @@ public Mono> verifyWithResponseAsync(BinaryData body, RequestOpti * The verify operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * BigDecimal
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/StringOperationsImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/StringOperationsImpl.java index de7b8ad0c7..6a5293759f 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/StringOperationsImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/StringOperationsImpl.java @@ -101,9 +101,11 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * get string value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -122,9 +124,11 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * get string value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -143,9 +147,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put string value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -166,9 +172,11 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * put string value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/scalar/implementation/UnknownsImpl.java b/typespec-tests/src/main/java/com/type/scalar/implementation/UnknownsImpl.java index 584c563198..3bacb57c45 100644 --- a/typespec-tests/src/main/java/com/type/scalar/implementation/UnknownsImpl.java +++ b/typespec-tests/src/main/java/com/type/scalar/implementation/UnknownsImpl.java @@ -100,9 +100,11 @@ Response putSync(@HostParam("endpoint") String endpoint, @HeaderParam("Con * get unknown value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -121,9 +123,11 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * get unknown value. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -142,9 +146,11 @@ public Response getWithResponse(RequestOptions requestOptions) { * put unknown value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -165,9 +171,11 @@ public Mono> putWithResponseAsync(BinaryData body, RequestOptions * put unknown value. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * Object
-     * }
+ * } + *
* * @param body _. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/EnumsOnlyAsyncClient.java b/typespec-tests/src/main/java/com/type/union/EnumsOnlyAsyncClient.java index a3a0c16ae9..0ca4d23542 100644 --- a/typespec-tests/src/main/java/com/type/union/EnumsOnlyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/EnumsOnlyAsyncClient.java @@ -44,14 +44,16 @@ public final class EnumsOnlyAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,14 +72,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest3 The sendRequest3 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/EnumsOnlyClient.java b/typespec-tests/src/main/java/com/type/union/EnumsOnlyClient.java index 9c98e8630b..b471147b1d 100644 --- a/typespec-tests/src/main/java/com/type/union/EnumsOnlyClient.java +++ b/typespec-tests/src/main/java/com/type/union/EnumsOnlyClient.java @@ -42,14 +42,16 @@ public final class EnumsOnlyClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest3 The sendRequest3 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/FloatsOnlyAsyncClient.java b/typespec-tests/src/main/java/com/type/union/FloatsOnlyAsyncClient.java index c7dfaa4e0c..c71b00b106 100644 --- a/typespec-tests/src/main/java/com/type/union/FloatsOnlyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/FloatsOnlyAsyncClient.java @@ -44,11 +44,13 @@ public final class FloatsOnlyAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest5 The sendRequest5 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/FloatsOnlyClient.java b/typespec-tests/src/main/java/com/type/union/FloatsOnlyClient.java index 8c55f70516..9d0e11e4ba 100644 --- a/typespec-tests/src/main/java/com/type/union/FloatsOnlyClient.java +++ b/typespec-tests/src/main/java/com/type/union/FloatsOnlyClient.java @@ -42,11 +42,13 @@ public final class FloatsOnlyClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest5 The sendRequest5 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/IntsOnlyAsyncClient.java b/typespec-tests/src/main/java/com/type/union/IntsOnlyAsyncClient.java index 05cebee5eb..3b371407d3 100644 --- a/typespec-tests/src/main/java/com/type/union/IntsOnlyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/IntsOnlyAsyncClient.java @@ -44,11 +44,13 @@ public final class IntsOnlyAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest6 The sendRequest6 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/IntsOnlyClient.java b/typespec-tests/src/main/java/com/type/union/IntsOnlyClient.java index d902d9d83c..643cf1cd84 100644 --- a/typespec-tests/src/main/java/com/type/union/IntsOnlyClient.java +++ b/typespec-tests/src/main/java/com/type/union/IntsOnlyClient.java @@ -42,11 +42,13 @@ public final class IntsOnlyClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest6 The sendRequest6 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/MixedLiteralsAsyncClient.java b/typespec-tests/src/main/java/com/type/union/MixedLiteralsAsyncClient.java index a4295e1bc7..2664da5d09 100644 --- a/typespec-tests/src/main/java/com/type/union/MixedLiteralsAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/MixedLiteralsAsyncClient.java @@ -44,7 +44,8 @@ public final class MixedLiteralsAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -53,7 +54,8 @@ public final class MixedLiteralsAsyncClient {
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -72,7 +74,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -81,7 +84,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest1 The sendRequest1 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/MixedLiteralsClient.java b/typespec-tests/src/main/java/com/type/union/MixedLiteralsClient.java index da5a728cac..b85958ea44 100644 --- a/typespec-tests/src/main/java/com/type/union/MixedLiteralsClient.java +++ b/typespec-tests/src/main/java/com/type/union/MixedLiteralsClient.java @@ -42,7 +42,8 @@ public final class MixedLiteralsClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -51,7 +52,8 @@ public final class MixedLiteralsClient {
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,7 +72,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -79,7 +82,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest1 The sendRequest1 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/MixedTypesAsyncClient.java b/typespec-tests/src/main/java/com/type/union/MixedTypesAsyncClient.java index 9c68d5f92d..17babb647b 100644 --- a/typespec-tests/src/main/java/com/type/union/MixedTypesAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/MixedTypesAsyncClient.java @@ -44,7 +44,8 @@ public final class MixedTypesAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -56,7 +57,8 @@ public final class MixedTypesAsyncClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -75,7 +77,8 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -87,7 +90,8 @@ public Mono> getWithResponse(RequestOptions requestOptions)
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest The sendRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/MixedTypesClient.java b/typespec-tests/src/main/java/com/type/union/MixedTypesClient.java index 84e732c16f..3c6d2a68a4 100644 --- a/typespec-tests/src/main/java/com/type/union/MixedTypesClient.java +++ b/typespec-tests/src/main/java/com/type/union/MixedTypesClient.java @@ -42,7 +42,8 @@ public final class MixedTypesClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -54,7 +55,8 @@ public final class MixedTypesClient {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -73,7 +75,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -85,7 +88,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest The sendRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/ModelsOnlyAsyncClient.java b/typespec-tests/src/main/java/com/type/union/ModelsOnlyAsyncClient.java index c7cdd0ba3a..bbc7562358 100644 --- a/typespec-tests/src/main/java/com/type/union/ModelsOnlyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/ModelsOnlyAsyncClient.java @@ -43,11 +43,13 @@ public final class ModelsOnlyAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -66,11 +68,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest4 The sendRequest4 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/ModelsOnlyClient.java b/typespec-tests/src/main/java/com/type/union/ModelsOnlyClient.java index 449f17d309..9059b78a05 100644 --- a/typespec-tests/src/main/java/com/type/union/ModelsOnlyClient.java +++ b/typespec-tests/src/main/java/com/type/union/ModelsOnlyClient.java @@ -41,11 +41,13 @@ public final class ModelsOnlyClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -64,11 +66,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest4 The sendRequest4 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringAndArrayAsyncClient.java b/typespec-tests/src/main/java/com/type/union/StringAndArrayAsyncClient.java index 4be4148f82..7fe38a14e2 100644 --- a/typespec-tests/src/main/java/com/type/union/StringAndArrayAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringAndArrayAsyncClient.java @@ -44,14 +44,16 @@ public final class StringAndArrayAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -70,14 +72,16 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest2 The sendRequest2 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringAndArrayClient.java b/typespec-tests/src/main/java/com/type/union/StringAndArrayClient.java index 317d515c65..96116ea660 100644 --- a/typespec-tests/src/main/java/com/type/union/StringAndArrayClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringAndArrayClient.java @@ -42,14 +42,16 @@ public final class StringAndArrayClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -68,14 +70,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest2 The sendRequest2 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringExtensibleAsyncClient.java b/typespec-tests/src/main/java/com/type/union/StringExtensibleAsyncClient.java index da05e0f26f..bb9f3732d1 100644 --- a/typespec-tests/src/main/java/com/type/union/StringExtensibleAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringExtensibleAsyncClient.java @@ -44,11 +44,13 @@ public final class StringExtensibleAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest8 The sendRequest8 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringExtensibleClient.java b/typespec-tests/src/main/java/com/type/union/StringExtensibleClient.java index 4364649650..a370528bfb 100644 --- a/typespec-tests/src/main/java/com/type/union/StringExtensibleClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringExtensibleClient.java @@ -42,11 +42,13 @@ public final class StringExtensibleClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest8 The sendRequest8 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedAsyncClient.java b/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedAsyncClient.java index 70756efb11..703c71529f 100644 --- a/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedAsyncClient.java @@ -44,11 +44,13 @@ public final class StringExtensibleNamedAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest7 The sendRequest7 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedClient.java b/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedClient.java index 0052206aee..750b079a36 100644 --- a/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringExtensibleNamedClient.java @@ -42,11 +42,13 @@ public final class StringExtensibleNamedClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest7 The sendRequest7 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringsOnlyAsyncClient.java b/typespec-tests/src/main/java/com/type/union/StringsOnlyAsyncClient.java index a94ecce3f3..cfcde2061b 100644 --- a/typespec-tests/src/main/java/com/type/union/StringsOnlyAsyncClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringsOnlyAsyncClient.java @@ -44,11 +44,13 @@ public final class StringsOnlyAsyncClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -67,11 +69,13 @@ public Mono> getWithResponse(RequestOptions requestOptions) * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest9 The sendRequest9 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/StringsOnlyClient.java b/typespec-tests/src/main/java/com/type/union/StringsOnlyClient.java index 8e96ecdc6d..1bf8a022b5 100644 --- a/typespec-tests/src/main/java/com/type/union/StringsOnlyClient.java +++ b/typespec-tests/src/main/java/com/type/union/StringsOnlyClient.java @@ -42,11 +42,13 @@ public final class StringsOnlyClient { * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -65,11 +67,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest9 The sendRequest9 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/UnionClientBuilder.java b/typespec-tests/src/main/java/com/type/union/UnionClientBuilder.java index 25c0117494..af7c9eb4bf 100644 --- a/typespec-tests/src/main/java/com/type/union/UnionClientBuilder.java +++ b/typespec-tests/src/main/java/com/type/union/UnionClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/type/union/implementation/EnumsOnliesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/EnumsOnliesImpl.java index 0c996a5669..8357062653 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/EnumsOnliesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/EnumsOnliesImpl.java @@ -101,14 +101,16 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest3 The sendRequest3 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest3, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         lr: String(left/right/up/down) (Required)
      *         ud: String(up/down) (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest3 The sendRequest3 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/FloatsOnliesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/FloatsOnliesImpl.java index 535a35f0b4..8dbe716e91 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/FloatsOnliesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/FloatsOnliesImpl.java @@ -101,11 +101,13 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest5 The sendRequest5 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest5, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1.1/2.2/3.3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest5 The sendRequest5 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/IntsOnliesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/IntsOnliesImpl.java index 3fb60afe18..103420c1c5 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/IntsOnliesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/IntsOnliesImpl.java @@ -101,11 +101,13 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest6 The sendRequest6 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest6, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(1/2/3) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest6 The sendRequest6 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/MixedLiteralsImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/MixedLiteralsImpl.java index ba55149b22..e374b0e232 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/MixedLiteralsImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/MixedLiteralsImpl.java @@ -101,7 +101,8 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -110,7 +111,8 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -129,7 +131,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -138,7 +141,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -157,7 +161,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -166,7 +171,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest1 The sendRequest1 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -187,7 +193,8 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest1, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         stringLiteral: BinaryData (Required)
@@ -196,7 +203,8 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest1, Reque
      *         booleanLiteral: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest1 The sendRequest1 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/MixedTypesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/MixedTypesImpl.java index addcec99e0..ca87b0dffa 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/MixedTypesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/MixedTypesImpl.java @@ -101,7 +101,8 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -113,7 +114,8 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -132,7 +134,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -144,7 +147,8 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -163,7 +167,8 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -175,7 +180,8 @@ public Response getWithResponse(RequestOptions requestOptions) {
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest The sendRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -196,7 +202,8 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest, Reques * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         model: BinaryData (Required)
@@ -208,7 +215,8 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest, Reques
      *         ]
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest The sendRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/ModelsOnliesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/ModelsOnliesImpl.java index fcb3375e22..799940ac4f 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/ModelsOnliesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/ModelsOnliesImpl.java @@ -101,11 +101,13 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest4 The sendRequest4 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest4, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest4 The sendRequest4 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/StringAndArraysImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/StringAndArraysImpl.java index 671d05b444..f8988f6248 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/StringAndArraysImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/StringAndArraysImpl.java @@ -101,14 +101,16 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -127,14 +129,16 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -153,14 +157,16 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest2 The sendRequest2 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -181,14 +187,16 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest2, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop (Required): {
      *         string: BinaryData (Required)
      *         array: BinaryData (Required)
      *     }
      * }
-     * }
+ * } + *
* * @param sendRequest2 The sendRequest2 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/StringExtensibleNamedsImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/StringExtensibleNamedsImpl.java index 8e6c8c197a..9052f1a91b 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/StringExtensibleNamedsImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/StringExtensibleNamedsImpl.java @@ -101,11 +101,13 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest7 The sendRequest7 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest7, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest7 The sendRequest7 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/StringExtensiblesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/StringExtensiblesImpl.java index fd556aca11..23de5b0b6b 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/StringExtensiblesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/StringExtensiblesImpl.java @@ -101,11 +101,13 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest8 The sendRequest8 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest8, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest8 The sendRequest8 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/type/union/implementation/StringsOnliesImpl.java b/typespec-tests/src/main/java/com/type/union/implementation/StringsOnliesImpl.java index 902e491648..ce1a180a6c 100644 --- a/typespec-tests/src/main/java/com/type/union/implementation/StringsOnliesImpl.java +++ b/typespec-tests/src/main/java/com/type/union/implementation/StringsOnliesImpl.java @@ -101,11 +101,13 @@ Response sendSync(@HostParam("endpoint") String endpoint, @HeaderParam("Co * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -124,11 +126,13 @@ public Mono> getWithResponseAsync(RequestOptions requestOpt * The get operation. *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -147,11 +151,13 @@ public Response getWithResponse(RequestOptions requestOptions) { * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest9 The sendRequest9 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -172,11 +178,13 @@ public Mono> sendWithResponseAsync(BinaryData sendRequest9, Reque * The send operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String(a/b/c) (Required)
      * }
-     * }
+ * } + *
* * @param sendRequest9 The sendRequest9 parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/added/AddedAsyncClient.java b/typespec-tests/src/main/java/com/versioning/added/AddedAsyncClient.java index 9f8732d8e6..d86be459b6 100644 --- a/typespec-tests/src/main/java/com/versioning/added/AddedAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/added/AddedAsyncClient.java @@ -43,23 +43,27 @@ public final class AddedAsyncClient { * The v1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param headerV2 The headerV2 parameter. * @param body The body parameter. @@ -80,23 +84,27 @@ public Mono> v1WithResponse(String headerV2, BinaryData bod * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/added/AddedClient.java b/typespec-tests/src/main/java/com/versioning/added/AddedClient.java index 4954e6db56..dd59ae4ac9 100644 --- a/typespec-tests/src/main/java/com/versioning/added/AddedClient.java +++ b/typespec-tests/src/main/java/com/versioning/added/AddedClient.java @@ -41,23 +41,27 @@ public final class AddedClient { * The v1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param headerV2 The headerV2 parameter. * @param body The body parameter. @@ -78,23 +82,27 @@ public Response v1WithResponse(String headerV2, BinaryData body, Req * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/added/AddedClientBuilder.java b/typespec-tests/src/main/java/com/versioning/added/AddedClientBuilder.java index c0864b8c5b..45ff3770eb 100644 --- a/typespec-tests/src/main/java/com/versioning/added/AddedClientBuilder.java +++ b/typespec-tests/src/main/java/com/versioning/added/AddedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/versioning/added/InterfaceV2AsyncClient.java b/typespec-tests/src/main/java/com/versioning/added/InterfaceV2AsyncClient.java index ff97118a64..bca8a0e219 100644 --- a/typespec-tests/src/main/java/com/versioning/added/InterfaceV2AsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/added/InterfaceV2AsyncClient.java @@ -42,23 +42,27 @@ public final class InterfaceV2AsyncClient { * The v2InInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/added/InterfaceV2Client.java b/typespec-tests/src/main/java/com/versioning/added/InterfaceV2Client.java index 3c36ad05c7..bc96417832 100644 --- a/typespec-tests/src/main/java/com/versioning/added/InterfaceV2Client.java +++ b/typespec-tests/src/main/java/com/versioning/added/InterfaceV2Client.java @@ -40,23 +40,27 @@ public final class InterfaceV2Client { * The v2InInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/added/implementation/AddedClientImpl.java b/typespec-tests/src/main/java/com/versioning/added/implementation/AddedClientImpl.java index 76f0d27904..83ba3ac0ee 100644 --- a/typespec-tests/src/main/java/com/versioning/added/implementation/AddedClientImpl.java +++ b/typespec-tests/src/main/java/com/versioning/added/implementation/AddedClientImpl.java @@ -224,23 +224,27 @@ Response v2Sync(@HostParam("endpoint") String endpoint, @HostParam(" * The v1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param headerV2 The headerV2 parameter. * @param body The body parameter. @@ -264,23 +268,27 @@ public Mono> v1WithResponseAsync(String headerV2, BinaryDat * The v1 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV1/enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param headerV2 The headerV2 parameter. * @param body The body parameter. @@ -303,23 +311,27 @@ public Response v1WithResponse(String headerV2, BinaryData body, Req * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -341,23 +353,27 @@ public Mono> v2WithResponseAsync(BinaryData body, RequestOp * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/added/implementation/InterfaceV2sImpl.java b/typespec-tests/src/main/java/com/versioning/added/implementation/InterfaceV2sImpl.java index a032c93597..d66e70b8b7 100644 --- a/typespec-tests/src/main/java/com/versioning/added/implementation/InterfaceV2sImpl.java +++ b/typespec-tests/src/main/java/com/versioning/added/implementation/InterfaceV2sImpl.java @@ -95,23 +95,27 @@ Response v2InInterfaceSync(@HostParam("endpoint") String endpoint, * The v2InInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -133,23 +137,27 @@ public Mono> v2InInterfaceWithResponseAsync(BinaryData body * The v2InInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalAsyncClient.java b/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalAsyncClient.java index ec7eca46c8..dc5ff016f3 100644 --- a/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalAsyncClient.java @@ -49,21 +49,25 @@ public final class MadeOptionalAsyncClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClient.java b/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClient.java index 87caefa6fe..b96ea28304 100644 --- a/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClient.java +++ b/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClient.java @@ -47,21 +47,25 @@ public final class MadeOptionalClient { * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClientBuilder.java b/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClientBuilder.java index d50e71934d..da6b853ac6 100644 --- a/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClientBuilder.java +++ b/typespec-tests/src/main/java/com/versioning/madeoptional/MadeOptionalClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/versioning/madeoptional/implementation/MadeOptionalClientImpl.java b/typespec-tests/src/main/java/com/versioning/madeoptional/implementation/MadeOptionalClientImpl.java index fc57f6064f..d37daf24f3 100644 --- a/typespec-tests/src/main/java/com/versioning/madeoptional/implementation/MadeOptionalClientImpl.java +++ b/typespec-tests/src/main/java/com/versioning/madeoptional/implementation/MadeOptionalClientImpl.java @@ -196,21 +196,25 @@ Response testSync(@HostParam("endpoint") String endpoint, @HostParam * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -239,21 +243,25 @@ public Mono> testWithResponseAsync(BinaryData body, Request * You can add these to a request with {@link RequestOptions#addQueryParam} *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Optional)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/removed/RemovedAsyncClient.java b/typespec-tests/src/main/java/com/versioning/removed/RemovedAsyncClient.java index d3f2a34e98..28b2bf4a4b 100644 --- a/typespec-tests/src/main/java/com/versioning/removed/RemovedAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/removed/RemovedAsyncClient.java @@ -42,23 +42,27 @@ public final class RemovedAsyncClient { * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/removed/RemovedClient.java b/typespec-tests/src/main/java/com/versioning/removed/RemovedClient.java index 0591ab7c5f..165a8158b4 100644 --- a/typespec-tests/src/main/java/com/versioning/removed/RemovedClient.java +++ b/typespec-tests/src/main/java/com/versioning/removed/RemovedClient.java @@ -40,23 +40,27 @@ public final class RemovedClient { * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/removed/RemovedClientBuilder.java b/typespec-tests/src/main/java/com/versioning/removed/RemovedClientBuilder.java index 1a910c584e..2a4f31bbcd 100644 --- a/typespec-tests/src/main/java/com/versioning/removed/RemovedClientBuilder.java +++ b/typespec-tests/src/main/java/com/versioning/removed/RemovedClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/versioning/removed/implementation/RemovedClientImpl.java b/typespec-tests/src/main/java/com/versioning/removed/implementation/RemovedClientImpl.java index 74936454ac..98b2a519bd 100644 --- a/typespec-tests/src/main/java/com/versioning/removed/implementation/RemovedClientImpl.java +++ b/typespec-tests/src/main/java/com/versioning/removed/implementation/RemovedClientImpl.java @@ -187,23 +187,27 @@ Response v2Sync(@HostParam("endpoint") String endpoint, @HostParam(" * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -225,23 +229,27 @@ public Mono> v2WithResponseAsync(BinaryData body, RequestOp * The v2 operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     enumProp: String(enumMemberV2) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceAsyncClient.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceAsyncClient.java index ba37993503..15240d01fc 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceAsyncClient.java @@ -42,23 +42,27 @@ public final class NewInterfaceAsyncClient { * The newOpInNewInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceClient.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceClient.java index 169d5be3ae..119ca634a9 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceClient.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/NewInterfaceClient.java @@ -40,23 +40,27 @@ public final class NewInterfaceClient { * The newOpInNewInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromAsyncClient.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromAsyncClient.java index b919a7c0cc..b71b2aa7c2 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromAsyncClient.java @@ -42,23 +42,27 @@ public final class RenamedFromAsyncClient { * The newOp operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param newQuery The newQuery parameter. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClient.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClient.java index 5d17e38559..30d64a4280 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClient.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClient.java @@ -40,23 +40,27 @@ public final class RenamedFromClient { * The newOp operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param newQuery The newQuery parameter. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClientBuilder.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClientBuilder.java index b9cb2c5c93..7bccb10f13 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClientBuilder.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/RenamedFromClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/NewInterfacesImpl.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/NewInterfacesImpl.java index 4f6dd02c68..3cf07d0303 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/NewInterfacesImpl.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/NewInterfacesImpl.java @@ -95,23 +95,27 @@ Response newOpInNewInterfaceSync(@HostParam("endpoint") String endpo * The newOpInNewInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -134,23 +138,27 @@ public Mono> newOpInNewInterfaceWithResponseAsync(BinaryDat * The newOpInNewInterface operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/RenamedFromClientImpl.java b/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/RenamedFromClientImpl.java index 4b3e777ef4..7bb4ccf57d 100644 --- a/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/RenamedFromClientImpl.java +++ b/typespec-tests/src/main/java/com/versioning/renamedfrom/implementation/RenamedFromClientImpl.java @@ -206,23 +206,27 @@ Response newOpSync(@HostParam("endpoint") String endpoint, @HostPara * The newOp operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param newQuery The newQuery parameter. * @param body The body parameter. @@ -246,23 +250,27 @@ public Mono> newOpWithResponseAsync(String newQuery, Binary * The newOp operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     newProp: String (Required)
      *     enumProp: String(newEnumMember) (Required)
      *     unionProp: BinaryData (Required)
      * }
-     * }
+ * } + *
* * @param newQuery The newQuery parameter. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromAsyncClient.java b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromAsyncClient.java index b108e10f54..5ab414400d 100644 --- a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromAsyncClient.java @@ -41,15 +41,19 @@ public final class ReturnTypeChangedFromAsyncClient { * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClient.java b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClient.java index 25d54923fe..2b55a408bc 100644 --- a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClient.java +++ b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClient.java @@ -39,15 +39,19 @@ public final class ReturnTypeChangedFromClient { * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientBuilder.java b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientBuilder.java index b1e30111de..c4b7e8c726 100644 --- a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientBuilder.java +++ b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/implementation/ReturnTypeChangedFromClientImpl.java b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/implementation/ReturnTypeChangedFromClientImpl.java index ac32c99f2e..2f1faa429e 100644 --- a/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/implementation/ReturnTypeChangedFromClientImpl.java +++ b/typespec-tests/src/main/java/com/versioning/returntypechangedfrom/implementation/ReturnTypeChangedFromClientImpl.java @@ -190,15 +190,19 @@ Response testSync(@HostParam("endpoint") String endpoint, @HostParam * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -220,15 +224,19 @@ public Mono> testWithResponseAsync(BinaryData body, Request * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * String
-     * }
+ * } + *
* * @param body The body parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. diff --git a/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromAsyncClient.java b/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromAsyncClient.java index 254199b742..bfa94fa3b8 100644 --- a/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromAsyncClient.java +++ b/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromAsyncClient.java @@ -42,21 +42,25 @@ public final class TypeChangedFromAsyncClient { * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param param The param parameter. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClient.java b/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClient.java index 2f85c234f7..afa21f1fbc 100644 --- a/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClient.java +++ b/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClient.java @@ -40,21 +40,25 @@ public final class TypeChangedFromClient { * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param param The param parameter. * @param body The body parameter. diff --git a/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClientBuilder.java b/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClientBuilder.java index fbd40fc386..65ebc1468e 100644 --- a/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClientBuilder.java +++ b/typespec-tests/src/main/java/com/versioning/typechangedfrom/TypeChangedFromClientBuilder.java @@ -17,8 +17,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/typespec-tests/src/main/java/com/versioning/typechangedfrom/implementation/TypeChangedFromClientImpl.java b/typespec-tests/src/main/java/com/versioning/typechangedfrom/implementation/TypeChangedFromClientImpl.java index 76874be3a0..948bfc8251 100644 --- a/typespec-tests/src/main/java/com/versioning/typechangedfrom/implementation/TypeChangedFromClientImpl.java +++ b/typespec-tests/src/main/java/com/versioning/typechangedfrom/implementation/TypeChangedFromClientImpl.java @@ -192,21 +192,25 @@ Response testSync(@HostParam("endpoint") String endpoint, @HostParam * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param param The param parameter. * @param body The body parameter. @@ -230,21 +234,25 @@ public Mono> testWithResponseAsync(String param, BinaryData * The test operation. *

Request Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* *

Response Body Schema

* - *
{@code
+     * 
+     * {@code
      * {
      *     prop: String (Required)
      *     changedProp: String (Required)
      * }
-     * }
+ * } + *
* * @param param The param parameter. * @param body The body parameter. diff --git a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/AccessTests.java b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/AccessTests.java index a10452c3e1..ca6a4b5a99 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/AccessTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/AccessTests.java @@ -13,8 +13,10 @@ public class AccessTests { private final PublicOperationClient publicClient = new AccessClientBuilder().buildPublicOperationClient(); private final InternalOperationClient internalClient = new AccessClientBuilder().buildInternalOperationClient(); - private final SharedModelInOperationClient sharedClient = new AccessClientBuilder().buildSharedModelInOperationClient(); - private final RelativeModelInOperationClient relativeClient = new AccessClientBuilder().buildRelativeModelInOperationClient(); + private final SharedModelInOperationClient sharedClient + = new AccessClientBuilder().buildSharedModelInOperationClient(); + private final RelativeModelInOperationClient relativeClient + = new AccessClientBuilder().buildRelativeModelInOperationClient(); @Test public void test() { diff --git a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/generated/AccessClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/generated/AccessClientTestBase.java index 6d967d662e..8459cf96b6 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/generated/AccessClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/access/generated/AccessClientTestBase.java @@ -13,7 +13,6 @@ import com._specs_.azure.clientgenerator.core.access.PublicOperationClient; import com._specs_.azure.clientgenerator.core.access.RelativeModelInOperationClient; import com._specs_.azure.clientgenerator.core.access.SharedModelInOperationClient; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -33,44 +32,36 @@ class AccessClientTestBase extends TestProxyTestBase { protected void beforeTest() { AccessClientBuilder publicOperationClientbuilder = new AccessClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - publicOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { publicOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } publicOperationClient = publicOperationClientbuilder.buildPublicOperationClient(); AccessClientBuilder internalOperationClientbuilder = new AccessClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - internalOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { internalOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } internalOperationClient = internalOperationClientbuilder.buildInternalOperationClient(); AccessClientBuilder sharedModelInOperationClientbuilder = new AccessClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - sharedModelInOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { sharedModelInOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } sharedModelInOperationClient = sharedModelInOperationClientbuilder.buildSharedModelInOperationClient(); AccessClientBuilder relativeModelInOperationClientbuilder = new AccessClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - relativeModelInOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { relativeModelInOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } relativeModelInOperationClient = relativeModelInOperationClientbuilder.buildRelativeModelInOperationClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenClientTests.java b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenClientTests.java index 6738eaf97b..55df888cbf 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenClientTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/FlattenClientTests.java @@ -16,6 +16,7 @@ public class FlattenClientTests { public void testFlattenModel() { // flatten is not enabled for data-plane flattenClient.putFlattenModel(new FlattenModel("foo", new ChildModel("bar", 10))); - flattenClient.putNestedFlattenModel(new NestedFlattenModel("foo", new ChildFlattenModel("bar", new ChildModel("test",10)))); + flattenClient.putNestedFlattenModel( + new NestedFlattenModel("foo", new ChildFlattenModel("bar", new ChildModel("test", 10)))); } } diff --git a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/generated/FlattenPropertyClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/generated/FlattenPropertyClientTestBase.java index 7a3daa5e96..153b1d4f83 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/generated/FlattenPropertyClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/flattenproperty/generated/FlattenPropertyClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.clientgenerator.core.flattenproperty.FlattenPropertyClient; import com._specs_.azure.clientgenerator.core.flattenproperty.FlattenPropertyClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class FlattenPropertyClientTestBase extends TestProxyTestBase { protected void beforeTest() { FlattenPropertyClientBuilder flattenPropertyClientbuilder = new FlattenPropertyClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - flattenPropertyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { flattenPropertyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } flattenPropertyClient = flattenPropertyClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/UsageTests.java b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/UsageTests.java index 5c211eeb78..d09a54cdcd 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/UsageTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/UsageTests.java @@ -7,11 +7,10 @@ import com._specs_.azure.clientgenerator.core.usage.models.OutputModel; import com._specs_.azure.clientgenerator.core.usage.models.ResultModel; import com._specs_.azure.clientgenerator.core.usage.models.RoundTripModel; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.lang.reflect.Constructor; import java.lang.reflect.Modifier; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class UsageTests { diff --git a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/generated/UsageClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/generated/UsageClientTestBase.java index 4e2c739eb3..8652ad40b4 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/generated/UsageClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/clientgenerator/core/usage/generated/UsageClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.clientgenerator.core.usage.UsageClient; import com._specs_.azure.clientgenerator.core.usage.UsageClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class UsageClientTestBase extends TestProxyTestBase { protected void beforeTest() { UsageClientBuilder usageClientbuilder = new UsageClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - usageClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { usageClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } usageClient = usageClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/basic/CoreTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/basic/CoreTests.java index 593a25a17b..1f0c0c2b2e 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/basic/CoreTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/basic/CoreTests.java @@ -9,27 +9,26 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.core.test.http.AssertingHttpClientBuilder; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; -import reactor.test.StepVerifier; - import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; +import reactor.test.StepVerifier; public class CoreTests { private final BasicAsyncClient client = new BasicClientBuilder() - .httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertAsync().build()) - .buildAsyncClient(); + .httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertAsync().build()) + .buildAsyncClient(); private final BasicClient syncClient = new BasicClientBuilder() - .httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertSync().build()) - .buildClient(); + .httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertSync().build()) + .buildClient(); @Test public void testCreateOrUpdate() { @@ -37,63 +36,47 @@ public void testCreateOrUpdate() { body.put("name", "Madge"); Mono response = client.createOrUpdate(1, new User().setName("Madge")); - StepVerifier.create(response) - .assertNext(user -> { - Assertions.assertEquals(1, user.getId()); - Assertions.assertEquals("Madge", user.getName()); - }) - .expectComplete() - .verify(); + StepVerifier.create(response).assertNext(user -> { + Assertions.assertEquals(1, user.getId()); + Assertions.assertEquals("Madge", user.getName()); + }).expectComplete().verify(); } @Test public void testCreateOrReplace() { Mono response = client.createOrReplace(1, new User().setName("Madge")); - StepVerifier.create(response) - .assertNext(user -> { - Assertions.assertEquals(1, user.getId()); - Assertions.assertEquals("Madge", user.getName()); - }) - .expectComplete() - .verify(); + StepVerifier.create(response).assertNext(user -> { + Assertions.assertEquals(1, user.getId()); + Assertions.assertEquals("Madge", user.getName()); + }).expectComplete().verify(); } @Test public void testGet() { Mono response = client.get(1); - StepVerifier.create(response) - .assertNext(user -> { - Assertions.assertEquals(1, user.getId()); - Assertions.assertEquals("Madge", user.getName()); - Assertions.assertEquals("11bdc430-65e8-45ad-81d9-8ffa60d55b59", user.getEtag()); - }) - .expectComplete() - .verify(); + StepVerifier.create(response).assertNext(user -> { + Assertions.assertEquals(1, user.getId()); + Assertions.assertEquals("Madge", user.getName()); + Assertions.assertEquals("11bdc430-65e8-45ad-81d9-8ffa60d55b59", user.getEtag()); + }).expectComplete().verify(); } @Test public void testList() { - PagedFlux response = client.list(5, 10, - Collections.singletonList("id"), - "id lt 10", - Arrays.asList("id", "orders", "etag"), - Collections.singletonList("orders")); - - StepVerifier.create(response) - .assertNext(user -> { - Assertions.assertEquals(1, user.getId()); - Assertions.assertEquals("Madge", user.getName()); - Assertions.assertNotNull(user.getEtag()); - Assertions.assertNotNull(user.getOrders()); - }) - .assertNext(user -> { - Assertions.assertEquals(2, user.getId()); - Assertions.assertEquals("John", user.getName()); - }) - .expectComplete() - .verify(); + PagedFlux response = client.list(5, 10, Collections.singletonList("id"), "id lt 10", + Arrays.asList("id", "orders", "etag"), Collections.singletonList("orders")); + + StepVerifier.create(response).assertNext(user -> { + Assertions.assertEquals(1, user.getId()); + Assertions.assertEquals("Madge", user.getName()); + Assertions.assertNotNull(user.getEtag()); + Assertions.assertNotNull(user.getOrders()); + }).assertNext(user -> { + Assertions.assertEquals(2, user.getId()); + Assertions.assertEquals("John", user.getName()); + }).expectComplete().verify(); } @@ -101,22 +84,17 @@ public void testList() { public void testDelete() { Mono response = client.delete(1); - StepVerifier.create(response) - .expectComplete() - .verify(); + StepVerifier.create(response).expectComplete().verify(); } @Test public void testAction() { Mono response = client.export(1, "json"); - StepVerifier.create(response) - .assertNext(user -> { - Assertions.assertEquals(1, user.getId()); - Assertions.assertEquals("Madge", user.getName()); - }) - .expectComplete() - .verify(); + StepVerifier.create(response).assertNext(user -> { + Assertions.assertEquals(1, user.getId()); + Assertions.assertEquals("Madge", user.getName()); + }).expectComplete().verify(); UserList userList = syncClient.exportAllUsers("json"); Assertions.assertEquals(2, userList.getUsers().size()); @@ -126,11 +104,8 @@ public void testAction() { @Test public void testListSync() { - PagedIterable response = syncClient.list(5, 10, - Collections.singletonList("id"), - "id lt 10", - Arrays.asList("id", "orders", "etag"), - Collections.singletonList("orders")); + PagedIterable response = syncClient.list(5, 10, Collections.singletonList("id"), "id lt 10", + Arrays.asList("id", "orders", "etag"), Collections.singletonList("orders")); List users = response.stream().collect(Collectors.toList()); Assertions.assertEquals(2, users.size()); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/basic/generated/BasicClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/basic/generated/BasicClientTestBase.java index 6451d16c18..e043de8a8d 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/basic/generated/BasicClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/basic/generated/BasicClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.core.basic.BasicClient; import com._specs_.azure.core.basic.BasicClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class BasicClientTestBase extends TestProxyTestBase { protected void beforeTest() { BasicClientBuilder basicClientbuilder = new BasicClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - basicClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { basicClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } basicClient = basicClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/RpcTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/RpcTests.java index dc551c21fd..b7863e7251 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/RpcTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/RpcTests.java @@ -16,13 +16,14 @@ public class RpcTests { - private final RpcClient client = new RpcClientBuilder() - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + private final RpcClient client + = new RpcClientBuilder().httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) .buildClient(); @Test public void testRpc() { - SyncPoller poller = client.beginLongRunningRpc(new GenerationOptions("text")); + SyncPoller poller + = client.beginLongRunningRpc(new GenerationOptions("text")); PollResponse response = poller.waitForCompletion(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/generated/RpcClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/generated/RpcClientTestBase.java index 7c4090b05d..9afbb6ff31 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/generated/RpcClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/rpc/generated/RpcClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.core.lro.rpc.RpcClient; import com._specs_.azure.core.lro.rpc.RpcClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class RpcClientTestBase extends TestProxyTestBase { protected void beforeTest() { RpcClientBuilder rpcClientbuilder = new RpcClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - rpcClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { rpcClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } rpcClient = rpcClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/LroCoreTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/LroCoreTests.java index ed953d1d6e..6dd9b5fa3a 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/LroCoreTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/LroCoreTests.java @@ -14,24 +14,22 @@ import com.azure.core.util.polling.PollResponse; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; - import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class LroCoreTests { private final StandardClient client = new StandardClientBuilder() - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) - .buildClient(); + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + .buildClient(); private final StandardAsyncClient asyncClient = new StandardClientBuilder() - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) - .buildAsyncClient(); + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + .buildAsyncClient(); @Test public void testPut() { - SyncPoller poller = client.beginCreateOrReplace( - "madge", new User("contributor")); + SyncPoller poller = client.beginCreateOrReplace("madge", new User("contributor")); PollResponse response = poller.waitForCompletion(); Assertions.assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.getStatus()); @@ -42,8 +40,8 @@ public void testPut() { @Test public void testPutAsync() { - PollerFlux poller = asyncClient.beginCreateOrReplace( - "madge", new User("contributor")); + PollerFlux poller + = asyncClient.beginCreateOrReplace("madge", new User("contributor")); AsyncPollResponse response = poller.blockLast(); Assertions.assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.getStatus()); @@ -54,8 +52,8 @@ public void testPutAsync() { @Test public void testPutProtocol() { - SyncPoller poller = client.beginCreateOrReplace( - "madge", BinaryData.fromObject(new User("contributor")), null); + SyncPoller poller + = client.beginCreateOrReplace("madge", BinaryData.fromObject(new User("contributor")), null); PollResponse response = poller.waitForCompletion(); Assertions.assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.getStatus()); @@ -75,8 +73,7 @@ public void testDelete() { @Test public void testPost() { - SyncPoller poller = client.beginExport( - "madge", "json"); + SyncPoller poller = client.beginExport("madge", "json"); PollResponse response = poller.waitForCompletion(); Assertions.assertEquals(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED, response.getStatus()); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/generated/StandardClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/generated/StandardClientTestBase.java index ac96f13085..6d28e723a8 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/generated/StandardClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/lro/standard/generated/StandardClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.core.lro.standard.StandardClient; import com._specs_.azure.core.lro.standard.StandardClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class StandardClientTestBase extends TestProxyTestBase { protected void beforeTest() { StandardClientBuilder standardClientbuilder = new StandardClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - standardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { standardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } standardClient = standardClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/model/ModelClientTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/model/ModelClientTests.java index 81551c4951..8e68a8ea50 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/model/ModelClientTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/model/ModelClientTests.java @@ -4,11 +4,10 @@ package com._specs_.azure.core.model; import com._specs_.azure.core.model.models.AzureEmbeddingModel; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.util.Arrays; - public class ModelClientTests { ModelClient client = new ModelClientBuilder().buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/model/generated/ModelClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/model/generated/ModelClientTestBase.java index 5c65b8a132..d5546d1f7d 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/model/generated/ModelClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/model/generated/ModelClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.core.model.ModelClient; import com._specs_.azure.core.model.ModelClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ModelClientTestBase extends TestProxyTestBase { protected void beforeTest() { ModelClientBuilder modelClientbuilder = new ModelClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelClient = modelClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/page/PageTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/page/PageTests.java index da0bec7e62..67dd0bc989 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/page/PageTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/page/PageTests.java @@ -6,14 +6,18 @@ import com._specs_.azure.core.page.models.ListItemInputBody; import com._specs_.azure.core.page.models.ListItemInputExtensibleEnum; import com.azure.core.http.HttpClient; +import com.azure.core.http.netty.NettyAsyncHttpClientProvider; import com.azure.core.test.http.AssertingHttpClientBuilder; +import com.azure.core.util.HttpClientOptions; import org.junit.jupiter.api.Test; public class PageTests { - private final PageClient client = new PageClientBuilder() - .httpClient(new AssertingHttpClientBuilder(HttpClient.createDefault()).assertSync().build()) - .buildClient(); + private final PageClient client = new PageClientBuilder().httpClient(new AssertingHttpClientBuilder( + HttpClient.createDefault(new HttpClientOptions().setHttpClientProvider(NettyAsyncHttpClientProvider.class))) + .assertSync() + .build()) + .buildClient(); @Test public void testListNoModel() { diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/page/generated/PageClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/page/generated/PageClientTestBase.java index b5d61efe3d..1da8ace22f 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/page/generated/PageClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/page/generated/PageClientTestBase.java @@ -11,7 +11,6 @@ import com._specs_.azure.core.page.PageClient; import com._specs_.azure.core.page.PageClientBuilder; import com._specs_.azure.core.page.TwoModelsAsPageItemClient; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,22 +26,18 @@ class PageClientTestBase extends TestProxyTestBase { protected void beforeTest() { PageClientBuilder pageClientbuilder = new PageClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pageClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pageClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pageClient = pageClientbuilder.buildClient(); PageClientBuilder twoModelsAsPageItemClientbuilder = new PageClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - twoModelsAsPageItemClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { twoModelsAsPageItemClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } twoModelsAsPageItemClient = twoModelsAsPageItemClientbuilder.buildTwoModelsAsPageItemClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/ScalarTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/ScalarTests.java index 65b7a5ce38..51899384e3 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/ScalarTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/ScalarTests.java @@ -12,8 +12,8 @@ public class ScalarTests { private final static String LOCATION_REGION = "eastus"; - private final ScalarClient client = new ScalarClientBuilder() - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) + private final ScalarClient client + = new ScalarClientBuilder().httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) .buildClient(); @Test diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/generated/ScalarClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/generated/ScalarClientTestBase.java index 426bd1baed..87183096cd 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/generated/ScalarClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/scalar/generated/ScalarClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.core.scalar.ScalarClient; import com._specs_.azure.core.scalar.ScalarClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ScalarClientTestBase extends TestProxyTestBase { protected void beforeTest() { ScalarClientBuilder scalarClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - scalarClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { scalarClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } scalarClient = scalarClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/traits/TraitsTests.java b/typespec-tests/src/test/java/com/_specs_/azure/core/traits/TraitsTests.java index 03b7d610fd..74dd091278 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/traits/TraitsTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/traits/TraitsTests.java @@ -8,24 +8,22 @@ import com.azure.core.http.RequestConditions; import com.azure.core.http.rest.Response; import com.azure.core.util.BinaryData; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.OffsetDateTime; import java.time.ZoneOffset; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class TraitsTests { - private TraitsClient client = new TraitsClientBuilder() - .buildClient(); + private TraitsClient client = new TraitsClientBuilder().buildClient(); @Test public void testGet() { OffsetDateTime unmodifiedSince = OffsetDateTime.of(2022, 8, 26, 14, 38, 0, 0, ZoneOffset.UTC); OffsetDateTime modifiedSince = OffsetDateTime.of(2021, 8, 26, 14, 38, 0, 0, ZoneOffset.UTC); - client.smokeTest(1, "123", new RequestConditions() - .setIfMatch("\"valid\"") + client.smokeTest(1, "123", + new RequestConditions().setIfMatch("\"valid\"") .setIfNoneMatch("\"invalid\"") .setIfModifiedSince(modifiedSince) .setIfUnmodifiedSince(unmodifiedSince)); @@ -33,7 +31,9 @@ public void testGet() { @Test public void testPost() { - Response response = client.repeatableActionWithResponse(1, BinaryData.fromObject(new UserActionParam("test")), null); - Assertions.assertEquals("accepted", response.getHeaders().getValue(HttpHeaderName.fromString("repeatability-result"))); + Response response + = client.repeatableActionWithResponse(1, BinaryData.fromObject(new UserActionParam("test")), null); + Assertions.assertEquals("accepted", + response.getHeaders().getValue(HttpHeaderName.fromString("repeatability-result"))); } } diff --git a/typespec-tests/src/test/java/com/_specs_/azure/core/traits/generated/TraitsClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/core/traits/generated/TraitsClientTestBase.java index cc582cb39c..da1852204c 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/core/traits/generated/TraitsClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/core/traits/generated/TraitsClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.core.traits.TraitsClient; import com._specs_.azure.core.traits.TraitsClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class TraitsClientTestBase extends TestProxyTestBase { protected void beforeTest() { TraitsClientBuilder traitsClientbuilder = new TraitsClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - traitsClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { traitsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } traitsClient = traitsClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/example/basic/BasicTests.java b/typespec-tests/src/test/java/com/_specs_/azure/example/basic/BasicTests.java index 0cc1b5a6f2..98552c7bd3 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/example/basic/BasicTests.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/example/basic/BasicTests.java @@ -9,25 +9,26 @@ import com._specs_.azure.example.basic.models.Model; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class BasicTests { - private final AzureExampleClient client = new AzureExampleClientBuilder().httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)).buildClient(); + private final AzureExampleClient client = new AzureExampleClientBuilder() + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + .buildClient(); @Test public void testBasicActionTests() { // method invocation ActionResponse response = client.basicAction("query", "header", - new ActionRequest("text") - .setModelProperty( - new Model().setInt32Property(1).setFloat32Property(1.5D).setEnumProperty(Enum.ENUM_VALUE1)) - .setArrayProperty(List.of("item")) - .setRecordProperty(Map.of("record", "value"))); + new ActionRequest("text") + .setModelProperty( + new Model().setInt32Property(1).setFloat32Property(1.5D).setEnumProperty(Enum.ENUM_VALUE1)) + .setArrayProperty(List.of("item")) + .setRecordProperty(Map.of("record", "value"))); // response assertion Assertions.assertEquals("text", response.getStringProperty()); diff --git a/typespec-tests/src/test/java/com/_specs_/azure/example/basic/generated/AzureExampleClientTestBase.java b/typespec-tests/src/test/java/com/_specs_/azure/example/basic/generated/AzureExampleClientTestBase.java index df2da2a545..90eb913c82 100644 --- a/typespec-tests/src/test/java/com/_specs_/azure/example/basic/generated/AzureExampleClientTestBase.java +++ b/typespec-tests/src/test/java/com/_specs_/azure/example/basic/generated/AzureExampleClientTestBase.java @@ -10,7 +10,6 @@ import com._specs_.azure.example.basic.AzureExampleClient; import com._specs_.azure.example.basic.AzureExampleClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class AzureExampleClientTestBase extends TestProxyTestBase { protected void beforeTest() { AzureExampleClientBuilder azureExampleClientbuilder = new AzureExampleClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - azureExampleClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { azureExampleClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } azureExampleClient = azureExampleClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/authentication/apikey/ApiKeyTests.java b/typespec-tests/src/test/java/com/authentication/apikey/ApiKeyTests.java index aefcc5380a..1e1990f4ac 100644 --- a/typespec-tests/src/test/java/com/authentication/apikey/ApiKeyTests.java +++ b/typespec-tests/src/test/java/com/authentication/apikey/ApiKeyTests.java @@ -14,9 +14,9 @@ public class ApiKeyTests { @Test public void testValid() { ApiKeyAsyncClient client = new ApiKeyClientBuilder() - // AzureKeyCredentialPolicy from core requires HTTPS - .addPolicy(new AzureKeyCredentialPolicy("x-ms-api-key", new AzureKeyCredential("valid-key"))) - .buildAsyncClient(); + // AzureKeyCredentialPolicy from core requires HTTPS + .addPolicy(new AzureKeyCredentialPolicy("x-ms-api-key", new AzureKeyCredential("valid-key"))) + .buildAsyncClient(); client.valid().block(); } @@ -24,9 +24,9 @@ public void testValid() { @Test public void testInvalid() { ApiKeyClient client = new ApiKeyClientBuilder() - // AzureKeyCredentialPolicy from core requires HTTPS - .addPolicy(new AzureKeyCredentialPolicy("x-ms-api-key", new AzureKeyCredential("valid-key"))) - .buildClient(); + // AzureKeyCredentialPolicy from core requires HTTPS + .addPolicy(new AzureKeyCredentialPolicy("x-ms-api-key", new AzureKeyCredential("valid-key"))) + .buildClient(); // assert HttpResponseException Assertions.assertThrows(HttpResponseException.class, client::invalid); diff --git a/typespec-tests/src/test/java/com/authentication/apikey/generated/ApiKeyClientTestBase.java b/typespec-tests/src/test/java/com/authentication/apikey/generated/ApiKeyClientTestBase.java index a4a047af29..8fdfb48aab 100644 --- a/typespec-tests/src/test/java/com/authentication/apikey/generated/ApiKeyClientTestBase.java +++ b/typespec-tests/src/test/java/com/authentication/apikey/generated/ApiKeyClientTestBase.java @@ -10,7 +10,6 @@ import com.authentication.apikey.ApiKeyClient; import com.authentication.apikey.ApiKeyClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ApiKeyClientTestBase extends TestProxyTestBase { protected void beforeTest() { ApiKeyClientBuilder apiKeyClientbuilder = new ApiKeyClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - apiKeyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { apiKeyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } apiKeyClient = apiKeyClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/authentication/http/custom/CustomAuthTests.java b/typespec-tests/src/test/java/com/authentication/http/custom/CustomAuthTests.java index 1ba6892b1e..2d212819a5 100644 --- a/typespec-tests/src/test/java/com/authentication/http/custom/CustomAuthTests.java +++ b/typespec-tests/src/test/java/com/authentication/http/custom/CustomAuthTests.java @@ -3,9 +3,6 @@ package com.authentication.http.custom; -import com.authentication.apikey.ApiKeyAsyncClient; -import com.authentication.apikey.ApiKeyClient; -import com.authentication.apikey.ApiKeyClientBuilder; import com.authentication.util.AzureKeyCredentialPolicy; import com.azure.core.credential.AzureKeyCredential; import com.azure.core.exception.HttpResponseException; @@ -17,9 +14,10 @@ public class CustomAuthTests { @Test public void testValid() { CustomAsyncClient client = new CustomClientBuilder() - // AzureKeyCredentialPolicy from core requires HTTPS - .addPolicy(new AzureKeyCredentialPolicy("authorization", new AzureKeyCredential("valid-key"), "SharedAccessKey")) - .buildAsyncClient(); + // AzureKeyCredentialPolicy from core requires HTTPS + .addPolicy( + new AzureKeyCredentialPolicy("authorization", new AzureKeyCredential("valid-key"), "SharedAccessKey")) + .buildAsyncClient(); client.valid().block(); } @@ -27,9 +25,10 @@ public void testValid() { @Test public void testInvalid() { CustomClient client = new CustomClientBuilder() - // AzureKeyCredentialPolicy from core requires HTTPS - .addPolicy(new AzureKeyCredentialPolicy("authorization", new AzureKeyCredential("invalid-key"), "SharedAccessKey")) - .buildClient(); + // AzureKeyCredentialPolicy from core requires HTTPS + .addPolicy( + new AzureKeyCredentialPolicy("authorization", new AzureKeyCredential("invalid-key"), "SharedAccessKey")) + .buildClient(); // assert HttpResponseException Assertions.assertThrows(HttpResponseException.class, client::invalid); diff --git a/typespec-tests/src/test/java/com/authentication/http/custom/generated/CustomClientTestBase.java b/typespec-tests/src/test/java/com/authentication/http/custom/generated/CustomClientTestBase.java index 898fe6fd8b..e2f38ca6f8 100644 --- a/typespec-tests/src/test/java/com/authentication/http/custom/generated/CustomClientTestBase.java +++ b/typespec-tests/src/test/java/com/authentication/http/custom/generated/CustomClientTestBase.java @@ -10,7 +10,6 @@ import com.authentication.http.custom.CustomClient; import com.authentication.http.custom.CustomClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class CustomClientTestBase extends TestProxyTestBase { protected void beforeTest() { CustomClientBuilder customClientbuilder = new CustomClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - customClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { customClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } customClient = customClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/authentication/oauth2/OAuth2Tests.java b/typespec-tests/src/test/java/com/authentication/oauth2/OAuth2Tests.java index 6514c1251d..27fc848759 100644 --- a/typespec-tests/src/test/java/com/authentication/oauth2/OAuth2Tests.java +++ b/typespec-tests/src/test/java/com/authentication/oauth2/OAuth2Tests.java @@ -6,19 +6,19 @@ import com.authentication.util.BearerTokenAuthenticationPolicy; import com.azure.core.credential.AccessToken; import com.azure.core.exception.HttpResponseException; +import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -import java.time.OffsetDateTime; - public class OAuth2Tests { private static OAuth2Client buildClient() { return new OAuth2ClientBuilder() - // not able to use azure-identity in this test. - .addPolicy(new BearerTokenAuthenticationPolicy(tokenRequestContext -> Mono.just(new AccessToken("https://security.microsoft.com/.default", OffsetDateTime.now().plusHours(1))))) - .buildClient(); + // not able to use azure-identity in this test. + .addPolicy(new BearerTokenAuthenticationPolicy(tokenRequestContext -> Mono + .just(new AccessToken("https://security.microsoft.com/.default", OffsetDateTime.now().plusHours(1))))) + .buildClient(); } @Test diff --git a/typespec-tests/src/test/java/com/authentication/oauth2/generated/OAuth2ClientTestBase.java b/typespec-tests/src/test/java/com/authentication/oauth2/generated/OAuth2ClientTestBase.java index f4beb748f1..93471b6f72 100644 --- a/typespec-tests/src/test/java/com/authentication/oauth2/generated/OAuth2ClientTestBase.java +++ b/typespec-tests/src/test/java/com/authentication/oauth2/generated/OAuth2ClientTestBase.java @@ -10,7 +10,6 @@ import com.authentication.oauth2.OAuth2Client; import com.authentication.oauth2.OAuth2ClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -26,11 +25,10 @@ class OAuth2ClientTestBase extends TestProxyTestBase { protected void beforeTest() { OAuth2ClientBuilder oAuth2Clientbuilder = new OAuth2ClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); if (getTestMode() == TestMode.PLAYBACK) { - oAuth2Clientbuilder.httpClient(interceptorManager.getPlaybackClient()) - .credential(new MockTokenCredential()); + oAuth2Clientbuilder.credential(new MockTokenCredential()); } else if (getTestMode() == TestMode.RECORD) { oAuth2Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()) .credential(new DefaultAzureCredentialBuilder().build()); diff --git a/typespec-tests/src/test/java/com/authentication/union/UnionClientTest.java b/typespec-tests/src/test/java/com/authentication/union/UnionClientTest.java index 3667270748..4973034157 100644 --- a/typespec-tests/src/test/java/com/authentication/union/UnionClientTest.java +++ b/typespec-tests/src/test/java/com/authentication/union/UnionClientTest.java @@ -7,22 +7,26 @@ import com.authentication.util.BearerTokenAuthenticationPolicy; import com.azure.core.credential.AccessToken; import com.azure.core.credential.AzureKeyCredential; +import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -import java.time.OffsetDateTime; - class UnionClientTest { @Test void validKey() { - UnionClient client = new UnionClientBuilder().addPolicy(new AzureKeyCredentialPolicy("x-ms-api-key", new AzureKeyCredential("valid-key"))).buildClient(); + UnionClient client = new UnionClientBuilder() + .addPolicy(new AzureKeyCredentialPolicy("x-ms-api-key", new AzureKeyCredential("valid-key"))) + .buildClient(); client.validKey(); } @Test void validToken() { - UnionClient client = new UnionClientBuilder().addPolicy(new BearerTokenAuthenticationPolicy(tokenRequestContext -> Mono.just(new AccessToken("https://security.microsoft.com/.default", OffsetDateTime.now().plusHours(1))))).buildClient(); + UnionClient client = new UnionClientBuilder() + .addPolicy(new BearerTokenAuthenticationPolicy(tokenRequestContext -> Mono + .just(new AccessToken("https://security.microsoft.com/.default", OffsetDateTime.now().plusHours(1))))) + .buildClient(); client.validToken(); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/authentication/union/generated/UnionClientTestBase.java b/typespec-tests/src/test/java/com/authentication/union/generated/UnionClientTestBase.java index f2282b1581..8f6f0ac2f1 100644 --- a/typespec-tests/src/test/java/com/authentication/union/generated/UnionClientTestBase.java +++ b/typespec-tests/src/test/java/com/authentication/union/generated/UnionClientTestBase.java @@ -10,7 +10,6 @@ import com.authentication.union.UnionClient; import com.authentication.union.UnionClientBuilder; -import com.azure.core.http.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -26,10 +25,10 @@ class UnionClientTestBase extends TestProxyTestBase { protected void beforeTest() { UnionClientBuilder unionClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); if (getTestMode() == TestMode.PLAYBACK) { - unionClientbuilder.httpClient(interceptorManager.getPlaybackClient()).credential(new MockTokenCredential()); + unionClientbuilder.credential(new MockTokenCredential()); } else if (getTestMode() == TestMode.RECORD) { unionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()) .credential(new DefaultAzureCredentialBuilder().build()); diff --git a/typespec-tests/src/test/java/com/authentication/util/AzureKeyCredentialPolicy.java b/typespec-tests/src/test/java/com/authentication/util/AzureKeyCredentialPolicy.java index d691a0df4d..37ab22c925 100644 --- a/typespec-tests/src/test/java/com/authentication/util/AzureKeyCredentialPolicy.java +++ b/typespec-tests/src/test/java/com/authentication/util/AzureKeyCredentialPolicy.java @@ -12,9 +12,8 @@ import com.azure.core.http.HttpResponse; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.util.logging.ClientLogger; -import reactor.core.publisher.Mono; - import java.util.Objects; +import reactor.core.publisher.Mono; /** * Pipeline policy that uses an {@link AzureKeyCredential} to set the authorization key for a request. @@ -24,7 +23,8 @@ */ public final class AzureKeyCredentialPolicy implements HttpPipelinePolicy { // AzureKeyCredentialPolicy can be a commonly used policy, use a static logger. - private static final ClientLogger LOGGER = new ClientLogger(com.azure.core.http.policy.AzureKeyCredentialPolicy.class); + private static final ClientLogger LOGGER + = new ClientLogger(com.azure.core.http.policy.AzureKeyCredentialPolicy.class); private final HttpHeaderName name; private final AzureKeyCredential credential; private final String prefix; @@ -54,7 +54,8 @@ public AzureKeyCredentialPolicy(String name, AzureKeyCredential credential) { * @throws IllegalArgumentException If {@code name} is empty. */ public AzureKeyCredentialPolicy(String name, AzureKeyCredential credential, String prefix) { - this(HttpHeaderName.fromString(name), Objects.requireNonNull(credential, "'credential' cannot be null."), prefix); + this(HttpHeaderName.fromString(name), Objects.requireNonNull(credential, "'credential' cannot be null."), + prefix); } AzureKeyCredentialPolicy(HttpHeaderName name, AzureKeyCredential credential, String prefix) { diff --git a/typespec-tests/src/test/java/com/authentication/util/BearerTokenAuthenticationPolicy.java b/typespec-tests/src/test/java/com/authentication/util/BearerTokenAuthenticationPolicy.java index 886bef3f17..f56117c891 100644 --- a/typespec-tests/src/test/java/com/authentication/util/BearerTokenAuthenticationPolicy.java +++ b/typespec-tests/src/test/java/com/authentication/util/BearerTokenAuthenticationPolicy.java @@ -15,11 +15,8 @@ import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.implementation.AccessTokenCache; import com.azure.core.util.logging.ClientLogger; -import reactor.core.publisher.Mono; - import java.util.Objects; - -import static com.azure.core.util.AuthorizationChallengeHandler.WWW_AUTHENTICATE; +import reactor.core.publisher.Mono; /** * The pipeline policy that applies a token credential to an HTTP request with "Bearer" scheme. @@ -100,29 +97,26 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN // } HttpPipelineNextPolicy nextPolicy = next.clone(); - return authorizeRequest(context) - .then(Mono.defer(() -> next.process())) - .flatMap(httpResponse -> { - String authHeader = httpResponse.getHeaderValue(HttpHeaderName.WWW_AUTHENTICATE); - if (httpResponse.getStatusCode() == 401 && authHeader != null) { - return authorizeRequestOnChallenge(context, httpResponse).flatMap(retry -> { - if (retry) { - // Both Netty and OkHttp expect the requestBody to be closed after the response has been read. - // Failure to do so results in memory leak. - // In case of StreamResponse (or other scenarios where we do not eagerly read the response) - // the response body may not be consumed. - // This can cause potential leaks in the scenarios like above, where the policy - // may intercept the response and it may never be read. - // Forcing the read here - so that the memory can be released. - return httpResponse.getBody().ignoreElements() - .then(nextPolicy.process()); - } else { - return Mono.just(httpResponse); - } - }); - } - return Mono.just(httpResponse); - }); + return authorizeRequest(context).then(Mono.defer(() -> next.process())).flatMap(httpResponse -> { + String authHeader = httpResponse.getHeaderValue(HttpHeaderName.WWW_AUTHENTICATE); + if (httpResponse.getStatusCode() == 401 && authHeader != null) { + return authorizeRequestOnChallenge(context, httpResponse).flatMap(retry -> { + if (retry) { + // Both Netty and OkHttp expect the requestBody to be closed after the response has been read. + // Failure to do so results in memory leak. + // In case of StreamResponse (or other scenarios where we do not eagerly read the response) + // the response body may not be consumed. + // This can cause potential leaks in the scenarios like above, where the policy + // may intercept the response and it may never be read. + // Forcing the read here - so that the memory can be released. + return httpResponse.getBody().ignoreElements().then(nextPolicy.process()); + } else { + return Mono.just(httpResponse); + } + }); + } + return Mono.just(httpResponse); + }); } @Override @@ -176,11 +170,10 @@ public void setAuthorizationHeaderSync(HttpPipelineCallContext context, TokenReq private Mono setAuthorizationHeaderHelper(HttpPipelineCallContext context, TokenRequestContext tokenRequestContext, boolean checkToForceFetchToken) { - return cache.getToken(tokenRequestContext, checkToForceFetchToken) - .flatMap(token -> { - setAuthorizationHeader(context.getHttpRequest().getHeaders(), token.getToken()); - return Mono.empty(); - }); + return cache.getToken(tokenRequestContext, checkToForceFetchToken).flatMap(token -> { + setAuthorizationHeader(context.getHttpRequest().getHeaders(), token.getToken()); + return Mono.empty(); + }); } private void setAuthorizationHeaderHelperSync(HttpPipelineCallContext context, diff --git a/typespec-tests/src/test/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManagerTests.java b/typespec-tests/src/test/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManagerTests.java index c5a4eb63ee..773f8171b0 100644 --- a/typespec-tests/src/test/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManagerTests.java +++ b/typespec-tests/src/test/java/com/azure/resourcemanager/models/commontypes/managedidentity/ManagedIdentityManagerTests.java @@ -9,31 +9,30 @@ import com.azure.resourcemanager.models.commontypes.managedidentity.models.ManagedServiceIdentity; import com.azure.resourcemanager.models.commontypes.managedidentity.models.ManagedServiceIdentityType; import com.azure.resourcemanager.models.commontypes.managedidentity.models.UserAssignedIdentity; +import java.util.HashMap; +import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.utils.ArmUtils; -import java.util.HashMap; -import java.util.Map; - public class ManagedIdentityManagerTests { - private static final String USER_ASSIGNED_IDENTITIES_KEY = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"; - private final ManagedIdentityManager manager = ManagedIdentityManager.authenticate( - ArmUtils.createTestHttpPipeline(), - ArmUtils.getAzureProfile()); + private static final String USER_ASSIGNED_IDENTITIES_KEY + = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"; + private final ManagedIdentityManager manager + = ManagedIdentityManager.authenticate(ArmUtils.createTestHttpPipeline(), ArmUtils.getAzureProfile()); @Test public void testManagedIdentityManager() { Map tagsMap = new HashMap<>(); tagsMap.put("tagKey1", "tagValue1"); ManagedIdentityTrackedResource resource = manager.managedIdentityTrackedResources() - .define("identity") - .withRegion(Region.US_EAST) - .withExistingResourceGroup("test-rg") - .withProperties(new ManagedIdentityTrackedResourceProperties()) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) - .withTags(tagsMap) - .create(); + .define("identity") + .withRegion(Region.US_EAST) + .withExistingResourceGroup("test-rg") + .withProperties(new ManagedIdentityTrackedResourceProperties()) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) + .withTags(tagsMap) + .create(); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, resource.identity().type()); Assertions.assertNotNull(resource.identity().principalId()); Assertions.assertNotNull(resource.identity().tenantId()); @@ -45,17 +44,17 @@ public void testManagedIdentityManager() { Map userAssignedIdentityMap = new HashMap<>(); userAssignedIdentityMap.put(USER_ASSIGNED_IDENTITIES_KEY, new UserAssignedIdentity()); - resource.update().withIdentity(new ManagedServiceIdentity() - .withType(ManagedServiceIdentityType.SYSTEM_AND_USER_ASSIGNED_V3) - .withUserAssignedIdentities(userAssignedIdentityMap)) - .apply(); + resource.update() + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_AND_USER_ASSIGNED_V3) + .withUserAssignedIdentities(userAssignedIdentityMap)) + .apply(); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_AND_USER_ASSIGNED_V3, resource.identity().type()); Assertions.assertNotNull(resource.identity().principalId()); Assertions.assertNotNull(resource.identity().tenantId()); Assertions.assertNotNull(resource.identity().userAssignedIdentities()); Assertions.assertEquals(1, resource.identity().userAssignedIdentities().size()); - UserAssignedIdentity userAssignedIdentity = resource.identity() - .userAssignedIdentities().get(USER_ASSIGNED_IDENTITIES_KEY); + UserAssignedIdentity userAssignedIdentity + = resource.identity().userAssignedIdentities().get(USER_ASSIGNED_IDENTITIES_KEY); Assertions.assertNotNull(userAssignedIdentity.principalId()); Assertions.assertNotNull(userAssignedIdentity.clientId()); diff --git a/typespec-tests/src/test/java/com/azure/resourcemanager/models/resources/ArmResourceTest.java b/typespec-tests/src/test/java/com/azure/resourcemanager/models/resources/ArmResourceTest.java index fc5dff12b0..586e054eb7 100644 --- a/typespec-tests/src/test/java/com/azure/resourcemanager/models/resources/ArmResourceTest.java +++ b/typespec-tests/src/test/java/com/azure/resourcemanager/models/resources/ArmResourceTest.java @@ -3,47 +3,49 @@ package com.azure.resourcemanager.models.resources; +import com.azure.core.management.Region; +import com.azure.core.util.Context; import com.azure.resourcemanager.models.resources.models.NestedProxyResource; import com.azure.resourcemanager.models.resources.models.NestedProxyResourceProperties; import com.azure.resourcemanager.models.resources.models.NotificationDetails; import com.azure.resourcemanager.models.resources.models.ProvisioningState; import com.azure.resourcemanager.models.resources.models.TopLevelTrackedResource; import com.azure.resourcemanager.models.resources.models.TopLevelTrackedResourceProperties; -import com.azure.core.management.Region; -import com.azure.core.util.Context; -import org.utils.ArmUtils; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.List; import java.util.stream.Collectors; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.utils.ArmUtils; public class ArmResourceTest { - private static final String TOP_LEVEL_TRACKED_RESOURCE_ID = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Models.Resources/topLevelTrackedResources/top"; + private static final String TOP_LEVEL_TRACKED_RESOURCE_ID + = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Models.Resources/topLevelTrackedResources/top"; private static final String TOP_LEVEL_TRACKED_RESOURCE_NAME = "top"; - private static final String TOP_LEVEL_TRACKED_RESOURCE_TYPE = "Azure.ResourceManager.Models.Resources/topLevelTrackedResources"; - private static final String NESTED_PROXY_RESOURCE_ID = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Models.Resources/topLevelTrackedResources/top/nestedProxyResources/nested"; + private static final String TOP_LEVEL_TRACKED_RESOURCE_TYPE + = "Azure.ResourceManager.Models.Resources/topLevelTrackedResources"; + private static final String NESTED_PROXY_RESOURCE_ID + = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Models.Resources/topLevelTrackedResources/top/nestedProxyResources/nested"; private static final String NESTED_PROXY_RESOURCE_NAME = "nested"; - private static final String NESTED_PROXY_RESOURCE_TYPE = "Azure.ResourceManager.Models.Resources/topLevelTrackedResources/top/nestedProxyResources"; + private static final String NESTED_PROXY_RESOURCE_TYPE + = "Azure.ResourceManager.Models.Resources/topLevelTrackedResources/top/nestedProxyResources"; private static final Region TOP_LEVEL_TRACKED_RESOURCE_REGION = Region.US_EAST; private static final String RESOURCE_DESCRIPTION_VALID = "valid"; private static final String RESOURCE_DESCRIPTION_VALID2 = "valid2"; private static final ProvisioningState RESOURCE_PROVISIONING_STATE = ProvisioningState.SUCCEEDED; private static final String RESOURCE_GROUP_NAME = "test-rg"; private static final String NOTIFICATION_DETAILS_MESSAGE = "Resource action at top level."; - private final ResourcesManager manager = ResourcesManager.authenticate( - ArmUtils.createTestHttpPipeline(), - ArmUtils.getAzureProfile()); + private final ResourcesManager manager + = ResourcesManager.authenticate(ArmUtils.createTestHttpPipeline(), ArmUtils.getAzureProfile()); @Test public void testTopLevelTrackedResource() { // TopLevelTrackedResources.createOrReplace TopLevelTrackedResource topLevelTrackedResource = manager.topLevelTrackedResources() - .define(TOP_LEVEL_TRACKED_RESOURCE_NAME) - .withRegion(Region.US_EAST) - .withExistingResourceGroup(RESOURCE_GROUP_NAME) - .withProperties(new TopLevelTrackedResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID)) - .create(); + .define(TOP_LEVEL_TRACKED_RESOURCE_NAME) + .withRegion(Region.US_EAST) + .withExistingResourceGroup(RESOURCE_GROUP_NAME) + .withProperties(new TopLevelTrackedResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID)) + .create(); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_ID, topLevelTrackedResource.id()); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_NAME, topLevelTrackedResource.name()); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_TYPE, topLevelTrackedResource.type()); @@ -52,15 +54,18 @@ public void testTopLevelTrackedResource() { Assertions.assertEquals(RESOURCE_DESCRIPTION_VALID, topLevelTrackedResource.properties().description()); Assertions.assertEquals(RESOURCE_PROVISIONING_STATE, topLevelTrackedResource.properties().provisioningState()); - manager.topLevelTrackedResources().actionSync(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME, + manager.topLevelTrackedResources() + .actionSync(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME, new NotificationDetails().withMessage(NOTIFICATION_DETAILS_MESSAGE).withUrgent(true)); - topLevelTrackedResource.actionSync(new NotificationDetails() - .withMessage(NOTIFICATION_DETAILS_MESSAGE).withUrgent(true)); + topLevelTrackedResource + .actionSync(new NotificationDetails().withMessage(NOTIFICATION_DETAILS_MESSAGE).withUrgent(true)); // TopLevelTrackedResources.listByResourceGroup List topLevelTrackedResourceList = manager.topLevelTrackedResources() - .listByResourceGroup(RESOURCE_GROUP_NAME).stream().collect(Collectors.toList()); + .listByResourceGroup(RESOURCE_GROUP_NAME) + .stream() + .collect(Collectors.toList()); Assertions.assertEquals(1, topLevelTrackedResourceList.size()); topLevelTrackedResource = topLevelTrackedResourceList.get(0); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_ID, topLevelTrackedResource.id()); @@ -73,10 +78,10 @@ public void testTopLevelTrackedResource() { // TopLevelTrackedResources.listBySubscription topLevelTrackedResourceList = manager.topLevelTrackedResources() - .list() - .stream() - .filter(resource -> TOP_LEVEL_TRACKED_RESOURCE_ID.equals(resource.id())) - .collect(Collectors.toList()); + .list() + .stream() + .filter(resource -> TOP_LEVEL_TRACKED_RESOURCE_ID.equals(resource.id())) + .collect(Collectors.toList()); Assertions.assertEquals(1, topLevelTrackedResourceList.size()); topLevelTrackedResource = topLevelTrackedResourceList.get(0); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_ID, topLevelTrackedResource.id()); @@ -89,7 +94,7 @@ public void testTopLevelTrackedResource() { // TopLevelTrackedResources.get topLevelTrackedResource = manager.topLevelTrackedResources() - .getByResourceGroup(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME); + .getByResourceGroup(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_ID, topLevelTrackedResource.id()); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_NAME, topLevelTrackedResource.name()); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_TYPE, topLevelTrackedResource.type()); @@ -100,9 +105,8 @@ public void testTopLevelTrackedResource() { // TopLevelTrackedResources.update topLevelTrackedResource.update() - .withProperties( - new TopLevelTrackedResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID2)) - .apply(); + .withProperties(new TopLevelTrackedResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID2)) + .apply(); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_ID, topLevelTrackedResource.id()); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_NAME, topLevelTrackedResource.name()); Assertions.assertEquals(TOP_LEVEL_TRACKED_RESOURCE_TYPE, topLevelTrackedResource.type()); @@ -119,10 +123,10 @@ public void testTopLevelTrackedResource() { public void testNestedProxyResource() { // NestedProxyResources.createOrReplace NestedProxyResource nestedProxyResource = manager.nestedProxyResources() - .define(NESTED_PROXY_RESOURCE_NAME) - .withExistingTopLevelTrackedResource(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME) - .withProperties(new NestedProxyResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID)) - .create(); + .define(NESTED_PROXY_RESOURCE_NAME) + .withExistingTopLevelTrackedResource(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME) + .withProperties(new NestedProxyResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID)) + .create(); Assertions.assertEquals(NESTED_PROXY_RESOURCE_ID, nestedProxyResource.id()); Assertions.assertEquals(NESTED_PROXY_RESOURCE_NAME, nestedProxyResource.name()); Assertions.assertEquals(NESTED_PROXY_RESOURCE_TYPE, nestedProxyResource.type()); @@ -132,8 +136,9 @@ public void testNestedProxyResource() { // NestedProxyResources.listByTopLevelTrackedResource List nestedProxyResourceList = manager.nestedProxyResources() - .listByTopLevelTrackedResource(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME) - .stream().collect(Collectors.toList()); + .listByTopLevelTrackedResource(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME) + .stream() + .collect(Collectors.toList()); Assertions.assertEquals(1, nestedProxyResourceList.size()); nestedProxyResource = nestedProxyResourceList.get(0); Assertions.assertEquals(NESTED_PROXY_RESOURCE_ID, nestedProxyResource.id()); @@ -145,7 +150,7 @@ public void testNestedProxyResource() { // NestedProxyResources.get nestedProxyResource = manager.nestedProxyResources() - .get(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME, NESTED_PROXY_RESOURCE_NAME); + .get(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME, NESTED_PROXY_RESOURCE_NAME); Assertions.assertEquals(NESTED_PROXY_RESOURCE_ID, nestedProxyResource.id()); Assertions.assertEquals(NESTED_PROXY_RESOURCE_NAME, nestedProxyResource.name()); Assertions.assertEquals(NESTED_PROXY_RESOURCE_TYPE, nestedProxyResource.type()); @@ -155,9 +160,8 @@ public void testNestedProxyResource() { // NestedProxyResources.update nestedProxyResource.update() - .withProperties( - new NestedProxyResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID2)) - .apply(); + .withProperties(new NestedProxyResourceProperties().withDescription(RESOURCE_DESCRIPTION_VALID2)) + .apply(); Assertions.assertEquals(NESTED_PROXY_RESOURCE_ID, nestedProxyResource.id()); Assertions.assertEquals(NESTED_PROXY_RESOURCE_NAME, nestedProxyResource.name()); Assertions.assertEquals(NESTED_PROXY_RESOURCE_TYPE, nestedProxyResource.type()); @@ -166,6 +170,7 @@ public void testNestedProxyResource() { Assertions.assertEquals(RESOURCE_PROVISIONING_STATE, nestedProxyResource.properties().provisioningState()); // NestedProxyResources.delete - manager.nestedProxyResources().delete(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME, NESTED_PROXY_RESOURCE_NAME); + manager.nestedProxyResources() + .delete(RESOURCE_GROUP_NAME, TOP_LEVEL_TRACKED_RESOURCE_NAME, NESTED_PROXY_RESOURCE_NAME); } } diff --git a/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdTests.java b/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdTests.java index 3f768c3a45..492543c65d 100644 --- a/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdTests.java +++ b/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/XmsClientRequestIdTests.java @@ -3,8 +3,6 @@ package com.azure.specialheaders.xmsclientrequestid; -import com.azure.specialheaders.xmsclientrequestid.XmsClientRequestIdClient; -import com.azure.specialheaders.xmsclientrequestid.XmsClientRequestIdClientBuilder; import org.junit.jupiter.api.Test; public class XmsClientRequestIdTests { diff --git a/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/generated/XmsClientRequestIdClientTestBase.java b/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/generated/XmsClientRequestIdClientTestBase.java index 0a4be4cc4e..817900f5a3 100644 --- a/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/generated/XmsClientRequestIdClientTestBase.java +++ b/typespec-tests/src/test/java/com/azure/specialheaders/xmsclientrequestid/generated/XmsClientRequestIdClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class XmsClientRequestIdClientTestBase extends TestProxyTestBase { protected void beforeTest() { XmsClientRequestIdClientBuilder xmsClientRequestIdClientbuilder = new XmsClientRequestIdClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - xmsClientRequestIdClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { xmsClientRequestIdClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } xmsClientRequestIdClient = xmsClientRequestIdClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/armstreamstyleserialization/StreamStyleSerializationTests.java b/typespec-tests/src/test/java/com/cadl/armstreamstyleserialization/StreamStyleSerializationTests.java index 7b6a066c36..4e9f2afae6 100644 --- a/typespec-tests/src/test/java/com/cadl/armstreamstyleserialization/StreamStyleSerializationTests.java +++ b/typespec-tests/src/test/java/com/cadl/armstreamstyleserialization/StreamStyleSerializationTests.java @@ -9,11 +9,10 @@ import com.cadl.armstreamstyleserialization.models.Error; import com.cadl.armstreamstyleserialization.models.SawShark; import com.cadl.armstreamstyleserialization.models.Shark; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.io.IOException; import java.io.StringWriter; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class StreamStyleSerializationTests { @Test @@ -25,15 +24,16 @@ public void testDuplicatePropertiesSerialization() throws IOException { JsonWriter jsonWriter = JsonProviders.createWriter(stringWriter); model.toJson(jsonWriter); jsonWriter.flush(); - model = BinaryData.fromString(stringWriter.toString()) - .toObject(SawShark.class); + model = BinaryData.fromString(stringWriter.toString()).toObject(SawShark.class); Assertions.assertEquals(age, model.age()); } @Test public void testManagementErrorDeserialization() throws IOException { - final String errorBodyWithError = "{\"error\":{\"code\":\"WepAppError\",\"message\":\"Web app error.\",\"additionalProperty\":\"Deployment error.\",\"details\":[{\"code\":\"InnerError\", \"additionalProperty\": \"nested\"}]}}"; - final String errorBodyWithoutError = "{\"code\":\"WepAppError\",\"message\":\"Web app error.\",\"additionalProperty\":\"Deployment error.\",\"details\":[{\"code\":\"InnerError\", \"additionalProperty\": \"nested\"}]}"; + final String errorBodyWithError + = "{\"error\":{\"code\":\"WepAppError\",\"message\":\"Web app error.\",\"additionalProperty\":\"Deployment error.\",\"details\":[{\"code\":\"InnerError\", \"additionalProperty\": \"nested\"}]}}"; + final String errorBodyWithoutError + = "{\"code\":\"WepAppError\",\"message\":\"Web app error.\",\"additionalProperty\":\"Deployment error.\",\"details\":[{\"code\":\"InnerError\", \"additionalProperty\": \"nested\"}]}"; SerializerAdapter serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); Error error = serializerAdapter.deserialize(errorBodyWithError, Error.class, SerializerEncoding.JSON); Assertions.assertEquals("WepAppError", error.getCode()); diff --git a/typespec-tests/src/test/java/com/cadl/builtin/ClientOptionsTests.java b/typespec-tests/src/test/java/com/cadl/builtin/ClientOptionsTests.java index 7cf9de84d0..0af27a9a13 100644 --- a/typespec-tests/src/test/java/com/cadl/builtin/ClientOptionsTests.java +++ b/typespec-tests/src/test/java/com/cadl/builtin/ClientOptionsTests.java @@ -8,28 +8,26 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.test.http.MockHttpResponse; import com.azure.core.util.ClientOptions; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -import java.nio.charset.StandardCharsets; -import java.util.Arrays; - public class ClientOptionsTests { @Test public void testClientOptions() { - BuiltinClient client = new BuiltinClientBuilder() - .endpoint("http://localhost:3000") - .clientOptions(new ClientOptions().setHeaders(Arrays.asList( - new HttpHeader("header1", "value1"), - new HttpHeader("header2", "value2")))) - .httpClient(request -> { - Assertions.assertEquals("value1", request.getHeaders().getValue(HttpHeaderName.fromString("header1"))); - Assertions.assertEquals("value2", request.getHeaders().getValue(HttpHeaderName.fromString("header2"))); - return Mono.just(new MockHttpResponse(request, 200, new HttpHeaders(), "{}".getBytes(StandardCharsets.UTF_8))); - }) - .buildClient(); + BuiltinClient client = new BuiltinClientBuilder().endpoint("http://localhost:3000") + .clientOptions(new ClientOptions() + .setHeaders(Arrays.asList(new HttpHeader("header1", "value1"), new HttpHeader("header2", "value2")))) + .httpClient(request -> { + Assertions.assertEquals("value1", request.getHeaders().getValue(HttpHeaderName.fromString("header1"))); + Assertions.assertEquals("value2", request.getHeaders().getValue(HttpHeaderName.fromString("header2"))); + return Mono + .just(new MockHttpResponse(request, 200, new HttpHeaders(), "{}".getBytes(StandardCharsets.UTF_8))); + }) + .buildClient(); client.read("", ""); } diff --git a/typespec-tests/src/test/java/com/cadl/builtin/EncodeTests.java b/typespec-tests/src/test/java/com/cadl/builtin/EncodeTests.java index 51f3e8eae0..681fefa61e 100644 --- a/typespec-tests/src/test/java/com/cadl/builtin/EncodeTests.java +++ b/typespec-tests/src/test/java/com/cadl/builtin/EncodeTests.java @@ -7,12 +7,11 @@ import com.cadl.builtin.models.Encoded; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.nio.charset.StandardCharsets; import java.time.Duration; import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class EncodeTests { diff --git a/typespec-tests/src/test/java/com/cadl/builtin/ExceptionTests.java b/typespec-tests/src/test/java/com/cadl/builtin/ExceptionTests.java index a992f960e3..acf1510994 100644 --- a/typespec-tests/src/test/java/com/cadl/builtin/ExceptionTests.java +++ b/typespec-tests/src/test/java/com/cadl/builtin/ExceptionTests.java @@ -6,11 +6,10 @@ import com.azure.core.exception.ResourceNotFoundException; import com.azure.core.http.HttpHeaders; import com.azure.core.test.http.MockHttpResponse; +import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -import java.nio.charset.StandardCharsets; - public class ExceptionTests { @Test @@ -18,18 +17,18 @@ public void testExceptionValue() { String responseStr = "{\"error\":{\"code\":\"RESOURCE_NOT_FOUND\",\"message\":\"resource not found\"}}"; BuiltinAsyncClient client = new BuiltinClientBuilder().endpoint("http://localhost:3000") - .httpClient(request -> Mono.just(new MockHttpResponse(request, 404, new HttpHeaders(), - responseStr.getBytes(StandardCharsets.UTF_8)))) + .httpClient(request -> Mono.just( + new MockHttpResponse(request, 404, new HttpHeaders(), responseStr.getBytes(StandardCharsets.UTF_8)))) .buildAsyncClient(); try { client.read("q", "q").block(); } catch (ResourceNotFoundException e) { // TODO (weidxu) fix - //org.opentest4j.AssertionFailedError: - //Expected :class com.azure.core.models.ResponseError - //Actual :class java.util.LinkedHashMap - // Assertions.assertEquals(ResponseError.class, e.getValue().getClass()); + // org.opentest4j.AssertionFailedError: + // Expected :class com.azure.core.models.ResponseError + // Actual :class java.util.LinkedHashMap + // Assertions.assertEquals(ResponseError.class, e.getValue().getClass()); } } } diff --git a/typespec-tests/src/test/java/com/cadl/builtin/generated/BuiltinClientTestBase.java b/typespec-tests/src/test/java/com/cadl/builtin/generated/BuiltinClientTestBase.java index a4dae20355..5eefd8e771 100644 --- a/typespec-tests/src/test/java/com/cadl/builtin/generated/BuiltinClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/builtin/generated/BuiltinClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class BuiltinClientTestBase extends TestProxyTestBase { protected void beforeTest() { BuiltinClientBuilder builtinClientbuilder = new BuiltinClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - builtinClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { builtinClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } builtinClient = builtinClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/discriminatoredgecases/generated/DiscriminatorEdgeCasesClientTestBase.java b/typespec-tests/src/test/java/com/cadl/discriminatoredgecases/generated/DiscriminatorEdgeCasesClientTestBase.java index 440b20306e..65d2af1b7c 100644 --- a/typespec-tests/src/test/java/com/cadl/discriminatoredgecases/generated/DiscriminatorEdgeCasesClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/discriminatoredgecases/generated/DiscriminatorEdgeCasesClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -25,11 +24,9 @@ protected void beforeTest() { DiscriminatorEdgeCasesClientBuilder discriminatorEdgeCasesClientbuilder = new DiscriminatorEdgeCasesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - discriminatorEdgeCasesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { discriminatorEdgeCasesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } discriminatorEdgeCasesClient = discriminatorEdgeCasesClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/enumservice/EnumTests.java b/typespec-tests/src/test/java/com/cadl/enumservice/EnumTests.java index c9d4f90903..8fbb687aa6 100644 --- a/typespec-tests/src/test/java/com/cadl/enumservice/EnumTests.java +++ b/typespec-tests/src/test/java/com/cadl/enumservice/EnumTests.java @@ -12,18 +12,17 @@ import com.cadl.enumservice.implementation.EnumServiceClientImpl; import com.cadl.enumservice.models.ColorModel; import com.cadl.enumservice.models.Priority; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Mono; - import java.lang.reflect.Field; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.List; import java.util.function.Consumer; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.mockito.ArgumentCaptor; +import org.mockito.Mockito; +import reactor.core.publisher.Mono; public class EnumTests { @@ -35,13 +34,18 @@ public void testStringArrayInParameter() throws Exception { ArgumentCaptor> enumArrayArgumentCaptor = ArgumentCaptor.forClass(List.class); ArgumentCaptor requestOptionsArgumentCaptor = ArgumentCaptor.forClass(RequestOptions.class); - Mockito.when(impl.setStringEnumArrayWithResponseAsync(enumArrayArgumentCaptor.capture(), requestOptionsArgumentCaptor.capture())) - .thenReturn(Mono.just(new SimpleResponse<>(null, 200, new HttpHeaders(), BinaryData.fromString("\"OK\"")))); + Mockito + .when(impl.setStringEnumArrayWithResponseAsync(enumArrayArgumentCaptor.capture(), + requestOptionsArgumentCaptor.capture())) + .thenReturn(Mono.just(new SimpleResponse<>(null, 200, new HttpHeaders(), BinaryData.fromString("\"OK\"")))); EnumServiceAsyncClient client = new EnumServiceAsyncClient(impl); // normal case - client.setStringEnumArray(Arrays.asList(ColorModel.BLUE, ColorModel.GREEN), Arrays.asList(ColorModel.GREEN, ColorModel.RED)).block(); + client + .setStringEnumArray(Arrays.asList(ColorModel.BLUE, ColorModel.GREEN), + Arrays.asList(ColorModel.GREEN, ColorModel.RED)) + .block(); Assertions.assertEquals(Arrays.asList(ColorModel.BLUE.toString(), ColorModel.GREEN.toString()), enumArrayArgumentCaptor.getValue()); @@ -69,8 +73,10 @@ public void testIntArrayInParameter() throws Exception { ArgumentCaptor> enumArrayArgumentCaptor = ArgumentCaptor.forClass(List.class); ArgumentCaptor requestOptionsArgumentCaptor = ArgumentCaptor.forClass(RequestOptions.class); - Mockito.when(impl.setIntEnumArrayWithResponseAsync(enumArrayArgumentCaptor.capture(), requestOptionsArgumentCaptor.capture())) - .thenReturn(Mono.just(new SimpleResponse<>(null, 200, new HttpHeaders(), BinaryData.fromString("\"OK\"")))); + Mockito + .when(impl.setIntEnumArrayWithResponseAsync(enumArrayArgumentCaptor.capture(), + requestOptionsArgumentCaptor.capture())) + .thenReturn(Mono.just(new SimpleResponse<>(null, 200, new HttpHeaders(), BinaryData.fromString("\"OK\"")))); EnumServiceAsyncClient client = new EnumServiceAsyncClient(impl); @@ -102,13 +108,18 @@ public void testStringArrayAsMulti() throws Exception { ArgumentCaptor> enumArrayArgumentCaptor = ArgumentCaptor.forClass(List.class); ArgumentCaptor requestOptionsArgumentCaptor = ArgumentCaptor.forClass(RequestOptions.class); - Mockito.when(impl.setStringEnumMultiWithResponseAsync(enumArrayArgumentCaptor.capture(), requestOptionsArgumentCaptor.capture())) - .thenReturn(Mono.just(new SimpleResponse<>(null, 200, new HttpHeaders(), BinaryData.fromString("\"OK\"")))); + Mockito + .when(impl.setStringEnumMultiWithResponseAsync(enumArrayArgumentCaptor.capture(), + requestOptionsArgumentCaptor.capture())) + .thenReturn(Mono.just(new SimpleResponse<>(null, 200, new HttpHeaders(), BinaryData.fromString("\"OK\"")))); EnumServiceAsyncClient client = new EnumServiceAsyncClient(impl); // normal case - client.setStringEnumMulti(Arrays.asList(ColorModel.BLUE, ColorModel.GREEN), Arrays.asList(ColorModel.GREEN, ColorModel.RED)).block(); + client + .setStringEnumMulti(Arrays.asList(ColorModel.BLUE, ColorModel.GREEN), + Arrays.asList(ColorModel.GREEN, ColorModel.RED)) + .block(); Assertions.assertEquals(Arrays.asList(ColorModel.BLUE.toString(), ColorModel.GREEN.toString()), enumArrayArgumentCaptor.getValue()); @@ -120,7 +131,7 @@ public void testStringArrayAsMulti() throws Exception { private static void verifyQuery(String query, String key, String value) { Assertions.assertEquals( - URLEncoder.encode(key, StandardCharsets.UTF_8) + "=" + URLEncoder.encode( value, StandardCharsets.UTF_8), + URLEncoder.encode(key, StandardCharsets.UTF_8) + "=" + URLEncoder.encode(value, StandardCharsets.UTF_8), query); } diff --git a/typespec-tests/src/test/java/com/cadl/enumservice/generated/EnumServiceClientTestBase.java b/typespec-tests/src/test/java/com/cadl/enumservice/generated/EnumServiceClientTestBase.java index cb8cf1cf14..4ccfdf71cb 100644 --- a/typespec-tests/src/test/java/com/cadl/enumservice/generated/EnumServiceClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/enumservice/generated/EnumServiceClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class EnumServiceClientTestBase extends TestProxyTestBase { protected void beforeTest() { EnumServiceClientBuilder enumServiceClientbuilder = new EnumServiceClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - enumServiceClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { enumServiceClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } enumServiceClient = enumServiceClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/errormodel/generated/ErrorModelClientTestBase.java b/typespec-tests/src/test/java/com/cadl/errormodel/generated/ErrorModelClientTestBase.java index c4a2b394f1..61b02490a2 100644 --- a/typespec-tests/src/test/java/com/cadl/errormodel/generated/ErrorModelClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/errormodel/generated/ErrorModelClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ErrorModelClientTestBase extends TestProxyTestBase { protected void beforeTest() { ErrorModelClientBuilder errorModelClientbuilder = new ErrorModelClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - errorModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { errorModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } errorModelClient = errorModelClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/flatten/FlattenTests.java b/typespec-tests/src/test/java/com/cadl/flatten/FlattenTests.java index b0954019e9..613893f87d 100644 --- a/typespec-tests/src/test/java/com/cadl/flatten/FlattenTests.java +++ b/typespec-tests/src/test/java/com/cadl/flatten/FlattenTests.java @@ -10,12 +10,11 @@ import com.azure.core.util.UrlBuilder; import com.cadl.flatten.implementation.FlattenClientImpl; import com.cadl.flatten.models.User; +import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -import java.util.concurrent.atomic.AtomicReference; - public class FlattenTests { @Test @@ -23,26 +22,27 @@ public void testFlatten() { AtomicReference idCaptor = new AtomicReference<>(); AtomicReference payloadCaptor = new AtomicReference<>(); - HttpPipeline pipeline = new HttpPipelineBuilder() - .httpClient(request -> { - payloadCaptor.set(request.getBodyAsBinaryData()); - idCaptor.set(UrlBuilder.parse(request.getUrl()).getQuery().get("id")); - return Mono.just(new MockHttpResponse(request, 200)); - }) - .build(); - FlattenClientImpl impl = new FlattenClientImpl(pipeline, "https://localhost", - FlattenServiceVersion.V2022_06_01_PREVIEW); + HttpPipeline pipeline = new HttpPipelineBuilder().httpClient(request -> { + payloadCaptor.set(request.getBodyAsBinaryData()); + idCaptor.set(UrlBuilder.parse(request.getUrl()).getQuery().get("id")); + return Mono.just(new MockHttpResponse(request, 200)); + }).build(); + FlattenClientImpl impl + = new FlattenClientImpl(pipeline, "https://localhost", FlattenServiceVersion.V2022_06_01_PREVIEW); FlattenAsyncClient client = new FlattenAsyncClient(impl); client.send("id1", "host", "input1", 11, new User("user1")).block(); Assertions.assertEquals("id1", idCaptor.get()); - Assertions.assertEquals("{\"endpoint\":\"host\",\"input\":\"input1\",\"constant\":\"constant\",\"requiredInt\":11,\"user\":{\"user\":\"user1\"}}", + Assertions.assertEquals( + "{\"endpoint\":\"host\",\"input\":\"input1\",\"constant\":\"constant\",\"requiredInt\":11,\"user\":{\"user\":\"user1\"}}", payloadCaptor.get().toString()); client.send("id2", "host", "input2", 11).block(); Assertions.assertEquals("id2", idCaptor.get()); - Assertions.assertEquals("{\"endpoint\":\"host\",\"input\":\"input2\",\"constant\":\"constant\",\"requiredInt\":11}", payloadCaptor.get().toString()); + Assertions.assertEquals( + "{\"endpoint\":\"host\",\"input\":\"input2\",\"constant\":\"constant\",\"requiredInt\":11}", + payloadCaptor.get().toString()); } } diff --git a/typespec-tests/src/test/java/com/cadl/flatten/generated/FlattenClientTestBase.java b/typespec-tests/src/test/java/com/cadl/flatten/generated/FlattenClientTestBase.java index 3dae50b547..f0f266c446 100644 --- a/typespec-tests/src/test/java/com/cadl/flatten/generated/FlattenClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/flatten/generated/FlattenClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class FlattenClientTestBase extends TestProxyTestBase { protected void beforeTest() { FlattenClientBuilder flattenClientbuilder = new FlattenClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - flattenClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { flattenClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } flattenClient = flattenClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/internal/generated/InternalClientTestBase.java b/typespec-tests/src/test/java/com/cadl/internal/generated/InternalClientTestBase.java index 0603f3efb8..b0ea1926fb 100644 --- a/typespec-tests/src/test/java/com/cadl/internal/generated/InternalClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/internal/generated/InternalClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class InternalClientTestBase extends TestProxyTestBase { protected void beforeTest() { InternalClientBuilder internalClientbuilder = new InternalClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - internalClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { internalClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } internalClient = internalClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/literalservice/generated/LiteralServiceClientTestBase.java b/typespec-tests/src/test/java/com/cadl/literalservice/generated/LiteralServiceClientTestBase.java index 729b11f6c9..65ad042113 100644 --- a/typespec-tests/src/test/java/com/cadl/literalservice/generated/LiteralServiceClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/literalservice/generated/LiteralServiceClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class LiteralServiceClientTestBase extends TestProxyTestBase { protected void beforeTest() { LiteralServiceClientBuilder literalServiceClientbuilder = new LiteralServiceClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - literalServiceClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { literalServiceClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } literalServiceClient = literalServiceClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/longrunning/generated/LongRunningClientTestBase.java b/typespec-tests/src/test/java/com/cadl/longrunning/generated/LongRunningClientTestBase.java index e877ce43b8..88b90a7a09 100644 --- a/typespec-tests/src/test/java/com/cadl/longrunning/generated/LongRunningClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/longrunning/generated/LongRunningClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class LongRunningClientTestBase extends TestProxyTestBase { protected void beforeTest() { LongRunningClientBuilder longRunningClientbuilder = new LongRunningClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - longRunningClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { longRunningClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } longRunningClient = longRunningClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/model/generated/ModelClientTestBase.java b/typespec-tests/src/test/java/com/cadl/model/generated/ModelClientTestBase.java index db7a1378a3..e12721c6ef 100644 --- a/typespec-tests/src/test/java/com/cadl/model/generated/ModelClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/model/generated/ModelClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ModelClientTestBase extends TestProxyTestBase { protected void beforeTest() { ModelClientBuilder modelClientbuilder = new ModelClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelClient = modelClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/multicontenttypes/generated/MultiContentTypesClientTestBase.java b/typespec-tests/src/test/java/com/cadl/multicontenttypes/generated/MultiContentTypesClientTestBase.java index 8f0be62a2f..6a34814873 100644 --- a/typespec-tests/src/test/java/com/cadl/multicontenttypes/generated/MultiContentTypesClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/multicontenttypes/generated/MultiContentTypesClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -30,33 +29,27 @@ class MultiContentTypesClientTestBase extends TestProxyTestBase { protected void beforeTest() { MultiContentTypesClientBuilder multiContentTypesClientbuilder = new MultiContentTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - multiContentTypesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { multiContentTypesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } multiContentTypesClient = multiContentTypesClientbuilder.buildClient(); MultiContentTypesClientBuilder singleContentTypeClientbuilder = new MultiContentTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - singleContentTypeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { singleContentTypeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } singleContentTypeClient = singleContentTypeClientbuilder.buildSingleContentTypeClient(); MultiContentTypesClientBuilder multipleContentTypesOnRequestClientbuilder = new MultiContentTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - multipleContentTypesOnRequestClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { multipleContentTypesOnRequestClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } multipleContentTypesOnRequestClient diff --git a/typespec-tests/src/test/java/com/cadl/multipart/generated/MultipartClientTestBase.java b/typespec-tests/src/test/java/com/cadl/multipart/generated/MultipartClientTestBase.java index caa85e2bf8..d4d2d952f9 100644 --- a/typespec-tests/src/test/java/com/cadl/multipart/generated/MultipartClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/multipart/generated/MultipartClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class MultipartClientTestBase extends TestProxyTestBase { protected void beforeTest() { MultipartClientBuilder multipartClientbuilder = new MultipartClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - multipartClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { multipartClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } multipartClient = multipartClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/multipleapiversion/generated/FirstClientTestBase.java b/typespec-tests/src/test/java/com/cadl/multipleapiversion/generated/FirstClientTestBase.java index 37a482c802..c9b287679a 100644 --- a/typespec-tests/src/test/java/com/cadl/multipleapiversion/generated/FirstClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/multipleapiversion/generated/FirstClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -32,33 +31,27 @@ class FirstClientTestBase extends TestProxyTestBase { protected void beforeTest() { FirstClientBuilder firstClientbuilder = new FirstClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - firstClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { firstClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } firstClient = firstClientbuilder.buildClient(); SecondClientBuilder secondClientbuilder = new SecondClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - secondClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { secondClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } secondClient = secondClientbuilder.buildClient(); NoApiVersionClientBuilder noApiVersionClientbuilder = new NoApiVersionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - noApiVersionClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { noApiVersionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } noApiVersionClient = noApiVersionClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/naming/generated/NamingClientTestBase.java b/typespec-tests/src/test/java/com/cadl/naming/generated/NamingClientTestBase.java index c1ea158a0f..7dc9553e5e 100644 --- a/typespec-tests/src/test/java/com/cadl/naming/generated/NamingClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/naming/generated/NamingClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class NamingClientTestBase extends TestProxyTestBase { protected void beforeTest() { NamingClientBuilder namingClientbuilder = new NamingClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - namingClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { namingClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } namingClient = namingClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/optional/generated/OptionalClientTestBase.java b/typespec-tests/src/test/java/com/cadl/optional/generated/OptionalClientTestBase.java index 0faffff942..218401ecd9 100644 --- a/typespec-tests/src/test/java/com/cadl/optional/generated/OptionalClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/optional/generated/OptionalClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class OptionalClientTestBase extends TestProxyTestBase { protected void beforeTest() { OptionalClientBuilder optionalClientbuilder = new OptionalClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - optionalClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { optionalClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } optionalClient = optionalClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/patch/PatchClientTest.java b/typespec-tests/src/test/java/com/cadl/patch/PatchClientTest.java index 7bbb2a1d76..98b8cd0bea 100644 --- a/typespec-tests/src/test/java/com/cadl/patch/PatchClientTest.java +++ b/typespec-tests/src/test/java/com/cadl/patch/PatchClientTest.java @@ -14,15 +14,15 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.JsonNodeType; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class PatchClientTest { private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); + @Test public void testSerializationForNumbers() throws JsonProcessingException { Resource resource = new Resource(); @@ -31,8 +31,8 @@ public void testSerializationForNumbers() throws JsonProcessingException { resource.setLongValue(null); String json = BinaryData.fromObject(resource).toString(); JsonNode node = OBJECT_MAPPER.readTree(json); - Assertions.assertEquals(JsonNodeType.NULL, node.get("longValue").getNodeType()); - Assertions.assertEquals(JsonNodeType.NULL, node.get("intValue").getNodeType()); + Assertions.assertEquals(JsonNodeType.NULL, node.get("longValue").getNodeType()); + Assertions.assertEquals(JsonNodeType.NULL, node.get("intValue").getNodeType()); } @Test @@ -55,7 +55,8 @@ public void testSerializationForNestedModelProperty() throws JsonProcessingExcep resource.getInnerModelProperty().setDescription(null); String json = BinaryData.fromObject(resource).toString(); JsonNode node = OBJECT_MAPPER.readTree(json); - Assertions.assertEquals(JsonNodeType.NULL, node.get("wireNameForInnerModelProperty").get("description").getNodeType()); + Assertions.assertEquals(JsonNodeType.NULL, + node.get("wireNameForInnerModelProperty").get("description").getNodeType()); // serialize for outer model property resource.setInnerModelProperty(null); @@ -161,6 +162,6 @@ public void testSerializePropertiesInUpdatedPropertiesMapOnly() throws JsonProce String json = BinaryData.fromObject(newResource).toString(); JsonNode node = OBJECT_MAPPER.readTree(json); Assertions.assertNull(node.get("description")); - Assertions.assertEquals(JsonNodeType.NULL, node.get("intValue").getNodeType()); + Assertions.assertEquals(JsonNodeType.NULL, node.get("intValue").getNodeType()); } } diff --git a/typespec-tests/src/test/java/com/cadl/patch/generated/PatchClientTestBase.java b/typespec-tests/src/test/java/com/cadl/patch/generated/PatchClientTestBase.java index 56416bbd6f..ca294dd3fb 100644 --- a/typespec-tests/src/test/java/com/cadl/patch/generated/PatchClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/patch/generated/PatchClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class PatchClientTestBase extends TestProxyTestBase { protected void beforeTest() { PatchClientBuilder patchClientbuilder = new PatchClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - patchClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { patchClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } patchClient = patchClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/protocolandconvenient/generated/ProtocolAndConvenientClientTestBase.java b/typespec-tests/src/test/java/com/cadl/protocolandconvenient/generated/ProtocolAndConvenientClientTestBase.java index d9696540f0..8dfb6e0383 100644 --- a/typespec-tests/src/test/java/com/cadl/protocolandconvenient/generated/ProtocolAndConvenientClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/protocolandconvenient/generated/ProtocolAndConvenientClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ProtocolAndConvenientClientTestBase extends TestProxyTestBase { protected void beforeTest() { ProtocolAndConvenientClientBuilder protocolAndConvenientClientbuilder = new ProtocolAndConvenientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - protocolAndConvenientClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { protocolAndConvenientClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } protocolAndConvenientClient = protocolAndConvenientClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/response/generated/ResponseClientTestBase.java b/typespec-tests/src/test/java/com/cadl/response/generated/ResponseClientTestBase.java index 2ec6ed4bb5..d3e0bcf88a 100644 --- a/typespec-tests/src/test/java/com/cadl/response/generated/ResponseClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/response/generated/ResponseClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ResponseClientTestBase extends TestProxyTestBase { protected void beforeTest() { ResponseClientBuilder responseClientbuilder = new ResponseClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - responseClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { responseClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } responseClient = responseClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/server/ServerTests.java b/typespec-tests/src/test/java/com/cadl/server/ServerTests.java index 57717b7df8..865c655367 100644 --- a/typespec-tests/src/test/java/com/cadl/server/ServerTests.java +++ b/typespec-tests/src/test/java/com/cadl/server/ServerTests.java @@ -13,10 +13,7 @@ public class ServerTests { @Disabled("test calls httpbin.org") @Test public void serverTests() { - HttpbinClient client = new HttpbinClientBuilder() - .domain("httpbin") - .tld("org") - .buildClient(); + HttpbinClient client = new HttpbinClientBuilder().domain("httpbin").tld("org").buildClient(); Assertions.assertEquals(204, client.statusWithResponse(204, new RequestOptions()).getStatusCode()); } } diff --git a/typespec-tests/src/test/java/com/cadl/server/generated/HttpbinClientTestBase.java b/typespec-tests/src/test/java/com/cadl/server/generated/HttpbinClientTestBase.java index 2a9a04579b..8b7bdf6e85 100644 --- a/typespec-tests/src/test/java/com/cadl/server/generated/HttpbinClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/server/generated/HttpbinClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -30,22 +29,18 @@ protected void beforeTest() { = new HttpbinClientBuilder().domain(Configuration.getGlobalConfiguration().get("DOMAIN", "httpbin")) .tld(Configuration.getGlobalConfiguration().get("TLD", "org")) .relativePath(Configuration.getGlobalConfiguration().get("RELATIVEPATH", "relativepath")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - httpbinClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { httpbinClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } httpbinClient = httpbinClientbuilder.buildClient(); ContosoClientBuilder contosoClientbuilder = new ContosoClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - contosoClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { contosoClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } contosoClient = contosoClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/specialchars/generated/SpecialCharsClientTestBase.java b/typespec-tests/src/test/java/com/cadl/specialchars/generated/SpecialCharsClientTestBase.java index 305bcc3024..8cd32fbbdb 100644 --- a/typespec-tests/src/test/java/com/cadl/specialchars/generated/SpecialCharsClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/specialchars/generated/SpecialCharsClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class SpecialCharsClientTestBase extends TestProxyTestBase { protected void beforeTest() { SpecialCharsClientBuilder specialCharsClientbuilder = new SpecialCharsClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - specialCharsClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { specialCharsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } specialCharsClient = specialCharsClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/specialheaders/generated/SpecialHeadersClientTestBase.java b/typespec-tests/src/test/java/com/cadl/specialheaders/generated/SpecialHeadersClientTestBase.java index b601dfae37..875a4bf23a 100644 --- a/typespec-tests/src/test/java/com/cadl/specialheaders/generated/SpecialHeadersClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/specialheaders/generated/SpecialHeadersClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -33,44 +32,36 @@ class SpecialHeadersClientTestBase extends TestProxyTestBase { protected void beforeTest() { SpecialHeadersClientBuilder repeatabilityHeadersClientbuilder = new SpecialHeadersClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - repeatabilityHeadersClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { repeatabilityHeadersClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } repeatabilityHeadersClient = repeatabilityHeadersClientbuilder.buildRepeatabilityHeadersClient(); SpecialHeadersClientBuilder etagHeadersClientbuilder = new SpecialHeadersClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - etagHeadersClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { etagHeadersClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } etagHeadersClient = etagHeadersClientbuilder.buildEtagHeadersClient(); SpecialHeadersClientBuilder etagHeadersOptionalBodyClientbuilder = new SpecialHeadersClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - etagHeadersOptionalBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { etagHeadersOptionalBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } etagHeadersOptionalBodyClient = etagHeadersOptionalBodyClientbuilder.buildEtagHeadersOptionalBodyClient(); SpecialHeadersClientBuilder skipSpecialHeadersClientbuilder = new SpecialHeadersClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - skipSpecialHeadersClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { skipSpecialHeadersClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } skipSpecialHeadersClient = skipSpecialHeadersClientbuilder.buildSkipSpecialHeadersClient(); diff --git a/typespec-tests/src/test/java/com/cadl/union/UnionTests.java b/typespec-tests/src/test/java/com/cadl/union/UnionTests.java index da77bf8dbb..6e834d5d77 100644 --- a/typespec-tests/src/test/java/com/cadl/union/UnionTests.java +++ b/typespec-tests/src/test/java/com/cadl/union/UnionTests.java @@ -4,15 +4,14 @@ package com.cadl.union; import com.azure.core.util.BinaryData; -import com.cadl.union.models.Result; import com.cadl.union.implementation.models.SubResult; +import com.cadl.union.models.Result; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.io.IOException; import java.util.Collections; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class UnionTests { diff --git a/typespec-tests/src/test/java/com/cadl/union/generated/UnionClientTestBase.java b/typespec-tests/src/test/java/com/cadl/union/generated/UnionClientTestBase.java index 729d93b39a..d7e3cffe9a 100644 --- a/typespec-tests/src/test/java/com/cadl/union/generated/UnionClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/union/generated/UnionClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class UnionClientTestBase extends TestProxyTestBase { protected void beforeTest() { UnionClientBuilder unionClientbuilder = new UnionClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionClient = unionClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/versioning/generated/VersioningClientTestBase.java b/typespec-tests/src/test/java/com/cadl/versioning/generated/VersioningClientTestBase.java index 75c34b610b..0ad162d007 100644 --- a/typespec-tests/src/test/java/com/cadl/versioning/generated/VersioningClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/versioning/generated/VersioningClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class VersioningClientTestBase extends TestProxyTestBase { protected void beforeTest() { VersioningClientBuilder versioningClientbuilder = new VersioningClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - versioningClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { versioningClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } versioningClient = versioningClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/cadl/visibility/PropertyVisibilityTests.java b/typespec-tests/src/test/java/com/cadl/visibility/PropertyVisibilityTests.java index 7500f9d2e3..82f8fd334f 100644 --- a/typespec-tests/src/test/java/com/cadl/visibility/PropertyVisibilityTests.java +++ b/typespec-tests/src/test/java/com/cadl/visibility/PropertyVisibilityTests.java @@ -8,11 +8,10 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; +import java.io.IOException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.io.IOException; - public class PropertyVisibilityTests { private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); diff --git a/typespec-tests/src/test/java/com/cadl/visibility/generated/VisibilityClientTestBase.java b/typespec-tests/src/test/java/com/cadl/visibility/generated/VisibilityClientTestBase.java index 313bbde5c7..4d92d95930 100644 --- a/typespec-tests/src/test/java/com/cadl/visibility/generated/VisibilityClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/visibility/generated/VisibilityClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -30,33 +29,27 @@ class VisibilityClientTestBase extends TestProxyTestBase { protected void beforeTest() { VisibilityClientBuilder visibilityClientbuilder = new VisibilityClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - visibilityClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { visibilityClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } visibilityClient = visibilityClientbuilder.buildClient(); VisibilityClientBuilder visibilityReadClientbuilder = new VisibilityClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - visibilityReadClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { visibilityReadClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } visibilityReadClient = visibilityReadClientbuilder.buildVisibilityReadClient(); VisibilityClientBuilder visibilityWriteClientbuilder = new VisibilityClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - visibilityWriteClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { visibilityWriteClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } visibilityWriteClient = visibilityWriteClientbuilder.buildVisibilityWriteClient(); diff --git a/typespec-tests/src/test/java/com/cadl/wiretype/LocalModelTests.java b/typespec-tests/src/test/java/com/cadl/wiretype/LocalModelTests.java index a23dc28b8e..176ae822dd 100644 --- a/typespec-tests/src/test/java/com/cadl/wiretype/LocalModelTests.java +++ b/typespec-tests/src/test/java/com/cadl/wiretype/LocalModelTests.java @@ -4,11 +4,10 @@ package com.cadl.wiretype; import com.azure.core.util.BinaryData; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.OffsetDateTime; import java.time.ZoneOffset; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class LocalModelTests { diff --git a/typespec-tests/src/test/java/com/cadl/wiretype/Model.java b/typespec-tests/src/test/java/com/cadl/wiretype/Model.java index 2d1e2d3ce2..bf9fe92b40 100644 --- a/typespec-tests/src/test/java/com/cadl/wiretype/Model.java +++ b/typespec-tests/src/test/java/com/cadl/wiretype/Model.java @@ -5,7 +5,6 @@ import com.azure.core.util.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; - import java.time.OffsetDateTime; public final class Model { @@ -18,11 +17,14 @@ public Model(OffsetDateTime dateTimeRfc7231) { } // Jackson fails with below error, if this private constructor not provided - // java.io.UncheckedIOException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.cadl.wiretype.Model` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) + // java.io.UncheckedIOException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct + // instance of `com.cadl.wiretype.Model` (no Creators, like default constructor, exist): cannot deserialize from + // Object value (no delegate- or property-based Creator) private Model() { } - // Alternatively, Jackson also fine with this private constructor. However, we seems do not really want this added complexity. + // Alternatively, Jackson also fine with this private constructor. However, we seems do not really want this added + // complexity. // @JsonCreator // private Model(@JsonProperty(value = "dateTimeRfc7231") DateTimeRfc1123 dateTimeRfc7231) { // this.dateTimeRfc7231 = dateTimeRfc7231; diff --git a/typespec-tests/src/test/java/com/cadl/wiretype/WireTypeTests.java b/typespec-tests/src/test/java/com/cadl/wiretype/WireTypeTests.java index 6c626d0d9f..142ed7949d 100644 --- a/typespec-tests/src/test/java/com/cadl/wiretype/WireTypeTests.java +++ b/typespec-tests/src/test/java/com/cadl/wiretype/WireTypeTests.java @@ -7,12 +7,11 @@ import com.cadl.wiretype.models.SubClass; import com.cadl.wiretype.models.SubClassBothMismatch; import com.cadl.wiretype.models.SubClassMismatch; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.time.ZoneOffset; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class WireTypeTests { diff --git a/typespec-tests/src/test/java/com/cadl/wiretype/generated/WireTypeClientTestBase.java b/typespec-tests/src/test/java/com/cadl/wiretype/generated/WireTypeClientTestBase.java index c461f76749..2ed3aa5176 100644 --- a/typespec-tests/src/test/java/com/cadl/wiretype/generated/WireTypeClientTestBase.java +++ b/typespec-tests/src/test/java/com/cadl/wiretype/generated/WireTypeClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class WireTypeClientTestBase extends TestProxyTestBase { protected void beforeTest() { WireTypeClientBuilder wireTypeClientbuilder = new WireTypeClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - wireTypeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { wireTypeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } wireTypeClient = wireTypeClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/client/naming/generated/NamingClientTestBase.java b/typespec-tests/src/test/java/com/client/naming/generated/NamingClientTestBase.java index 27c50ae9de..028f0c66ee 100644 --- a/typespec-tests/src/test/java/com/client/naming/generated/NamingClientTestBase.java +++ b/typespec-tests/src/test/java/com/client/naming/generated/NamingClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -30,33 +29,27 @@ class NamingClientTestBase extends TestProxyTestBase { protected void beforeTest() { NamingClientBuilder namingClientbuilder = new NamingClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - namingClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { namingClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } namingClient = namingClientbuilder.buildClient(); NamingClientBuilder clientModelClientbuilder = new NamingClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - clientModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { clientModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } clientModelClient = clientModelClientbuilder.buildClientModelClient(); NamingClientBuilder unionEnumClientbuilder = new NamingClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionEnumClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionEnumClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionEnumClient = unionEnumClientbuilder.buildUnionEnumClient(); diff --git a/typespec-tests/src/test/java/com/client/structure/ClientOperationGroupTests.java b/typespec-tests/src/test/java/com/client/structure/ClientOperationGroupTests.java index 8ab94d4e0f..5903e4464e 100644 --- a/typespec-tests/src/test/java/com/client/structure/ClientOperationGroupTests.java +++ b/typespec-tests/src/test/java/com/client/structure/ClientOperationGroupTests.java @@ -11,12 +11,10 @@ public class ClientOperationGroupTests { @Test public void test() { - FirstClientBuilder clientBuilder1 = new FirstClientBuilder() - .endpoint("http://localhost:3000") - .client("client-operation-group"); - SecondClientBuilder clientBuilder2 = new SecondClientBuilder() - .endpoint("http://localhost:3000") - .client("client-operation-group"); + FirstClientBuilder clientBuilder1 + = new FirstClientBuilder().endpoint("http://localhost:3000").client("client-operation-group"); + SecondClientBuilder clientBuilder2 + = new SecondClientBuilder().endpoint("http://localhost:3000").client("client-operation-group"); clientBuilder1.buildClient().one(); clientBuilder1.buildGroup3Client().two(); diff --git a/typespec-tests/src/test/java/com/client/structure/DefaultClientTests.java b/typespec-tests/src/test/java/com/client/structure/DefaultClientTests.java index c7a421cd66..6d27a9bac3 100644 --- a/typespec-tests/src/test/java/com/client/structure/DefaultClientTests.java +++ b/typespec-tests/src/test/java/com/client/structure/DefaultClientTests.java @@ -14,29 +14,23 @@ public class DefaultClientTests { - private final ServiceClientClient client = new ServiceClientClientBuilder() - .endpoint("http://localhost:3000") - .client("default").buildClient(); + private final ServiceClientClient client + = new ServiceClientClientBuilder().endpoint("http://localhost:3000").client("default").buildClient(); - private final FooClient client2 = new ServiceClientClientBuilder() - .endpoint("http://localhost:3000") - .client("default").buildFooClient(); + private final FooClient client2 + = new ServiceClientClientBuilder().endpoint("http://localhost:3000").client("default").buildFooClient(); - private final BarClient client3 = new ServiceClientClientBuilder() - .endpoint("http://localhost:3000") - .client("default").buildBarClient(); + private final BarClient client3 + = new ServiceClientClientBuilder().endpoint("http://localhost:3000").client("default").buildBarClient(); - private final QuxClient client4 = new ServiceClientClientBuilder() - .endpoint("http://localhost:3000") - .client("default").buildQuxClient(); + private final QuxClient client4 + = new ServiceClientClientBuilder().endpoint("http://localhost:3000").client("default").buildQuxClient(); - private final QuxBarClient client5 = new ServiceClientClientBuilder() - .endpoint("http://localhost:3000") - .client("default").buildQuxBarClient(); + private final QuxBarClient client5 + = new ServiceClientClientBuilder().endpoint("http://localhost:3000").client("default").buildQuxBarClient(); - private final BazFooClient client6 = new ServiceClientClientBuilder() - .endpoint("http://localhost:3000") - .client("default").buildBazFooClient(); + private final BazFooClient client6 + = new ServiceClientClientBuilder().endpoint("http://localhost:3000").client("default").buildBazFooClient(); @Test public void testClient() { diff --git a/typespec-tests/src/test/java/com/client/structure/MultiClientTests.java b/typespec-tests/src/test/java/com/client/structure/MultiClientTests.java index 63cebdb4b9..9fe2faceeb 100644 --- a/typespec-tests/src/test/java/com/client/structure/MultiClientTests.java +++ b/typespec-tests/src/test/java/com/client/structure/MultiClientTests.java @@ -11,12 +11,10 @@ public class MultiClientTests { - private final ClientAClient client1 = new ClientAClientBuilder() - .endpoint("http://localhost:3000") - .client("multi-client").buildClient(); - private final ClientBClient client2 = new ClientBClientBuilder() - .endpoint("http://localhost:3000") - .client("multi-client").buildClient(); + private final ClientAClient client1 + = new ClientAClientBuilder().endpoint("http://localhost:3000").client("multi-client").buildClient(); + private final ClientBClient client2 + = new ClientBClientBuilder().endpoint("http://localhost:3000").client("multi-client").buildClient(); @Test public void testClient() { diff --git a/typespec-tests/src/test/java/com/client/structure/OperationGroupClientTests.java b/typespec-tests/src/test/java/com/client/structure/OperationGroupClientTests.java index cf3766b18d..4c4bddc047 100644 --- a/typespec-tests/src/test/java/com/client/structure/OperationGroupClientTests.java +++ b/typespec-tests/src/test/java/com/client/structure/OperationGroupClientTests.java @@ -10,12 +10,12 @@ public class OperationGroupClientTests { - private final Group1Client client1 = new TwoOperationGroupClientBuilder() - .endpoint("http://localhost:3000") - .client("two-operation-group").buildGroup1Client(); - private final Group2Client client2 = new TwoOperationGroupClientBuilder() - .endpoint("http://localhost:3000") - .client("two-operation-group").buildGroup2Client(); + private final Group1Client client1 = new TwoOperationGroupClientBuilder().endpoint("http://localhost:3000") + .client("two-operation-group") + .buildGroup1Client(); + private final Group2Client client2 = new TwoOperationGroupClientBuilder().endpoint("http://localhost:3000") + .client("two-operation-group") + .buildGroup2Client(); @Test public void testClient() { diff --git a/typespec-tests/src/test/java/com/client/structure/RenameOperationTests.java b/typespec-tests/src/test/java/com/client/structure/RenameOperationTests.java index 9481c1c901..406dd743dc 100644 --- a/typespec-tests/src/test/java/com/client/structure/RenameOperationTests.java +++ b/typespec-tests/src/test/java/com/client/structure/RenameOperationTests.java @@ -10,12 +10,12 @@ public class RenameOperationTests { - private final RenamedOperationClient client = new RenamedOperationClientBuilder() - .endpoint("http://localhost:3000") - .client("renamed-operation").buildClient(); - private final GroupClient groupClient = new RenamedOperationClientBuilder() - .endpoint("http://localhost:3000") - .client("renamed-operation").buildGroupClient(); + private final RenamedOperationClient client = new RenamedOperationClientBuilder().endpoint("http://localhost:3000") + .client("renamed-operation") + .buildClient(); + private final GroupClient groupClient = new RenamedOperationClientBuilder().endpoint("http://localhost:3000") + .client("renamed-operation") + .buildGroupClient(); @Test public void testClient() { diff --git a/typespec-tests/src/test/java/com/client/structure/service/generated/ClientAClientTestBase.java b/typespec-tests/src/test/java/com/client/structure/service/generated/ClientAClientTestBase.java index 741f1c43b7..14d0813811 100644 --- a/typespec-tests/src/test/java/com/client/structure/service/generated/ClientAClientTestBase.java +++ b/typespec-tests/src/test/java/com/client/structure/service/generated/ClientAClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -29,11 +28,9 @@ protected void beforeTest() { ClientAClientBuilder clientAClientbuilder = new ClientAClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - clientAClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { clientAClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } clientAClient = clientAClientbuilder.buildClient(); @@ -41,11 +38,9 @@ protected void beforeTest() { ClientBClientBuilder clientBClientbuilder = new ClientBClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - clientBClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { clientBClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } clientBClient = clientBClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/client/structure/service/generated/FirstClientTestBase.java b/typespec-tests/src/test/java/com/client/structure/service/generated/FirstClientTestBase.java index 7bb8c49532..1a41669e41 100644 --- a/typespec-tests/src/test/java/com/client/structure/service/generated/FirstClientTestBase.java +++ b/typespec-tests/src/test/java/com/client/structure/service/generated/FirstClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -38,11 +37,9 @@ protected void beforeTest() { FirstClientBuilder firstClientbuilder = new FirstClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - firstClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { firstClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } firstClient = firstClientbuilder.buildClient(); @@ -50,11 +47,9 @@ protected void beforeTest() { FirstClientBuilder group3Clientbuilder = new FirstClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - group3Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { group3Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } group3Client = group3Clientbuilder.buildGroup3Client(); @@ -62,11 +57,9 @@ protected void beforeTest() { FirstClientBuilder group4Clientbuilder = new FirstClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - group4Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { group4Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } group4Client = group4Clientbuilder.buildGroup4Client(); @@ -74,11 +67,9 @@ protected void beforeTest() { SecondClientBuilder secondClientbuilder = new SecondClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - secondClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { secondClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } secondClient = secondClientbuilder.buildClient(); @@ -86,11 +77,9 @@ protected void beforeTest() { SecondClientBuilder group5Clientbuilder = new SecondClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - group5Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { group5Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } group5Client = group5Clientbuilder.buildGroup5Client(); diff --git a/typespec-tests/src/test/java/com/client/structure/service/generated/RenamedOperationClientTestBase.java b/typespec-tests/src/test/java/com/client/structure/service/generated/RenamedOperationClientTestBase.java index 1fa00c4945..ef0633249e 100644 --- a/typespec-tests/src/test/java/com/client/structure/service/generated/RenamedOperationClientTestBase.java +++ b/typespec-tests/src/test/java/com/client/structure/service/generated/RenamedOperationClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -28,11 +27,9 @@ protected void beforeTest() { RenamedOperationClientBuilder renamedOperationClientbuilder = new RenamedOperationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - renamedOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { renamedOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } renamedOperationClient = renamedOperationClientbuilder.buildClient(); @@ -40,11 +37,9 @@ protected void beforeTest() { RenamedOperationClientBuilder groupClientbuilder = new RenamedOperationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - groupClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { groupClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } groupClient = groupClientbuilder.buildGroupClient(); diff --git a/typespec-tests/src/test/java/com/client/structure/service/generated/ServiceClientClientTestBase.java b/typespec-tests/src/test/java/com/client/structure/service/generated/ServiceClientClientTestBase.java index bd22590dab..1da6ba76a4 100644 --- a/typespec-tests/src/test/java/com/client/structure/service/generated/ServiceClientClientTestBase.java +++ b/typespec-tests/src/test/java/com/client/structure/service/generated/ServiceClientClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -40,11 +39,9 @@ protected void beforeTest() { ServiceClientClientBuilder serviceClientClientbuilder = new ServiceClientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - serviceClientClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { serviceClientClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } serviceClientClient = serviceClientClientbuilder.buildClient(); @@ -52,11 +49,9 @@ protected void beforeTest() { ServiceClientClientBuilder bazFooClientbuilder = new ServiceClientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - bazFooClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { bazFooClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } bazFooClient = bazFooClientbuilder.buildBazFooClient(); @@ -64,11 +59,9 @@ protected void beforeTest() { ServiceClientClientBuilder quxClientbuilder = new ServiceClientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - quxClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { quxClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } quxClient = quxClientbuilder.buildQuxClient(); @@ -76,11 +69,9 @@ protected void beforeTest() { ServiceClientClientBuilder quxBarClientbuilder = new ServiceClientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - quxBarClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { quxBarClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } quxBarClient = quxBarClientbuilder.buildQuxBarClient(); @@ -88,11 +79,9 @@ protected void beforeTest() { ServiceClientClientBuilder fooClientbuilder = new ServiceClientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - fooClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { fooClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } fooClient = fooClientbuilder.buildFooClient(); @@ -100,11 +89,9 @@ protected void beforeTest() { ServiceClientClientBuilder barClientbuilder = new ServiceClientClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - barClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { barClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } barClient = barClientbuilder.buildBarClient(); diff --git a/typespec-tests/src/test/java/com/client/structure/service/generated/TwoOperationGroupClientTestBase.java b/typespec-tests/src/test/java/com/client/structure/service/generated/TwoOperationGroupClientTestBase.java index 1b28bd50a6..8f4431ad0f 100644 --- a/typespec-tests/src/test/java/com/client/structure/service/generated/TwoOperationGroupClientTestBase.java +++ b/typespec-tests/src/test/java/com/client/structure/service/generated/TwoOperationGroupClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -28,11 +27,9 @@ protected void beforeTest() { TwoOperationGroupClientBuilder group1Clientbuilder = new TwoOperationGroupClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - group1Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { group1Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } group1Client = group1Clientbuilder.buildGroup1Client(); @@ -40,11 +37,9 @@ protected void beforeTest() { TwoOperationGroupClientBuilder group2Clientbuilder = new TwoOperationGroupClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .client(Configuration.getGlobalConfiguration().get("CLIENT", "client")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - group2Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { group2Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } group2Client = group2Clientbuilder.buildGroup2Client(); diff --git a/typespec-tests/src/test/java/com/encode/bytes/EncodeBytesTests.java b/typespec-tests/src/test/java/com/encode/bytes/EncodeBytesTests.java index d1801110a8..fade6956d6 100644 --- a/typespec-tests/src/test/java/com/encode/bytes/EncodeBytesTests.java +++ b/typespec-tests/src/test/java/com/encode/bytes/EncodeBytesTests.java @@ -3,17 +3,16 @@ package com.encode.bytes; -import com.payload.FileUtils; import com.azure.core.util.BinaryData; import com.encode.bytes.models.Base64BytesProperty; import com.encode.bytes.models.Base64urlArrayBytesProperty; import com.encode.bytes.models.Base64urlBytesProperty; import com.encode.bytes.models.DefaultBytesProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - +import com.payload.FileUtils; import java.nio.charset.StandardCharsets; import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class EncodeBytesTests { diff --git a/typespec-tests/src/test/java/com/encode/bytes/generated/BytesClientTestBase.java b/typespec-tests/src/test/java/com/encode/bytes/generated/BytesClientTestBase.java index 4cab5d91d9..93516d55b2 100644 --- a/typespec-tests/src/test/java/com/encode/bytes/generated/BytesClientTestBase.java +++ b/typespec-tests/src/test/java/com/encode/bytes/generated/BytesClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -36,55 +35,45 @@ class BytesClientTestBase extends TestProxyTestBase { protected void beforeTest() { BytesClientBuilder queryClientbuilder = new BytesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryClient = queryClientbuilder.buildQueryClient(); BytesClientBuilder propertyClientbuilder = new BytesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - propertyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { propertyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } propertyClient = propertyClientbuilder.buildPropertyClient(); BytesClientBuilder headerClientbuilder = new BytesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - headerClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { headerClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } headerClient = headerClientbuilder.buildHeaderClient(); BytesClientBuilder requestBodyClientbuilder = new BytesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - requestBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { requestBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } requestBodyClient = requestBodyClientbuilder.buildRequestBodyClient(); BytesClientBuilder responseBodyClientbuilder = new BytesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - responseBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { responseBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } responseBodyClient = responseBodyClientbuilder.buildResponseBodyClient(); diff --git a/typespec-tests/src/test/java/com/encode/datetime/EncodeDateTimeTests.java b/typespec-tests/src/test/java/com/encode/datetime/EncodeDateTimeTests.java index 2694602f3f..05e5ee4197 100644 --- a/typespec-tests/src/test/java/com/encode/datetime/EncodeDateTimeTests.java +++ b/typespec-tests/src/test/java/com/encode/datetime/EncodeDateTimeTests.java @@ -10,14 +10,13 @@ import com.encode.datetime.models.Rfc7231DatetimeProperty; import com.encode.datetime.models.UnixTimestampArrayDatetimeProperty; import com.encode.datetime.models.UnixTimestampDatetimeProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.Instant; import java.time.OffsetDateTime; import java.time.ZoneOffset; import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class EncodeDateTimeTests { @@ -28,8 +27,10 @@ public class EncodeDateTimeTests { private final static OffsetDateTime DATE0 = OffsetDateTime.of(2022, 8, 26, 14, 38, 0, 0, ZoneOffset.UTC); private final static OffsetDateTime DATE1 = OffsetDateTime.of(2022, 8, 26, 18, 38, 0, 0, ZoneOffset.UTC); - private final static OffsetDateTime DATE2 = OffsetDateTime.ofInstant(Instant.ofEpochSecond(1686566864), ZoneOffset.UTC); - private final static OffsetDateTime DATE3 = OffsetDateTime.ofInstant(Instant.ofEpochSecond(1686734256), ZoneOffset.UTC); + private final static OffsetDateTime DATE2 + = OffsetDateTime.ofInstant(Instant.ofEpochSecond(1686566864), ZoneOffset.UTC); + private final static OffsetDateTime DATE3 + = OffsetDateTime.ofInstant(Instant.ofEpochSecond(1686734256), ZoneOffset.UTC); @Test public void testQuery() { @@ -57,7 +58,6 @@ public void testRequestHeader() { headerClient.unixTimestampArray(Arrays.asList(DATE2, DATE3)); } - @Test public void testResponseHeader() { HttpHeaderName valueHeaderName = HttpHeaderName.fromString("value"); @@ -86,7 +86,8 @@ public void testProperty() { propertyClient.unixTimestamp(new UnixTimestampDatetimeProperty(DATE2)); List array = Arrays.asList(DATE2, DATE3); - UnixTimestampArrayDatetimeProperty ret = propertyClient.unixTimestampArray(new UnixTimestampArrayDatetimeProperty(array)); + UnixTimestampArrayDatetimeProperty ret + = propertyClient.unixTimestampArray(new UnixTimestampArrayDatetimeProperty(array)); Assertions.assertEquals(array, ret.getValue()); } } diff --git a/typespec-tests/src/test/java/com/encode/datetime/generated/DatetimeClientTestBase.java b/typespec-tests/src/test/java/com/encode/datetime/generated/DatetimeClientTestBase.java index 05d83226c6..905fb4ee7d 100644 --- a/typespec-tests/src/test/java/com/encode/datetime/generated/DatetimeClientTestBase.java +++ b/typespec-tests/src/test/java/com/encode/datetime/generated/DatetimeClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -33,44 +32,36 @@ class DatetimeClientTestBase extends TestProxyTestBase { protected void beforeTest() { DatetimeClientBuilder queryClientbuilder = new DatetimeClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryClient = queryClientbuilder.buildQueryClient(); DatetimeClientBuilder propertyClientbuilder = new DatetimeClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - propertyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { propertyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } propertyClient = propertyClientbuilder.buildPropertyClient(); DatetimeClientBuilder headerClientbuilder = new DatetimeClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - headerClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { headerClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } headerClient = headerClientbuilder.buildHeaderClient(); DatetimeClientBuilder responseHeaderClientbuilder = new DatetimeClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - responseHeaderClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { responseHeaderClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } responseHeaderClient = responseHeaderClientbuilder.buildResponseHeaderClient(); diff --git a/typespec-tests/src/test/java/com/encode/duration/EncodeDurationTests.java b/typespec-tests/src/test/java/com/encode/duration/EncodeDurationTests.java index 3e0eb7cb97..5cb73bc90a 100644 --- a/typespec-tests/src/test/java/com/encode/duration/EncodeDurationTests.java +++ b/typespec-tests/src/test/java/com/encode/duration/EncodeDurationTests.java @@ -4,17 +4,16 @@ package com.encode.duration; import com.encode.duration.models.DefaultDurationProperty; +import com.encode.duration.models.Float64SecondsDurationProperty; import com.encode.duration.models.FloatSecondsDurationArrayProperty; import com.encode.duration.models.FloatSecondsDurationProperty; -import com.encode.duration.models.Float64SecondsDurationProperty; -import com.encode.duration.models.Int32SecondsDurationProperty; import com.encode.duration.models.ISO8601DurationProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - +import com.encode.duration.models.Int32SecondsDurationProperty; import java.time.Duration; import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class EncodeDurationTests { @@ -58,22 +57,22 @@ public void testHeader() { @Test public void testProperty() { - Assertions.assertEquals(DAY40, - propertyClient.defaultMethod(new DefaultDurationProperty(DAY40)).getValue()); + Assertions.assertEquals(DAY40, propertyClient.defaultMethod(new DefaultDurationProperty(DAY40)).getValue()); Assertions.assertEquals(SECOND35, - propertyClient.floatSeconds(new FloatSecondsDurationProperty(SECOND35)).getValue()); + propertyClient.floatSeconds(new FloatSecondsDurationProperty(SECOND35)).getValue()); Assertions.assertEquals(SECOND35, - propertyClient.float64Seconds(new Float64SecondsDurationProperty(SECOND35)).getValue()); + propertyClient.float64Seconds(new Float64SecondsDurationProperty(SECOND35)).getValue()); Assertions.assertEquals(SECOND36, - propertyClient.int32Seconds(new Int32SecondsDurationProperty(SECOND36)).getValue()); + propertyClient.int32Seconds(new Int32SecondsDurationProperty(SECOND36)).getValue()); propertyClient.iso8601(new ISO8601DurationProperty(DAY40)); List array = Arrays.asList(SECOND35, Duration.ofSeconds(46, 750_000_000)); - FloatSecondsDurationArrayProperty ret = propertyClient.floatSecondsArray(new FloatSecondsDurationArrayProperty(array)); + FloatSecondsDurationArrayProperty ret + = propertyClient.floatSecondsArray(new FloatSecondsDurationArrayProperty(array)); Assertions.assertEquals(array, ret.getValue()); } } diff --git a/typespec-tests/src/test/java/com/encode/duration/generated/DurationClientTestBase.java b/typespec-tests/src/test/java/com/encode/duration/generated/DurationClientTestBase.java index ff419aed9b..7cc50aa25b 100644 --- a/typespec-tests/src/test/java/com/encode/duration/generated/DurationClientTestBase.java +++ b/typespec-tests/src/test/java/com/encode/duration/generated/DurationClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -30,33 +29,27 @@ class DurationClientTestBase extends TestProxyTestBase { protected void beforeTest() { DurationClientBuilder queryClientbuilder = new DurationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryClient = queryClientbuilder.buildQueryClient(); DurationClientBuilder propertyClientbuilder = new DurationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - propertyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { propertyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } propertyClient = propertyClientbuilder.buildPropertyClient(); DurationClientBuilder headerClientbuilder = new DurationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - headerClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { headerClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } headerClient = headerClientbuilder.buildHeaderClient(); diff --git a/typespec-tests/src/test/java/com/encode/numeric/generated/NumericClientTestBase.java b/typespec-tests/src/test/java/com/encode/numeric/generated/NumericClientTestBase.java index 8b865bf807..40ff6ae337 100644 --- a/typespec-tests/src/test/java/com/encode/numeric/generated/NumericClientTestBase.java +++ b/typespec-tests/src/test/java/com/encode/numeric/generated/NumericClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class NumericClientTestBase extends TestProxyTestBase { protected void beforeTest() { NumericClientBuilder numericClientbuilder = new NumericClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - numericClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { numericClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } numericClient = numericClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/parameters/basic/generated/BasicClientTestBase.java b/typespec-tests/src/test/java/com/parameters/basic/generated/BasicClientTestBase.java index 7196d63b31..193b05ed00 100644 --- a/typespec-tests/src/test/java/com/parameters/basic/generated/BasicClientTestBase.java +++ b/typespec-tests/src/test/java/com/parameters/basic/generated/BasicClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,22 +26,18 @@ class BasicClientTestBase extends TestProxyTestBase { protected void beforeTest() { BasicClientBuilder explicitBodyClientbuilder = new BasicClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - explicitBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { explicitBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } explicitBodyClient = explicitBodyClientbuilder.buildExplicitBodyClient(); BasicClientBuilder implicitBodyClientbuilder = new BasicClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - implicitBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { implicitBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } implicitBodyClient = implicitBodyClientbuilder.buildImplicitBodyClient(); diff --git a/typespec-tests/src/test/java/com/parameters/bodyoptionality/BodyTests.java b/typespec-tests/src/test/java/com/parameters/bodyoptionality/BodyTests.java index dcb891fbc7..fff2aea84f 100644 --- a/typespec-tests/src/test/java/com/parameters/bodyoptionality/BodyTests.java +++ b/typespec-tests/src/test/java/com/parameters/bodyoptionality/BodyTests.java @@ -19,10 +19,9 @@ public class BodyTests { private final ContentTypeValidationPolicy validationPolicy = new ContentTypeValidationPolicy(); private final BodyOptionalityClient client = new BodyOptionalityClientBuilder().buildClient(); - private final OptionalExplicitClient optionalClient = new BodyOptionalityClientBuilder() - .addPolicy(validationPolicy) - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) - .buildOptionalExplicitClient(); + private final OptionalExplicitClient optionalClient = new BodyOptionalityClientBuilder().addPolicy(validationPolicy) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + .buildOptionalExplicitClient(); private final static class ContentTypeValidationPolicy implements HttpPipelinePolicy { private boolean contentTypeHeaderExists; @@ -36,10 +35,10 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN private void validateContentTypeHeader(boolean exists) { if (exists != contentTypeHeaderExists) { AssertionFailureBuilder.assertionFailure() - .message("content-type header validation failed") - .expected(exists) - .actual(contentTypeHeaderExists) - .buildAndThrow(); + .message("content-type header validation failed") + .expected(exists) + .actual(contentTypeHeaderExists) + .buildAndThrow(); } } } diff --git a/typespec-tests/src/test/java/com/parameters/bodyoptionality/generated/BodyOptionalityClientTestBase.java b/typespec-tests/src/test/java/com/parameters/bodyoptionality/generated/BodyOptionalityClientTestBase.java index 1c0c67e14b..511cdb1d47 100644 --- a/typespec-tests/src/test/java/com/parameters/bodyoptionality/generated/BodyOptionalityClientTestBase.java +++ b/typespec-tests/src/test/java/com/parameters/bodyoptionality/generated/BodyOptionalityClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,22 +26,18 @@ class BodyOptionalityClientTestBase extends TestProxyTestBase { protected void beforeTest() { BodyOptionalityClientBuilder bodyOptionalityClientbuilder = new BodyOptionalityClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - bodyOptionalityClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { bodyOptionalityClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } bodyOptionalityClient = bodyOptionalityClientbuilder.buildClient(); BodyOptionalityClientBuilder optionalExplicitClientbuilder = new BodyOptionalityClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - optionalExplicitClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { optionalExplicitClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } optionalExplicitClient = optionalExplicitClientbuilder.buildOptionalExplicitClient(); diff --git a/typespec-tests/src/test/java/com/parameters/collectionformat/CollectionFormatClientTest.java b/typespec-tests/src/test/java/com/parameters/collectionformat/CollectionFormatClientTest.java index 042a868635..114e177739 100644 --- a/typespec-tests/src/test/java/com/parameters/collectionformat/CollectionFormatClientTest.java +++ b/typespec-tests/src/test/java/com/parameters/collectionformat/CollectionFormatClientTest.java @@ -3,9 +3,8 @@ package com.parameters.collectionformat; -import org.junit.jupiter.api.Test; - import java.util.Arrays; +import org.junit.jupiter.api.Test; class CollectionFormatClientTest { diff --git a/typespec-tests/src/test/java/com/parameters/collectionformat/generated/CollectionFormatClientTestBase.java b/typespec-tests/src/test/java/com/parameters/collectionformat/generated/CollectionFormatClientTestBase.java index 52bded4726..dd6342a707 100644 --- a/typespec-tests/src/test/java/com/parameters/collectionformat/generated/CollectionFormatClientTestBase.java +++ b/typespec-tests/src/test/java/com/parameters/collectionformat/generated/CollectionFormatClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,22 +26,18 @@ class CollectionFormatClientTestBase extends TestProxyTestBase { protected void beforeTest() { CollectionFormatClientBuilder queryClientbuilder = new CollectionFormatClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryClient = queryClientbuilder.buildQueryClient(); CollectionFormatClientBuilder headerClientbuilder = new CollectionFormatClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - headerClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { headerClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } headerClient = headerClientbuilder.buildHeaderClient(); diff --git a/typespec-tests/src/test/java/com/parameters/spread/SpreadTests.java b/typespec-tests/src/test/java/com/parameters/spread/SpreadTests.java index 933c5459ae..0a2aec69d1 100644 --- a/typespec-tests/src/test/java/com/parameters/spread/SpreadTests.java +++ b/typespec-tests/src/test/java/com/parameters/spread/SpreadTests.java @@ -4,9 +4,8 @@ package com.parameters.spread; import com.parameters.spread.models.BodyParameter; -import org.junit.jupiter.api.Test; - import java.util.List; +import org.junit.jupiter.api.Test; public class SpreadTests { diff --git a/typespec-tests/src/test/java/com/parameters/spread/generated/SpreadClientTestBase.java b/typespec-tests/src/test/java/com/parameters/spread/generated/SpreadClientTestBase.java index eb5434fc39..877c99133c 100644 --- a/typespec-tests/src/test/java/com/parameters/spread/generated/SpreadClientTestBase.java +++ b/typespec-tests/src/test/java/com/parameters/spread/generated/SpreadClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,22 +26,18 @@ class SpreadClientTestBase extends TestProxyTestBase { protected void beforeTest() { SpreadClientBuilder modelClientbuilder = new SpreadClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelClient = modelClientbuilder.buildModelClient(); SpreadClientBuilder aliasClientbuilder = new SpreadClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - aliasClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { aliasClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } aliasClient = aliasClientbuilder.buildAliasClient(); diff --git a/typespec-tests/src/test/java/com/payload/contentnegotiation/SharedRouteTests.java b/typespec-tests/src/test/java/com/payload/contentnegotiation/SharedRouteTests.java index 5878f684af..288b386ea9 100644 --- a/typespec-tests/src/test/java/com/payload/contentnegotiation/SharedRouteTests.java +++ b/typespec-tests/src/test/java/com/payload/contentnegotiation/SharedRouteTests.java @@ -3,10 +3,10 @@ package com.payload.contentnegotiation; -import com.payload.FileUtils; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.util.BinaryData; +import com.payload.FileUtils; import com.payload.contentnegotiation.models.PngImageAsJson; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -14,7 +14,9 @@ public class SharedRouteTests { private final SameBodyClient client1 = new ContentNegotiationClientBuilder().buildSameBodyClient(); - private final DifferentBodyClient client2 = new ContentNegotiationClientBuilder().httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)).buildDifferentBodyClient(); + private final DifferentBodyClient client2 = new ContentNegotiationClientBuilder() + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + .buildDifferentBodyClient(); @Test public void testContentNegotiation() { diff --git a/typespec-tests/src/test/java/com/payload/contentnegotiation/generated/ContentNegotiationClientTestBase.java b/typespec-tests/src/test/java/com/payload/contentnegotiation/generated/ContentNegotiationClientTestBase.java index fe4c66c652..9dc7cd916f 100644 --- a/typespec-tests/src/test/java/com/payload/contentnegotiation/generated/ContentNegotiationClientTestBase.java +++ b/typespec-tests/src/test/java/com/payload/contentnegotiation/generated/ContentNegotiationClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,22 +26,18 @@ class ContentNegotiationClientTestBase extends TestProxyTestBase { protected void beforeTest() { ContentNegotiationClientBuilder sameBodyClientbuilder = new ContentNegotiationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - sameBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { sameBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } sameBodyClient = sameBodyClientbuilder.buildSameBodyClient(); ContentNegotiationClientBuilder differentBodyClientbuilder = new ContentNegotiationClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - differentBodyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { differentBodyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } differentBodyClient = differentBodyClientbuilder.buildDifferentBodyClient(); diff --git a/typespec-tests/src/test/java/com/payload/jsonmergepatch/JsonMergePatchClientTest.java b/typespec-tests/src/test/java/com/payload/jsonmergepatch/JsonMergePatchClientTest.java index db400e97e6..3b70a8576b 100644 --- a/typespec-tests/src/test/java/com/payload/jsonmergepatch/JsonMergePatchClientTest.java +++ b/typespec-tests/src/test/java/com/payload/jsonmergepatch/JsonMergePatchClientTest.java @@ -3,16 +3,14 @@ package com.payload.jsonmergepatch; - import com.payload.jsonmergepatch.models.InnerModel; import com.payload.jsonmergepatch.models.Resource; import com.payload.jsonmergepatch.models.ResourcePatch; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Test; public class JsonMergePatchClientTest { diff --git a/typespec-tests/src/test/java/com/payload/jsonmergepatch/generated/JsonMergePatchClientTestBase.java b/typespec-tests/src/test/java/com/payload/jsonmergepatch/generated/JsonMergePatchClientTestBase.java index bb9a6ab6df..fa17e14fd3 100644 --- a/typespec-tests/src/test/java/com/payload/jsonmergepatch/generated/JsonMergePatchClientTestBase.java +++ b/typespec-tests/src/test/java/com/payload/jsonmergepatch/generated/JsonMergePatchClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class JsonMergePatchClientTestBase extends TestProxyTestBase { protected void beforeTest() { JsonMergePatchClientBuilder jsonMergePatchClientbuilder = new JsonMergePatchClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - jsonMergePatchClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { jsonMergePatchClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } jsonMergePatchClient = jsonMergePatchClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/payload/mediatype/MediaTypeTests.java b/typespec-tests/src/test/java/com/payload/mediatype/MediaTypeTests.java index d165a3e90e..0ca75b467f 100644 --- a/typespec-tests/src/test/java/com/payload/mediatype/MediaTypeTests.java +++ b/typespec-tests/src/test/java/com/payload/mediatype/MediaTypeTests.java @@ -8,8 +8,7 @@ public class MediaTypeTests { - private final MediaTypeClient client = new MediaTypeClientBuilder() - .buildClient(); + private final MediaTypeClient client = new MediaTypeClientBuilder().buildClient(); @Test public void test() { diff --git a/typespec-tests/src/test/java/com/payload/mediatype/generated/MediaTypeClientTestBase.java b/typespec-tests/src/test/java/com/payload/mediatype/generated/MediaTypeClientTestBase.java index 8a5752d00a..0cfc731448 100644 --- a/typespec-tests/src/test/java/com/payload/mediatype/generated/MediaTypeClientTestBase.java +++ b/typespec-tests/src/test/java/com/payload/mediatype/generated/MediaTypeClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class MediaTypeClientTestBase extends TestProxyTestBase { protected void beforeTest() { MediaTypeClientBuilder mediaTypeClientbuilder = new MediaTypeClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - mediaTypeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { mediaTypeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } mediaTypeClient = mediaTypeClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/payload/multipart/MultipartTests.java b/typespec-tests/src/test/java/com/payload/multipart/MultipartTests.java index 96e3bcf47d..99113b103d 100644 --- a/typespec-tests/src/test/java/com/payload/multipart/MultipartTests.java +++ b/typespec-tests/src/test/java/com/payload/multipart/MultipartTests.java @@ -26,10 +26,6 @@ import com.payload.multipart.models.PictureFileDetails; import com.payload.multipart.models.PicturesFileDetails; import com.payload.multipart.models.ProfileImageFileDetails; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - import java.nio.charset.StandardCharsets; import java.nio.file.Path; import java.util.ArrayList; @@ -37,21 +33,21 @@ import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; public class MultipartTests { private final MultipartFilenameValidationPolicy validationPolicy = new MultipartFilenameValidationPolicy(); - private final FormDataClient client = new MultiPartClientBuilder() - .addPolicy(validationPolicy) - .buildFormDataClient(); - private final FormDataAsyncClient asyncClient = new MultiPartClientBuilder() - .addPolicy(validationPolicy) - .buildFormDataAsyncClient(); + private final FormDataClient client + = new MultiPartClientBuilder().addPolicy(validationPolicy).buildFormDataClient(); + private final FormDataAsyncClient asyncClient + = new MultiPartClientBuilder().addPolicy(validationPolicy).buildFormDataAsyncClient(); - private final FormDataHttpPartsContentTypeClient httpPartContentTypeClient = new MultiPartClientBuilder() - .addPolicy(validationPolicy) - .buildFormDataHttpPartsContentTypeClient(); + private final FormDataHttpPartsContentTypeClient httpPartContentTypeClient + = new MultiPartClientBuilder().addPolicy(validationPolicy).buildFormDataHttpPartsContentTypeClient(); private static final Path FILE = FileUtils.getJpgFile(); @@ -70,7 +66,7 @@ private static int indexOf(byte[] data, int start, int stop, byte[] pattern) { int j = 0; for (int i = start; i < stop; i++) { - while (j > 0 && ( pattern[j] != '*' && pattern[j] != data[i])) { + while (j > 0 && (pattern[j] != '*' && pattern[j] != data[i])) { j = failure[j - 1]; } if (pattern[j] == '*' || pattern[j] == data[i]) { @@ -168,9 +164,8 @@ private void validateContentTypes(String... contentTypes) { @Test public void testBasic() { - MultiPartRequest request = new MultiPartRequest( - "123", - new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg")); + MultiPartRequest request = new MultiPartRequest("123", + new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg")); client.basic(request); asyncClient.basic(request).block(); @@ -178,9 +173,8 @@ public void testBasic() { @Test public void testJson() { - client.jsonPart(new JsonPartRequest( - new Address("X"), - new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg"))); + client.jsonPart(new JsonPartRequest(new Address("X"), + new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg"))); } // JSON array removed from cadl-ranch @@ -193,56 +187,50 @@ public void testJson() { @Test public void testMultipleFiles() { - client.multiBinaryParts(new MultiBinaryPartsRequest( - new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg")) - .setPicture(new PictureFileDetails(BinaryData.fromFile(FileUtils.getPngFile())).setFilename("image.png"))); + client.multiBinaryParts( + new MultiBinaryPartsRequest(new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg")) + .setPicture( + new PictureFileDetails(BinaryData.fromFile(FileUtils.getPngFile())).setFilename("image.png"))); validationPolicy.validateFilenames("image.jpg", "image.png"); // "picture" be optional asyncClient.multiBinaryParts(new MultiBinaryPartsRequest( - new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg"))).block(); + new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg"))).block(); } @Test public void testFileArray() { - client.binaryArrayParts(new BinaryArrayPartsRequest( - "123", - Arrays.asList( - new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image1.png"), - new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image2.png") - ))); + client.binaryArrayParts(new BinaryArrayPartsRequest("123", + Arrays.asList(new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image1.png"), + new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image2.png")))); validationPolicy.validateContentTypes("application/octet-stream", "application/octet-stream"); // filename contains non-ASCII - asyncClient.binaryArrayParts(new BinaryArrayPartsRequest( - "123", - Arrays.asList( - new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("voilà.png"), - new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("ima\"\n\rge2.png") - ))).block(); + asyncClient + .binaryArrayParts( + new BinaryArrayPartsRequest("123", + Arrays.asList(new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("voilà.png"), + new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("ima\"\n\rge2.png")))) + .block(); validationPolicy.validateFilenames("voilà.png", "ima%22%0A%0Dge2.png"); } @Test public void testFilenameAndContentType() { - client.checkFileNameAndContentType(new MultiPartRequest( - "123", - new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("hello.jpg").setContentType("image/jpg"))); + client.checkFileNameAndContentType( + new MultiPartRequest("123", new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("hello.jpg") + .setContentType("image/jpg"))); } @Test public void testComplex() { - client.fileArrayAndBasic(new ComplexPartsRequest( - "123", - new Address("X"), - new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg"), - Arrays.asList( - new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image1.png"), - new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image2.png") - ))); + client.fileArrayAndBasic(new ComplexPartsRequest("123", new Address("X"), + new ProfileImageFileDetails(BinaryData.fromFile(FILE)).setFilename("image.jpg"), + Arrays.asList(new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image1.png"), + new PicturesFileDetails(BinaryData.fromFile(PNG_FILE)).setFilename("image2.png")))); validationPolicy.validateFilenames("image.jpg", "image1.png", "image2.png"); } @@ -255,41 +243,37 @@ public void testAnonymousModel() { @Test public void testFileWithHttpPartSpecificContentType() { httpPartContentTypeClient.imageJpegContentType(new FileWithHttpPartSpecificContentTypeRequest( - new FileSpecificContentType(BinaryData.fromFile(FILE), "hello.jpg"))); + new FileSpecificContentType(BinaryData.fromFile(FILE), "hello.jpg"))); } @Test public void testFileWithHttpPartRequiredContentType() { httpPartContentTypeClient.requiredContentType(new FileWithHttpPartRequiredContentTypeRequest( - new FileRequiredMetaData(BinaryData.fromFile(FILE), FILENAME, "application/octet-stream"))); + new FileRequiredMetaData(BinaryData.fromFile(FILE), FILENAME, "application/octet-stream"))); } @Test public void testFileWithHttpPartOptionalContentType() { httpPartContentTypeClient.optionalContentType(new FileWithHttpPartOptionalContentTypeRequest( - new FileOptionalContentType(BinaryData.fromFile(FILE), FILENAME).setContentType(FILE_CONTENT_TYPE))); + new FileOptionalContentType(BinaryData.fromFile(FILE), FILENAME).setContentType(FILE_CONTENT_TYPE))); } @Test public void testComplexWithHttpPart() { - FormDataHttpPartsClient client = new MultiPartClientBuilder() - .addPolicy(validationPolicy) - .buildFormDataHttpPartsClient(); - - client.jsonArrayAndFileArray(new ComplexHttpPartsModelRequest( - "123", - new Address("X"), - new FileRequiredMetaData(BinaryData.fromFile(FILE), FILENAME, FILE_CONTENT_TYPE), - List.of(new Address("Y"), new Address("Z")), - List.of(new FileRequiredMetaData(BinaryData.fromFile(PNG_FILE), FILENAME + "1", FILE_CONTENT_TYPE), new FileRequiredMetaData(BinaryData.fromFile(PNG_FILE), FILENAME + "2", FILE_CONTENT_TYPE)) - )); + FormDataHttpPartsClient client + = new MultiPartClientBuilder().addPolicy(validationPolicy).buildFormDataHttpPartsClient(); + + client.jsonArrayAndFileArray(new ComplexHttpPartsModelRequest("123", new Address("X"), + new FileRequiredMetaData(BinaryData.fromFile(FILE), FILENAME, FILE_CONTENT_TYPE), + List.of(new Address("Y"), new Address("Z")), + List.of(new FileRequiredMetaData(BinaryData.fromFile(PNG_FILE), FILENAME + "1", FILE_CONTENT_TYPE), + new FileRequiredMetaData(BinaryData.fromFile(PNG_FILE), FILENAME + "2", FILE_CONTENT_TYPE)))); } @Test public void testNonStringHttpPart() { - FormDataHttpPartsNonStringClient client = new MultiPartClientBuilder() - .addPolicy(validationPolicy) - .buildFormDataHttpPartsNonStringClient(); + FormDataHttpPartsNonStringClient client + = new MultiPartClientBuilder().addPolicy(validationPolicy).buildFormDataHttpPartsNonStringClient(); client.floatMethod(new FloatRequest(0.5)); } diff --git a/typespec-tests/src/test/java/com/payload/multipart/generated/MultiPartClientTestBase.java b/typespec-tests/src/test/java/com/payload/multipart/generated/MultiPartClientTestBase.java index de53dd77c5..670f0ca624 100644 --- a/typespec-tests/src/test/java/com/payload/multipart/generated/MultiPartClientTestBase.java +++ b/typespec-tests/src/test/java/com/payload/multipart/generated/MultiPartClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -33,33 +32,27 @@ class MultiPartClientTestBase extends TestProxyTestBase { protected void beforeTest() { MultiPartClientBuilder formDataClientbuilder = new MultiPartClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - formDataClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { formDataClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } formDataClient = formDataClientbuilder.buildFormDataClient(); MultiPartClientBuilder formDataHttpPartsClientbuilder = new MultiPartClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - formDataHttpPartsClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { formDataHttpPartsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } formDataHttpPartsClient = formDataHttpPartsClientbuilder.buildFormDataHttpPartsClient(); MultiPartClientBuilder formDataHttpPartsContentTypeClientbuilder = new MultiPartClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - formDataHttpPartsContentTypeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { formDataHttpPartsContentTypeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } formDataHttpPartsContentTypeClient @@ -67,11 +60,9 @@ protected void beforeTest() { MultiPartClientBuilder formDataHttpPartsNonStringClientbuilder = new MultiPartClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - formDataHttpPartsNonStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { formDataHttpPartsNonStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } formDataHttpPartsNonStringClient diff --git a/typespec-tests/src/test/java/com/payload/pageable/PageableTests.java b/typespec-tests/src/test/java/com/payload/pageable/PageableTests.java index dc05c6179d..a15ba7ab13 100644 --- a/typespec-tests/src/test/java/com/payload/pageable/PageableTests.java +++ b/typespec-tests/src/test/java/com/payload/pageable/PageableTests.java @@ -7,17 +7,17 @@ import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.rest.PagedIterable; import com.payload.pageable.models.User; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.HashSet; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class PageableTests { private final PageableClient client = new PageableClientBuilder() - .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS).setAllowedQueryParamNames(new HashSet<>(Arrays.asList("maxpagesize", "skipToken")))) - .buildClient(); + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS) + .setAllowedQueryParamNames(new HashSet<>(Arrays.asList("maxpagesize", "skipToken")))) + .buildClient(); @Test public void testPageable() { diff --git a/typespec-tests/src/test/java/com/payload/pageable/generated/PageableClientTestBase.java b/typespec-tests/src/test/java/com/payload/pageable/generated/PageableClientTestBase.java index 457250402c..f91dd970db 100644 --- a/typespec-tests/src/test/java/com/payload/pageable/generated/PageableClientTestBase.java +++ b/typespec-tests/src/test/java/com/payload/pageable/generated/PageableClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class PageableClientTestBase extends TestProxyTestBase { protected void beforeTest() { PageableClientBuilder pageableClientbuilder = new PageableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pageableClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pageableClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pageableClient = pageableClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/resiliency/servicedriven/ServiceDrivenTests.java b/typespec-tests/src/test/java/com/resiliency/servicedriven/ServiceDrivenTests.java index 617c51cf07..f06a6a9427 100644 --- a/typespec-tests/src/test/java/com/resiliency/servicedriven/ServiceDrivenTests.java +++ b/typespec-tests/src/test/java/com/resiliency/servicedriven/ServiceDrivenTests.java @@ -8,24 +8,24 @@ public class ServiceDrivenTests { - private final com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClient oldClient1 = new com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClientBuilder() - .endpoint("http://localhost:3000") + private final com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClient oldClient1 + = new com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClientBuilder().endpoint("http://localhost:3000") .serviceDeploymentVersion("v1") .buildClient(); - private final com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClient oldClient2 = new com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClientBuilder() - .endpoint("http://localhost:3000") + private final com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClient oldClient2 + = new com.resiliency.servicedriven.v1.ResiliencyServiceDrivenClientBuilder().endpoint("http://localhost:3000") .serviceDeploymentVersion("v2") .buildClient(); - private final ResiliencyServiceDrivenClient client2v1 = new ResiliencyServiceDrivenClientBuilder() - .endpoint("http://localhost:3000") + private final ResiliencyServiceDrivenClient client2v1 + = new ResiliencyServiceDrivenClientBuilder().endpoint("http://localhost:3000") .serviceDeploymentVersion("v2") .serviceVersion(ServiceDrivenServiceVersion.V1) .buildClient(); - private final ResiliencyServiceDrivenClient client2v2 = new ResiliencyServiceDrivenClientBuilder() - .endpoint("http://localhost:3000") + private final ResiliencyServiceDrivenClient client2v2 + = new ResiliencyServiceDrivenClientBuilder().endpoint("http://localhost:3000") .serviceDeploymentVersion("v2") .serviceVersion(ServiceDrivenServiceVersion.V2) .buildClient(); @@ -43,7 +43,7 @@ public void testAddOptionalParamFromNone() { public void testAddOptionalParamFromOneRequired() { oldClient1.fromOneRequired("required"); oldClient2.fromOneRequired("required"); - + client2v1.fromOneRequired("required"); client2v2.fromOneRequired("required", "new"); } @@ -64,13 +64,10 @@ public void testAddOperation() { @Test public void testInvalidVersion() { - Assertions.assertThrows(IllegalArgumentException.class, - () -> client2v1.fromNone("new")); + Assertions.assertThrows(IllegalArgumentException.class, () -> client2v1.fromNone("new")); - Assertions.assertThrows(IllegalArgumentException.class, - () -> client2v1.fromOneRequired("required", "new")); + Assertions.assertThrows(IllegalArgumentException.class, () -> client2v1.fromOneRequired("required", "new")); - Assertions.assertThrows(IllegalArgumentException.class, - () -> client2v1.fromOneOptional("optional", "new")); + Assertions.assertThrows(IllegalArgumentException.class, () -> client2v1.fromOneOptional("optional", "new")); } } diff --git a/typespec-tests/src/test/java/com/resiliency/servicedriven/generated/ResiliencyServiceDrivenClientTestBase.java b/typespec-tests/src/test/java/com/resiliency/servicedriven/generated/ResiliencyServiceDrivenClientTestBase.java index b42cd18d88..471cfd6e46 100644 --- a/typespec-tests/src/test/java/com/resiliency/servicedriven/generated/ResiliencyServiceDrivenClientTestBase.java +++ b/typespec-tests/src/test/java/com/resiliency/servicedriven/generated/ResiliencyServiceDrivenClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,11 +26,9 @@ protected void beforeTest() { .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .serviceDeploymentVersion( Configuration.getGlobalConfiguration().get("SERVICEDEPLOYMENTVERSION", "servicedeploymentversion")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - resiliencyServiceDrivenClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { resiliencyServiceDrivenClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } resiliencyServiceDrivenClient = resiliencyServiceDrivenClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/resiliency/servicedriven/v1/generated/ResiliencyServiceDrivenClientTestBase.java b/typespec-tests/src/test/java/com/resiliency/servicedriven/v1/generated/ResiliencyServiceDrivenClientTestBase.java index eec959eb94..570d103079 100644 --- a/typespec-tests/src/test/java/com/resiliency/servicedriven/v1/generated/ResiliencyServiceDrivenClientTestBase.java +++ b/typespec-tests/src/test/java/com/resiliency/servicedriven/v1/generated/ResiliencyServiceDrivenClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -27,11 +26,9 @@ protected void beforeTest() { .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .serviceDeploymentVersion( Configuration.getGlobalConfiguration().get("SERVICEDEPLOYMENTVERSION", "servicedeploymentversion")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - resiliencyServiceDrivenClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { resiliencyServiceDrivenClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } resiliencyServiceDrivenClient = resiliencyServiceDrivenClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/routes/RouteTests.java b/typespec-tests/src/test/java/com/routes/RouteTests.java index 0c667de749..1450629b0f 100644 --- a/typespec-tests/src/test/java/com/routes/RouteTests.java +++ b/typespec-tests/src/test/java/com/routes/RouteTests.java @@ -3,83 +3,82 @@ package com.routes; -import org.junit.jupiter.api.Test; - import java.util.List; +import org.junit.jupiter.api.Test; public class RouteTests { - @Test - public void testFixed() { - new RoutesClientBuilder().buildClient().fixed(); + @Test + public void testFixed() { + new RoutesClientBuilder().buildClient().fixed(); - new RoutesClientBuilder().buildInInterfaceClient().fixed(); - } + new RoutesClientBuilder().buildInInterfaceClient().fixed(); + } - @Test - public void testPath() { - var client = new RoutesClientBuilder().buildPathParametersClient(); + @Test + public void testPath() { + var client = new RoutesClientBuilder().buildPathParametersClient(); - client.templateOnly("a"); + client.templateOnly("a"); - client.explicit("a"); + client.explicit("a"); - client.annotationOnly("a"); - } + client.annotationOnly("a"); + } - @Test - public void testPathReservedExpansion() { - var client = new RoutesClientBuilder().buildPathParametersReservedExpansionClient(); + @Test + public void testPathReservedExpansion() { + var client = new RoutesClientBuilder().buildPathParametersReservedExpansionClient(); - // TODO, need enhancement in core or codegen - client.template("foo/bar baz".replace(" ", "%20")); - client.annotation("foo/bar baz".replace(" ", "%20")); - } + // TODO, need enhancement in core or codegen + client.template("foo/bar baz".replace(" ", "%20")); + client.annotation("foo/bar baz".replace(" ", "%20")); + } - @Test - public void testQuery() { - var client = new RoutesClientBuilder().buildQueryParametersClient(); + @Test + public void testQuery() { + var client = new RoutesClientBuilder().buildQueryParametersClient(); - client.templateOnly("a"); + client.templateOnly("a"); - client.explicit("a"); + client.explicit("a"); - client.annotationOnly("a"); - } + client.annotationOnly("a"); + } - @Test - public void testQueryExpansionStandard() { - var client = new RoutesClientBuilder().buildQueryParametersQueryExpansionStandardClient(); + @Test + public void testQueryExpansionStandard() { + var client = new RoutesClientBuilder().buildQueryParametersQueryExpansionStandardClient(); - client.primitive("a"); + client.primitive("a"); - client.array(List.of("a", "b")); - } + client.array(List.of("a", "b")); + } - @Test - public void testQueryExpansionContinuationStandard() { - var client = new RoutesClientBuilder().buildQueryParametersQueryContinuationStandardClient(); + @Test + public void testQueryExpansionContinuationStandard() { + var client = new RoutesClientBuilder().buildQueryParametersQueryContinuationStandardClient(); - client.primitive("a"); + client.primitive("a"); - client.array(List.of("a", "b")); - } + client.array(List.of("a", "b")); + } - @Test - public void testQueryExpansionExplode() { - var client = new RoutesClientBuilder().buildQueryParametersQueryExpansionExplodeClient(); + @Test + public void testQueryExpansionExplode() { + var client = new RoutesClientBuilder().buildQueryParametersQueryExpansionExplodeClient(); - client.primitive("a"); + client.primitive("a"); // client.array(List.of("a", "b")); - } + } - @Test - public void buildQueryParametersQueryContinuationExplode() { - var client = new RoutesClientBuilder().buildQueryParametersQueryContinuationExplodeClient(); + @Test + public void buildQueryParametersQueryContinuationExplode() { + var client = new RoutesClientBuilder().buildQueryParametersQueryContinuationExplodeClient(); - client.primitive("a"); + client.primitive("a"); // client.array(List.of("a", "b")); - } + } } diff --git a/typespec-tests/src/test/java/com/routes/generated/RoutesClientTestBase.java b/typespec-tests/src/test/java/com/routes/generated/RoutesClientTestBase.java index 5c09af6d15..56208e7f99 100644 --- a/typespec-tests/src/test/java/com/routes/generated/RoutesClientTestBase.java +++ b/typespec-tests/src/test/java/com/routes/generated/RoutesClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -72,33 +71,27 @@ class RoutesClientTestBase extends TestProxyTestBase { protected void beforeTest() { RoutesClientBuilder routesClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - routesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { routesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } routesClient = routesClientbuilder.buildClient(); RoutesClientBuilder pathParametersClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersClient = pathParametersClientbuilder.buildPathParametersClient(); RoutesClientBuilder pathParametersReservedExpansionClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersReservedExpansionClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersReservedExpansionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersReservedExpansionClient @@ -106,11 +99,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersSimpleExpansionStandardClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersSimpleExpansionStandardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersSimpleExpansionStandardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersSimpleExpansionStandardClient @@ -118,11 +109,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersSimpleExpansionExplodeClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersSimpleExpansionExplodeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersSimpleExpansionExplodeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersSimpleExpansionExplodeClient @@ -130,11 +119,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersPathExpansionStandardClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersPathExpansionStandardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersPathExpansionStandardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersPathExpansionStandardClient @@ -142,11 +129,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersPathExpansionExplodeClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersPathExpansionExplodeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersPathExpansionExplodeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersPathExpansionExplodeClient @@ -154,11 +139,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersLabelExpansionStandardClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersLabelExpansionStandardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersLabelExpansionStandardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersLabelExpansionStandardClient @@ -166,11 +149,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersLabelExpansionExplodeClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersLabelExpansionExplodeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersLabelExpansionExplodeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersLabelExpansionExplodeClient @@ -178,11 +159,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersMatrixExpansionStandardClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersMatrixExpansionStandardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersMatrixExpansionStandardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersMatrixExpansionStandardClient @@ -190,11 +169,9 @@ protected void beforeTest() { RoutesClientBuilder pathParametersMatrixExpansionExplodeClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - pathParametersMatrixExpansionExplodeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { pathParametersMatrixExpansionExplodeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } pathParametersMatrixExpansionExplodeClient @@ -202,22 +179,18 @@ protected void beforeTest() { RoutesClientBuilder queryParametersClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryParametersClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryParametersClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryParametersClient = queryParametersClientbuilder.buildQueryParametersClient(); RoutesClientBuilder queryParametersQueryExpansionStandardClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryParametersQueryExpansionStandardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryParametersQueryExpansionStandardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryParametersQueryExpansionStandardClient @@ -225,11 +198,9 @@ protected void beforeTest() { RoutesClientBuilder queryParametersQueryExpansionExplodeClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryParametersQueryExpansionExplodeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryParametersQueryExpansionExplodeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryParametersQueryExpansionExplodeClient @@ -237,11 +208,9 @@ protected void beforeTest() { RoutesClientBuilder queryParametersQueryContinuationStandardClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryParametersQueryContinuationStandardClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryParametersQueryContinuationStandardClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryParametersQueryContinuationStandardClient = queryParametersQueryContinuationStandardClientbuilder @@ -249,11 +218,9 @@ protected void beforeTest() { RoutesClientBuilder queryParametersQueryContinuationExplodeClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - queryParametersQueryContinuationExplodeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { queryParametersQueryContinuationExplodeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } queryParametersQueryContinuationExplodeClient @@ -261,11 +228,9 @@ protected void beforeTest() { RoutesClientBuilder inInterfaceClientbuilder = new RoutesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - inInterfaceClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { inInterfaceClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } inInterfaceClient = inInterfaceClientbuilder.buildInInterfaceClient(); diff --git a/typespec-tests/src/test/java/com/serialization/encodedname/json/generated/JsonClientTestBase.java b/typespec-tests/src/test/java/com/serialization/encodedname/json/generated/JsonClientTestBase.java index 48e63770d1..b86f4d448b 100644 --- a/typespec-tests/src/test/java/com/serialization/encodedname/json/generated/JsonClientTestBase.java +++ b/typespec-tests/src/test/java/com/serialization/encodedname/json/generated/JsonClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class JsonClientTestBase extends TestProxyTestBase { protected void beforeTest() { JsonClientBuilder jsonClientbuilder = new JsonClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - jsonClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { jsonClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } jsonClient = jsonClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/server/endpoint/notdefined/EndpointTests.java b/typespec-tests/src/test/java/com/server/endpoint/notdefined/EndpointTests.java index d7f679d1e1..33f0c8541a 100644 --- a/typespec-tests/src/test/java/com/server/endpoint/notdefined/EndpointTests.java +++ b/typespec-tests/src/test/java/com/server/endpoint/notdefined/EndpointTests.java @@ -9,9 +9,6 @@ public class EndpointTests { @Test public void testEndpoint() { - new NotDefinedClientBuilder() - .endpoint("http://localhost:3000") - .buildClient() - .valid(); + new NotDefinedClientBuilder().endpoint("http://localhost:3000").buildClient().valid(); } } diff --git a/typespec-tests/src/test/java/com/server/endpoint/notdefined/generated/NotDefinedClientTestBase.java b/typespec-tests/src/test/java/com/server/endpoint/notdefined/generated/NotDefinedClientTestBase.java index 89ab5999d8..4e3553b76d 100644 --- a/typespec-tests/src/test/java/com/server/endpoint/notdefined/generated/NotDefinedClientTestBase.java +++ b/typespec-tests/src/test/java/com/server/endpoint/notdefined/generated/NotDefinedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class NotDefinedClientTestBase extends TestProxyTestBase { protected void beforeTest() { NotDefinedClientBuilder notDefinedClientbuilder = new NotDefinedClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - notDefinedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { notDefinedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } notDefinedClient = notDefinedClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/server/path/multiple/MultipleClientTest.java b/typespec-tests/src/test/java/com/server/path/multiple/MultipleClientTest.java index 214b7b1a52..7217a188e0 100644 --- a/typespec-tests/src/test/java/com/server/path/multiple/MultipleClientTest.java +++ b/typespec-tests/src/test/java/com/server/path/multiple/MultipleClientTest.java @@ -18,4 +18,4 @@ void noOperationParams() { void withOperationPathParam() { client.withOperationPathParam("test"); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/server/path/multiple/generated/MultipleClientTestBase.java b/typespec-tests/src/test/java/com/server/path/multiple/generated/MultipleClientTestBase.java index a1e5597656..1ac09d84aa 100644 --- a/typespec-tests/src/test/java/com/server/path/multiple/generated/MultipleClientTestBase.java +++ b/typespec-tests/src/test/java/com/server/path/multiple/generated/MultipleClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class MultipleClientTestBase extends TestProxyTestBase { protected void beforeTest() { MultipleClientBuilder multipleClientbuilder = new MultipleClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - multipleClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { multipleClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } multipleClient = multipleClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/server/path/single/SingleClientTest.java b/typespec-tests/src/test/java/com/server/path/single/SingleClientTest.java index 0c229e01a1..14f46ca41f 100644 --- a/typespec-tests/src/test/java/com/server/path/single/SingleClientTest.java +++ b/typespec-tests/src/test/java/com/server/path/single/SingleClientTest.java @@ -13,4 +13,4 @@ class SingleClientTest { void myOp() { client.myOp(); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/server/path/single/generated/SingleClientTestBase.java b/typespec-tests/src/test/java/com/server/path/single/generated/SingleClientTestBase.java index d85d57d879..e519870285 100644 --- a/typespec-tests/src/test/java/com/server/path/single/generated/SingleClientTestBase.java +++ b/typespec-tests/src/test/java/com/server/path/single/generated/SingleClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class SingleClientTestBase extends TestProxyTestBase { protected void beforeTest() { SingleClientBuilder singleClientbuilder = new SingleClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - singleClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { singleClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } singleClient = singleClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/server/versions/NotVersionedTests.java b/typespec-tests/src/test/java/com/server/versions/NotVersionedTests.java index a1ea6f70cf..cacaea4dda 100644 --- a/typespec-tests/src/test/java/com/server/versions/NotVersionedTests.java +++ b/typespec-tests/src/test/java/com/server/versions/NotVersionedTests.java @@ -9,9 +9,8 @@ public class NotVersionedTests { - private final NotVersionedClient client = new NotVersionedClientBuilder() - .endpoint("http://localhost:3000") - .buildClient(); + private final NotVersionedClient client + = new NotVersionedClientBuilder().endpoint("http://localhost:3000").buildClient(); @Test public void test() { diff --git a/typespec-tests/src/test/java/com/server/versions/VersionedTests.java b/typespec-tests/src/test/java/com/server/versions/VersionedTests.java index 348278abdf..f2570e980c 100644 --- a/typespec-tests/src/test/java/com/server/versions/VersionedTests.java +++ b/typespec-tests/src/test/java/com/server/versions/VersionedTests.java @@ -10,10 +10,9 @@ public class VersionedTests { - private final VersionedClient client = new VersionedClientBuilder() - .endpoint("http://localhost:3000") - .serviceVersion(VersionedServiceVersion.V2022_12_01_PREVIEW) - .buildClient(); + private final VersionedClient client = new VersionedClientBuilder().endpoint("http://localhost:3000") + .serviceVersion(VersionedServiceVersion.V2022_12_01_PREVIEW) + .buildClient(); @Test public void test() { @@ -23,10 +22,9 @@ public void test() { client.withQueryApiVersion(); - VersionedClient oldClient = new VersionedClientBuilder() - .endpoint("http://localhost:3000") - .serviceVersion(VersionedServiceVersion.V2021_01_01_PREVIEW) - .buildClient(); + VersionedClient oldClient = new VersionedClientBuilder().endpoint("http://localhost:3000") + .serviceVersion(VersionedServiceVersion.V2021_01_01_PREVIEW) + .buildClient(); oldClient.withQueryOldApiVersion(); } } diff --git a/typespec-tests/src/test/java/com/server/versions/notversioned/generated/NotVersionedClientTestBase.java b/typespec-tests/src/test/java/com/server/versions/notversioned/generated/NotVersionedClientTestBase.java index 5aa4f10da4..032032a6de 100644 --- a/typespec-tests/src/test/java/com/server/versions/notversioned/generated/NotVersionedClientTestBase.java +++ b/typespec-tests/src/test/java/com/server/versions/notversioned/generated/NotVersionedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class NotVersionedClientTestBase extends TestProxyTestBase { protected void beforeTest() { NotVersionedClientBuilder notVersionedClientbuilder = new NotVersionedClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - notVersionedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { notVersionedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } notVersionedClient = notVersionedClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/server/versions/versioned/generated/VersionedClientTestBase.java b/typespec-tests/src/test/java/com/server/versions/versioned/generated/VersionedClientTestBase.java index bd28be9ac9..ac2154d5ce 100644 --- a/typespec-tests/src/test/java/com/server/versions/versioned/generated/VersionedClientTestBase.java +++ b/typespec-tests/src/test/java/com/server/versions/versioned/generated/VersionedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class VersionedClientTestBase extends TestProxyTestBase { protected void beforeTest() { VersionedClientBuilder versionedClientbuilder = new VersionedClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - versionedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { versionedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } versionedClient = versionedClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/ConditionalTests.java b/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/ConditionalTests.java index 1be5fbe118..adc55948f5 100644 --- a/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/ConditionalTests.java +++ b/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/ConditionalTests.java @@ -1,9 +1,8 @@ package com.specialheaders.conditionalrequest; import com.azure.core.util.DateTimeRfc1123; -import org.junit.jupiter.api.Test; - import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; public class ConditionalTests { diff --git a/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/generated/ConditionalRequestClientTestBase.java b/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/generated/ConditionalRequestClientTestBase.java index 6f58744175..fcfc145470 100644 --- a/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/generated/ConditionalRequestClientTestBase.java +++ b/typespec-tests/src/test/java/com/specialheaders/conditionalrequest/generated/ConditionalRequestClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ConditionalRequestClientTestBase extends TestProxyTestBase { protected void beforeTest() { ConditionalRequestClientBuilder conditionalRequestClientbuilder = new ConditionalRequestClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - conditionalRequestClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { conditionalRequestClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } conditionalRequestClient = conditionalRequestClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/specialheaders/repeatability/generated/RepeatabilityClientTestBase.java b/typespec-tests/src/test/java/com/specialheaders/repeatability/generated/RepeatabilityClientTestBase.java index 9dd8381c25..d3116534a5 100644 --- a/typespec-tests/src/test/java/com/specialheaders/repeatability/generated/RepeatabilityClientTestBase.java +++ b/typespec-tests/src/test/java/com/specialheaders/repeatability/generated/RepeatabilityClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class RepeatabilityClientTestBase extends TestProxyTestBase { protected void beforeTest() { RepeatabilityClientBuilder repeatabilityClientbuilder = new RepeatabilityClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - repeatabilityClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { repeatabilityClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } repeatabilityClient = repeatabilityClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/specialwords/ModelClientTest.java b/typespec-tests/src/test/java/com/specialwords/ModelClientTest.java index 3e77ab9d0a..dea171cca6 100644 --- a/typespec-tests/src/test/java/com/specialwords/ModelClientTest.java +++ b/typespec-tests/src/test/java/com/specialwords/ModelClientTest.java @@ -4,9 +4,8 @@ package com.specialwords; import com.azure.core.util.BinaryData; -import org.junit.jupiter.api.Test; - import java.util.Collections; +import org.junit.jupiter.api.Test; public class ModelClientTest { @@ -14,6 +13,7 @@ public class ModelClientTest { @Test public void test() throws Exception { - ReflectHelper.invokeWithResponseMethods(client.getClass(), client, BinaryData.fromObject(Collections.singletonMap("name", "ok"))); + ReflectHelper.invokeWithResponseMethods(client.getClass(), client, + BinaryData.fromObject(Collections.singletonMap("name", "ok"))); } } diff --git a/typespec-tests/src/test/java/com/specialwords/ReflectHelper.java b/typespec-tests/src/test/java/com/specialwords/ReflectHelper.java index abd2644bc4..9e9c0931b1 100644 --- a/typespec-tests/src/test/java/com/specialwords/ReflectHelper.java +++ b/typespec-tests/src/test/java/com/specialwords/ReflectHelper.java @@ -4,7 +4,6 @@ package com.specialwords; import com.azure.core.http.rest.RequestOptions; - import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Arrays; @@ -13,10 +12,12 @@ // use reflection to call mock server, as special-words test is about compiler, not runtime class ReflectHelper { - public static void invokeWithResponseMethods(Class clazz, Object client, Object... parameters) throws InvocationTargetException, IllegalAccessException { + public static void invokeWithResponseMethods(Class clazz, Object client, Object... parameters) + throws InvocationTargetException, IllegalAccessException { for (Method m : clazz.getDeclaredMethods()) { if (m.getName().endsWith("WithResponse")) { - Object[] args = Stream.concat(Arrays.stream(parameters), Stream.of((RequestOptions) null)).toArray(Object[]::new); + Object[] args + = Stream.concat(Arrays.stream(parameters), Stream.of((RequestOptions) null)).toArray(Object[]::new); m.invoke(client, args); } } diff --git a/typespec-tests/src/test/java/com/specialwords/generated/SpecialWordsClientTestBase.java b/typespec-tests/src/test/java/com/specialwords/generated/SpecialWordsClientTestBase.java index a9f0e5e147..e6f5146fe9 100644 --- a/typespec-tests/src/test/java/com/specialwords/generated/SpecialWordsClientTestBase.java +++ b/typespec-tests/src/test/java/com/specialwords/generated/SpecialWordsClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -33,44 +32,36 @@ class SpecialWordsClientTestBase extends TestProxyTestBase { protected void beforeTest() { SpecialWordsClientBuilder modelsClientbuilder = new SpecialWordsClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelsClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelsClient = modelsClientbuilder.buildModelsClient(); SpecialWordsClientBuilder modelPropertiesClientbuilder = new SpecialWordsClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelPropertiesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelPropertiesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelPropertiesClient = modelPropertiesClientbuilder.buildModelPropertiesClient(); SpecialWordsClientBuilder operationsClientbuilder = new SpecialWordsClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - operationsClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { operationsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } operationsClient = operationsClientbuilder.buildOperationsClient(); SpecialWordsClientBuilder parametersClientbuilder = new SpecialWordsClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - parametersClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { parametersClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } parametersClient = parametersClientbuilder.buildParametersClient(); diff --git a/typespec-tests/src/test/java/com/type/array/BooleanValueClientTest.java b/typespec-tests/src/test/java/com/type/array/BooleanValueClientTest.java index 8982150d0a..9caa15ee3f 100644 --- a/typespec-tests/src/test/java/com/type/array/BooleanValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/BooleanValueClientTest.java @@ -3,11 +3,10 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class BooleanValueClientTest { @@ -26,4 +25,4 @@ void put() { List body = Arrays.asList(true, false); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/DatetimeValueClientTest.java b/typespec-tests/src/test/java/com/type/array/DatetimeValueClientTest.java index 76ad4e78f1..bca28a430b 100644 --- a/typespec-tests/src/test/java/com/type/array/DatetimeValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/DatetimeValueClientTest.java @@ -3,12 +3,11 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.OffsetDateTime; import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class DatetimeValueClientTest { @@ -26,4 +25,4 @@ void put() { List body = Arrays.asList(OffsetDateTime.parse("2022-08-26T18:38:00Z")); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/DurationValueClientTest.java b/typespec-tests/src/test/java/com/type/array/DurationValueClientTest.java index 1a6f7dace9..102699994d 100644 --- a/typespec-tests/src/test/java/com/type/array/DurationValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/DurationValueClientTest.java @@ -3,12 +3,11 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.Duration; import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class DurationValueClientTest { @@ -26,4 +25,4 @@ void put() { Duration duration = Duration.parse("P123DT22H14M12.011S"); client.put(Arrays.asList(duration)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/Float32ValueClientTest.java b/typespec-tests/src/test/java/com/type/array/Float32ValueClientTest.java index e75cd9cd3b..55b33945e5 100644 --- a/typespec-tests/src/test/java/com/type/array/Float32ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/Float32ValueClientTest.java @@ -3,11 +3,10 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class Float32ValueClientTest { @@ -24,4 +23,4 @@ void get() { void put() { client.put(Arrays.asList(43.125)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/Int32ValueClientTest.java b/typespec-tests/src/test/java/com/type/array/Int32ValueClientTest.java index 9241712644..cf0171db97 100644 --- a/typespec-tests/src/test/java/com/type/array/Int32ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/Int32ValueClientTest.java @@ -3,11 +3,10 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class Int32ValueClientTest { @@ -26,4 +25,4 @@ void get() { void put() { client.put(Arrays.asList(1, 2)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/Int64ValueClientTest.java b/typespec-tests/src/test/java/com/type/array/Int64ValueClientTest.java index 1e66d4c4f4..5de8f33799 100644 --- a/typespec-tests/src/test/java/com/type/array/Int64ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/Int64ValueClientTest.java @@ -3,11 +3,10 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class Int64ValueClientTest { @@ -25,4 +24,4 @@ void get() { void put() { client.put(Arrays.asList(9007199254740991L, -9007199254740991L)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/ModelValueClientTest.java b/typespec-tests/src/test/java/com/type/array/ModelValueClientTest.java index b6616511b9..60805e8569 100644 --- a/typespec-tests/src/test/java/com/type/array/ModelValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/ModelValueClientTest.java @@ -4,11 +4,10 @@ package com.type.array; import com.type.array.models.InnerModel; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class ModelValueClientTest { @@ -28,4 +27,4 @@ void put() { InnerModel model2 = new InnerModel("world"); client.put(Arrays.asList(model1, model2)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/NullableBooleanValueClientTest.java b/typespec-tests/src/test/java/com/type/array/NullableBooleanValueClientTest.java index 5cd8be4570..c026e0b2b0 100644 --- a/typespec-tests/src/test/java/com/type/array/NullableBooleanValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/NullableBooleanValueClientTest.java @@ -3,12 +3,11 @@ package com.type.array; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertIterableEquals; import java.util.Arrays; import java.util.List; - -import static org.junit.jupiter.api.Assertions.assertIterableEquals; +import org.junit.jupiter.api.Test; public class NullableBooleanValueClientTest { @@ -25,4 +24,4 @@ public void put() { List body = Arrays.asList(true, null, false); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/NullableFloatValueClientTest.java b/typespec-tests/src/test/java/com/type/array/NullableFloatValueClientTest.java index ca490093ba..e2d23a208d 100644 --- a/typespec-tests/src/test/java/com/type/array/NullableFloatValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/NullableFloatValueClientTest.java @@ -3,12 +3,11 @@ package com.type.array; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.Arrays; import java.util.List; - -import static org.junit.jupiter.api.Assertions.assertEquals; +import org.junit.jupiter.api.Test; class NullableFloatValueClientTest { @@ -25,4 +24,4 @@ void put() { List body = Arrays.asList(1.25, null, 3.0); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/NullableInt32ValueClientTest.java b/typespec-tests/src/test/java/com/type/array/NullableInt32ValueClientTest.java index a99d90c163..d7e4fc380f 100644 --- a/typespec-tests/src/test/java/com/type/array/NullableInt32ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/NullableInt32ValueClientTest.java @@ -3,12 +3,11 @@ package com.type.array; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertIterableEquals; import java.util.Arrays; import java.util.List; - -import static org.junit.jupiter.api.Assertions.assertIterableEquals; +import org.junit.jupiter.api.Test; public class NullableInt32ValueClientTest { @@ -25,4 +24,4 @@ public void put() { List body = Arrays.asList(1, null, 3); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/NullableModelValueClientTest.java b/typespec-tests/src/test/java/com/type/array/NullableModelValueClientTest.java index 2b9af3769f..95a0cad2e1 100644 --- a/typespec-tests/src/test/java/com/type/array/NullableModelValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/NullableModelValueClientTest.java @@ -3,14 +3,13 @@ package com.type.array; -import com.type.array.models.InnerModel; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; +import com.type.array.models.InnerModel; import java.util.Arrays; import java.util.List; - -import static org.junit.jupiter.api.Assertions.assertEquals; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class NullableModelValueClientTest { @@ -27,8 +26,7 @@ public void get() { @Test public void put() { - List body = Arrays.asList( - new InnerModel("hello"), null, new InnerModel("world")); + List body = Arrays.asList(new InnerModel("hello"), null, new InnerModel("world")); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/NullableStringValueClientTest.java b/typespec-tests/src/test/java/com/type/array/NullableStringValueClientTest.java index f7a2bd7115..0a738a54c3 100644 --- a/typespec-tests/src/test/java/com/type/array/NullableStringValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/NullableStringValueClientTest.java @@ -3,12 +3,11 @@ package com.type.array; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertIterableEquals; import java.util.Arrays; import java.util.List; - -import static org.junit.jupiter.api.Assertions.assertIterableEquals; +import org.junit.jupiter.api.Test; public class NullableStringValueClientTest { @@ -25,4 +24,4 @@ public void put() { List body = Arrays.asList("hello", null, "world"); client.put(body); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/StringValueClientTest.java b/typespec-tests/src/test/java/com/type/array/StringValueClientTest.java index fc743fd861..a9c4f446e7 100644 --- a/typespec-tests/src/test/java/com/type/array/StringValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/StringValueClientTest.java @@ -3,11 +3,10 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class StringValueClientTest { @@ -25,4 +24,4 @@ void get() { void put() { client.put(Arrays.asList("hello", "")); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/UnknownValueClientTest.java b/typespec-tests/src/test/java/com/type/array/UnknownValueClientTest.java index be360b02f1..d72be7af53 100644 --- a/typespec-tests/src/test/java/com/type/array/UnknownValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/array/UnknownValueClientTest.java @@ -3,11 +3,10 @@ package com.type.array; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class UnknownValueClientTest { @@ -26,4 +25,4 @@ void get() { void put() { client.put(Arrays.asList(1, "hello", null)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/array/generated/ArrayClientTestBase.java b/typespec-tests/src/test/java/com/type/array/generated/ArrayClientTestBase.java index dff94f0fac..5c429dd768 100644 --- a/typespec-tests/src/test/java/com/type/array/generated/ArrayClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/array/generated/ArrayClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -63,154 +62,126 @@ class ArrayClientTestBase extends TestProxyTestBase { protected void beforeTest() { ArrayClientBuilder int32ValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - int32ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { int32ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } int32ValueClient = int32ValueClientbuilder.buildInt32ValueClient(); ArrayClientBuilder int64ValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - int64ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { int64ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } int64ValueClient = int64ValueClientbuilder.buildInt64ValueClient(); ArrayClientBuilder booleanValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - booleanValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { booleanValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } booleanValueClient = booleanValueClientbuilder.buildBooleanValueClient(); ArrayClientBuilder stringValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringValueClient = stringValueClientbuilder.buildStringValueClient(); ArrayClientBuilder float32ValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - float32ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { float32ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } float32ValueClient = float32ValueClientbuilder.buildFloat32ValueClient(); ArrayClientBuilder datetimeValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - datetimeValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { datetimeValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } datetimeValueClient = datetimeValueClientbuilder.buildDatetimeValueClient(); ArrayClientBuilder durationValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - durationValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { durationValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } durationValueClient = durationValueClientbuilder.buildDurationValueClient(); ArrayClientBuilder unknownValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownValueClient = unknownValueClientbuilder.buildUnknownValueClient(); ArrayClientBuilder modelValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelValueClient = modelValueClientbuilder.buildModelValueClient(); ArrayClientBuilder nullableFloatValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nullableFloatValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nullableFloatValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nullableFloatValueClient = nullableFloatValueClientbuilder.buildNullableFloatValueClient(); ArrayClientBuilder nullableInt32ValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nullableInt32ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nullableInt32ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nullableInt32ValueClient = nullableInt32ValueClientbuilder.buildNullableInt32ValueClient(); ArrayClientBuilder nullableBooleanValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nullableBooleanValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nullableBooleanValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nullableBooleanValueClient = nullableBooleanValueClientbuilder.buildNullableBooleanValueClient(); ArrayClientBuilder nullableStringValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nullableStringValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nullableStringValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nullableStringValueClient = nullableStringValueClientbuilder.buildNullableStringValueClient(); ArrayClientBuilder nullableModelValueClientbuilder = new ArrayClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nullableModelValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nullableModelValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nullableModelValueClient = nullableModelValueClientbuilder.buildNullableModelValueClient(); diff --git a/typespec-tests/src/test/java/com/type/dictionary/BooleanValueTests.java b/typespec-tests/src/test/java/com/type/dictionary/BooleanValueTests.java index 36323923f8..664b2953bb 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/BooleanValueTests.java +++ b/typespec-tests/src/test/java/com/type/dictionary/BooleanValueTests.java @@ -3,11 +3,10 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class BooleanValueTests { diff --git a/typespec-tests/src/test/java/com/type/dictionary/DatetimeValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/DatetimeValueClientTest.java index b472c5a68f..c2b9294a74 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/DatetimeValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/DatetimeValueClientTest.java @@ -3,12 +3,11 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class DatetimeValueClientTest { @@ -27,4 +26,4 @@ void put() { map.put("k1", OffsetDateTime.parse("2022-08-26T18:38Z")); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/DurationValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/DurationValueClientTest.java index 3593800464..916fc5cc4d 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/DurationValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/DurationValueClientTest.java @@ -3,12 +3,11 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.time.Duration; import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class DurationValueClientTest { @@ -27,4 +26,4 @@ void put() { map.put("k1", Duration.parse("P123DT22H14M12.011S")); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/Float32ValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/Float32ValueClientTest.java index 7cd3ca3c13..95a9767ca3 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/Float32ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/Float32ValueClientTest.java @@ -3,11 +3,10 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class Float32ValueClientTest { @@ -26,4 +25,4 @@ void put() { map.put("k1", 43.125); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/Int32ValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/Int32ValueClientTest.java index 7fa857147c..e3aa4e0c33 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/Int32ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/Int32ValueClientTest.java @@ -3,11 +3,10 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class Int32ValueClientTest { @@ -29,4 +28,4 @@ void put() { map.put("k2", 2); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/Int64ValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/Int64ValueClientTest.java index 0cefe86888..0f39a5b114 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/Int64ValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/Int64ValueClientTest.java @@ -3,11 +3,10 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class Int64ValueClientTest { @@ -29,4 +28,4 @@ void put() { map.put("k2", -9007199254740991L); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/ModelValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/ModelValueClientTest.java index f5fef92bcd..ed56eb6ffa 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/ModelValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/ModelValueClientTest.java @@ -4,11 +4,10 @@ package com.type.dictionary; import com.type.dictionary.models.InnerModel; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class ModelValueClientTest { @@ -37,4 +36,4 @@ void put() { map.put("k2", innerModel2); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/NullableFloatValueClientTests.java b/typespec-tests/src/test/java/com/type/dictionary/NullableFloatValueClientTests.java index 917d3beef3..796e05d5ce 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/NullableFloatValueClientTests.java +++ b/typespec-tests/src/test/java/com/type/dictionary/NullableFloatValueClientTests.java @@ -7,11 +7,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class NullableFloatValueClientTests { diff --git a/typespec-tests/src/test/java/com/type/dictionary/RecursiveModelValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/RecursiveModelValueClientTest.java index 9942ed0b14..75f3f0b4ad 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/RecursiveModelValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/RecursiveModelValueClientTest.java @@ -4,11 +4,10 @@ package com.type.dictionary; import com.type.dictionary.models.InnerModel; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class RecursiveModelValueClientTest { @@ -41,4 +40,4 @@ void put() { map.put("k2", innerModel2); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/StringValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/StringValueClientTest.java index e682f57870..65e0a09881 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/StringValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/StringValueClientTest.java @@ -3,11 +3,10 @@ package com.type.dictionary; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class StringValueClientTest { @@ -27,4 +26,4 @@ void put() { map.put("k2", ""); client.put(map); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/UnknownValueClientTest.java b/typespec-tests/src/test/java/com/type/dictionary/UnknownValueClientTest.java index d4be634deb..829b1ff54f 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/UnknownValueClientTest.java +++ b/typespec-tests/src/test/java/com/type/dictionary/UnknownValueClientTest.java @@ -7,21 +7,20 @@ import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.NullNode; import com.fasterxml.jackson.databind.node.ObjectNode; +import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.util.Map; - class UnknownValueClientTest { UnknownValueClient client = new DictionaryClientBuilder().buildUnknownValueClient(); @Test void get() { - Map response = client.get(); - Assertions.assertEquals(1, response.get("k1")); - Assertions.assertEquals("hello", response.get("k2")); - Assertions.assertEquals(null, response.get("k3")); + Map response = client.get(); + Assertions.assertEquals(1, response.get("k1")); + Assertions.assertEquals("hello", response.get("k2")); + Assertions.assertEquals(null, response.get("k3")); } @Test @@ -32,4 +31,4 @@ void putWithResponse() { map.set("k3", NullNode.instance); client.putWithResponse(BinaryData.fromObject(map), null); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/dictionary/generated/DictionaryClientTestBase.java b/typespec-tests/src/test/java/com/type/dictionary/generated/DictionaryClientTestBase.java index eb6b0bd8ad..fa8562b0fa 100644 --- a/typespec-tests/src/test/java/com/type/dictionary/generated/DictionaryClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/dictionary/generated/DictionaryClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -54,121 +53,99 @@ class DictionaryClientTestBase extends TestProxyTestBase { protected void beforeTest() { DictionaryClientBuilder int32ValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - int32ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { int32ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } int32ValueClient = int32ValueClientbuilder.buildInt32ValueClient(); DictionaryClientBuilder int64ValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - int64ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { int64ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } int64ValueClient = int64ValueClientbuilder.buildInt64ValueClient(); DictionaryClientBuilder booleanValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - booleanValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { booleanValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } booleanValueClient = booleanValueClientbuilder.buildBooleanValueClient(); DictionaryClientBuilder stringValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringValueClient = stringValueClientbuilder.buildStringValueClient(); DictionaryClientBuilder float32ValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - float32ValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { float32ValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } float32ValueClient = float32ValueClientbuilder.buildFloat32ValueClient(); DictionaryClientBuilder datetimeValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - datetimeValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { datetimeValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } datetimeValueClient = datetimeValueClientbuilder.buildDatetimeValueClient(); DictionaryClientBuilder durationValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - durationValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { durationValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } durationValueClient = durationValueClientbuilder.buildDurationValueClient(); DictionaryClientBuilder unknownValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownValueClient = unknownValueClientbuilder.buildUnknownValueClient(); DictionaryClientBuilder modelValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelValueClient = modelValueClientbuilder.buildModelValueClient(); DictionaryClientBuilder recursiveModelValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - recursiveModelValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { recursiveModelValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } recursiveModelValueClient = recursiveModelValueClientbuilder.buildRecursiveModelValueClient(); DictionaryClientBuilder nullableFloatValueClientbuilder = new DictionaryClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nullableFloatValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nullableFloatValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nullableFloatValueClient = nullableFloatValueClientbuilder.buildNullableFloatValueClient(); diff --git a/typespec-tests/src/test/java/com/type/enums/extensible/ExtensibleClientTest.java b/typespec-tests/src/test/java/com/type/enums/extensible/ExtensibleClientTest.java index 478722c9b4..16ee96223f 100644 --- a/typespec-tests/src/test/java/com/type/enums/extensible/ExtensibleClientTest.java +++ b/typespec-tests/src/test/java/com/type/enums/extensible/ExtensibleClientTest.java @@ -10,6 +10,7 @@ class ExtensibleClientTest { ExtensibleClient client = new ExtensibleClientBuilder().buildClient(); + @Test void getKnownValue() { DaysOfWeekExtensibleEnum daysOfWeekExtensibleEnum = client.getKnownValue(); @@ -34,4 +35,4 @@ void putUnknownValue() { client.putUnknownValue(daysOfWeekExtensibleEnum); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/enums/extensible/generated/ExtensibleClientTestBase.java b/typespec-tests/src/test/java/com/type/enums/extensible/generated/ExtensibleClientTestBase.java index c69dc45559..eaa5cd5604 100644 --- a/typespec-tests/src/test/java/com/type/enums/extensible/generated/ExtensibleClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/enums/extensible/generated/ExtensibleClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class ExtensibleClientTestBase extends TestProxyTestBase { protected void beforeTest() { ExtensibleClientBuilder extensibleClientbuilder = new ExtensibleClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extensibleClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extensibleClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extensibleClient = extensibleClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/enums/fixed/FixedClientTest.java b/typespec-tests/src/test/java/com/type/enums/fixed/FixedClientTest.java index 0ccb7d6f11..1f34178449 100644 --- a/typespec-tests/src/test/java/com/type/enums/fixed/FixedClientTest.java +++ b/typespec-tests/src/test/java/com/type/enums/fixed/FixedClientTest.java @@ -8,16 +8,15 @@ import com.azure.core.http.policy.RetryOptions; import com.azure.core.util.BinaryData; import com.type.enums.fixed.models.DaysOfWeekEnum; +import java.time.Duration; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.time.Duration; - class FixedClientTest { - FixedClient client = new FixedClientBuilder() - .retryOptions(new RetryOptions(new FixedDelayOptions(0, Duration.ZERO))) - .buildClient(); + FixedClient client + = new FixedClientBuilder().retryOptions(new RetryOptions(new FixedDelayOptions(0, Duration.ZERO))) + .buildClient(); @Test void getKnownValue() { @@ -30,7 +29,6 @@ void putKnownValue() { client.putKnownValue(DaysOfWeekEnum.MONDAY); } - @Test void putUnknownValue() { // Not a valid test for Java, as compiler will fail at "DaysOfWeekEnum.WEEKEND" @@ -39,4 +37,4 @@ void putUnknownValue() { Assertions.assertThrowsExactly(HttpResponseException.class, () -> client.putUnknownValueWithResponse(BinaryData.fromObject("Weekend"), null)); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/enums/fixed/generated/FixedClientTestBase.java b/typespec-tests/src/test/java/com/type/enums/fixed/generated/FixedClientTestBase.java index 42c3443dba..33b3803b97 100644 --- a/typespec-tests/src/test/java/com/type/enums/fixed/generated/FixedClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/enums/fixed/generated/FixedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class FixedClientTestBase extends TestProxyTestBase { protected void beforeTest() { FixedClientBuilder fixedClientbuilder = new FixedClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - fixedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { fixedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } fixedClient = fixedClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/empty/generated/EmptyClientTestBase.java b/typespec-tests/src/test/java/com/type/model/empty/generated/EmptyClientTestBase.java index b79668911d..e6d3cfa48f 100644 --- a/typespec-tests/src/test/java/com/type/model/empty/generated/EmptyClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/empty/generated/EmptyClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class EmptyClientTestBase extends TestProxyTestBase { protected void beforeTest() { EmptyClientBuilder emptyClientbuilder = new EmptyClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - emptyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { emptyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } emptyClient = emptyClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/InheritanceTests.java b/typespec-tests/src/test/java/com/type/model/inheritance/InheritanceTests.java index eb2632f4f9..8f6802f666 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/InheritanceTests.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/InheritanceTests.java @@ -32,4 +32,4 @@ void putValid() { Siamese siamese = new Siamese("abc", 32, true); client.putValid(siamese); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/NestedDiscriminatorTests.java b/typespec-tests/src/test/java/com/type/model/inheritance/NestedDiscriminatorTests.java index c4e2ef844f..0876795c72 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/NestedDiscriminatorTests.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/NestedDiscriminatorTests.java @@ -10,14 +10,12 @@ import com.type.model.inheritance.nesteddiscriminator.models.Salmon; import com.type.model.inheritance.nesteddiscriminator.models.SawShark; import com.type.model.inheritance.nesteddiscriminator.models.Shark; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class NestedDiscriminatorTests { @@ -45,7 +43,6 @@ void getRecursiveModel() { Assertions.assertEquals(2, (salmon.getPartner()).getAge()); } - @Test void putRecursiveModel() { Salmon salmon = new Salmon(1); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/enumdiscriminator/generated/EnumDiscriminatorClientTestBase.java b/typespec-tests/src/test/java/com/type/model/inheritance/enumdiscriminator/generated/EnumDiscriminatorClientTestBase.java index 3dfa60ccab..bbf0ecdc79 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/enumdiscriminator/generated/EnumDiscriminatorClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/enumdiscriminator/generated/EnumDiscriminatorClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class EnumDiscriminatorClientTestBase extends TestProxyTestBase { protected void beforeTest() { EnumDiscriminatorClientBuilder enumDiscriminatorClientbuilder = new EnumDiscriminatorClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - enumDiscriminatorClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { enumDiscriminatorClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } enumDiscriminatorClient = enumDiscriminatorClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/enumnesteddiscriminator/generated/EnumNestedDiscriminatorClientTestBase.java b/typespec-tests/src/test/java/com/type/model/inheritance/enumnesteddiscriminator/generated/EnumNestedDiscriminatorClientTestBase.java index ccc4713985..9e9e0aa1df 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/enumnesteddiscriminator/generated/EnumNestedDiscriminatorClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/enumnesteddiscriminator/generated/EnumNestedDiscriminatorClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -25,11 +24,9 @@ protected void beforeTest() { EnumNestedDiscriminatorClientBuilder enumNestedDiscriminatorClientbuilder = new EnumNestedDiscriminatorClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - enumNestedDiscriminatorClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { enumNestedDiscriminatorClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } enumNestedDiscriminatorClient = enumNestedDiscriminatorClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/nesteddiscriminator/generated/NestedDiscriminatorClientTestBase.java b/typespec-tests/src/test/java/com/type/model/inheritance/nesteddiscriminator/generated/NestedDiscriminatorClientTestBase.java index f22e376b2c..81e85a6f6f 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/nesteddiscriminator/generated/NestedDiscriminatorClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/nesteddiscriminator/generated/NestedDiscriminatorClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class NestedDiscriminatorClientTestBase extends TestProxyTestBase { protected void beforeTest() { NestedDiscriminatorClientBuilder nestedDiscriminatorClientbuilder = new NestedDiscriminatorClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - nestedDiscriminatorClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { nestedDiscriminatorClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } nestedDiscriminatorClient = nestedDiscriminatorClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/notdiscriminated/generated/NotDiscriminatedClientTestBase.java b/typespec-tests/src/test/java/com/type/model/inheritance/notdiscriminated/generated/NotDiscriminatedClientTestBase.java index 980407e0d3..3f2bd606cb 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/notdiscriminated/generated/NotDiscriminatedClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/notdiscriminated/generated/NotDiscriminatedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class NotDiscriminatedClientTestBase extends TestProxyTestBase { protected void beforeTest() { NotDiscriminatedClientBuilder notDiscriminatedClientbuilder = new NotDiscriminatedClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - notDiscriminatedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { notDiscriminatedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } notDiscriminatedClient = notDiscriminatedClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/recursive/generated/RecursiveClientTestBase.java b/typespec-tests/src/test/java/com/type/model/inheritance/recursive/generated/RecursiveClientTestBase.java index 15cc609f64..757e2ee99d 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/recursive/generated/RecursiveClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/recursive/generated/RecursiveClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class RecursiveClientTestBase extends TestProxyTestBase { protected void beforeTest() { RecursiveClientBuilder recursiveClientbuilder = new RecursiveClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - recursiveClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { recursiveClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } recursiveClient = recursiveClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/inheritance/singlediscriminator/generated/SingleDiscriminatorClientTestBase.java b/typespec-tests/src/test/java/com/type/model/inheritance/singlediscriminator/generated/SingleDiscriminatorClientTestBase.java index a871b2e7ac..0be06cfb19 100644 --- a/typespec-tests/src/test/java/com/type/model/inheritance/singlediscriminator/generated/SingleDiscriminatorClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/inheritance/singlediscriminator/generated/SingleDiscriminatorClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class SingleDiscriminatorClientTestBase extends TestProxyTestBase { protected void beforeTest() { SingleDiscriminatorClientBuilder singleDiscriminatorClientbuilder = new SingleDiscriminatorClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - singleDiscriminatorClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { singleDiscriminatorClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } singleDiscriminatorClient = singleDiscriminatorClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/usage/ModelsUsageClientTest.java b/typespec-tests/src/test/java/com/type/model/usage/ModelsUsageClientTest.java index d3e995c73d..c69649ea0c 100644 --- a/typespec-tests/src/test/java/com/type/model/usage/ModelsUsageClientTest.java +++ b/typespec-tests/src/test/java/com/type/model/usage/ModelsUsageClientTest.java @@ -31,4 +31,4 @@ void inputAndOutput() { InputOutputRecord response = client.inputAndOutput(inputOutputRecord); Assertions.assertEquals("example-value", response.getRequiredProp()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/model/usage/UsageClientTest.java b/typespec-tests/src/test/java/com/type/model/usage/UsageClientTest.java index 5561832b08..389be09349 100644 --- a/typespec-tests/src/test/java/com/type/model/usage/UsageClientTest.java +++ b/typespec-tests/src/test/java/com/type/model/usage/UsageClientTest.java @@ -31,4 +31,4 @@ void inputAndOutput() { InputOutputRecord response = client.inputAndOutput(inputOutputRecord); Assertions.assertEquals("example-value", response.getRequiredProp()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/model/usage/generated/UsageClientTestBase.java b/typespec-tests/src/test/java/com/type/model/usage/generated/UsageClientTestBase.java index e135b9c68c..868587e9b6 100644 --- a/typespec-tests/src/test/java/com/type/model/usage/generated/UsageClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/usage/generated/UsageClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class UsageClientTestBase extends TestProxyTestBase { protected void beforeTest() { UsageClientBuilder usageClientbuilder = new UsageClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - usageClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { usageClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } usageClient = usageClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/model/visibility/AutomaticClientTest.java b/typespec-tests/src/test/java/com/type/model/visibility/AutomaticClientTest.java index a08e03795e..9f022f5c4c 100644 --- a/typespec-tests/src/test/java/com/type/model/visibility/AutomaticClientTest.java +++ b/typespec-tests/src/test/java/com/type/model/visibility/AutomaticClientTest.java @@ -3,17 +3,22 @@ package com.type.model.visibility; +import com.azure.core.http.HttpClient; +import com.azure.core.http.netty.NettyAsyncHttpClientProvider; +import com.azure.core.util.HttpClientOptions; import com.type.model.visibility.models.ReadOnlyModel; import com.type.model.visibility.models.VisibilityModel; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.util.Arrays; - // These cases are using protocol method, we don't support automatic visibility for convenience methods yet, the tests are added for cadl-ranch coverage. class AutomaticClientTest { - private final VisibilityClient client = new VisibilityClientBuilder().buildClient(); + private final VisibilityClient client = new VisibilityClientBuilder() + .httpClient( + HttpClient.createDefault(new HttpClientOptions().setHttpClientProvider(NettyAsyncHttpClientProvider.class))) + .buildClient(); @Test void getModel() { @@ -29,7 +34,8 @@ void headModel() { @Test void putModel() { - // client.putModelWithResponse(BinaryData.fromString("{\"createProp\": [\"foo\",\"bar\"], \"updateProp\": [1, 2]}"), null); + // client.putModelWithResponse(BinaryData.fromString("{\"createProp\": [\"foo\",\"bar\"], \"updateProp\": [1, + // 2]}"), null); client.putModel(new VisibilityModel(null, Arrays.asList("foo", "bar"), Arrays.asList(1, 2), null)); } diff --git a/typespec-tests/src/test/java/com/type/model/visibility/generated/VisibilityClientTestBase.java b/typespec-tests/src/test/java/com/type/model/visibility/generated/VisibilityClientTestBase.java index b610274bf6..44ce57fe27 100644 --- a/typespec-tests/src/test/java/com/type/model/visibility/generated/VisibilityClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/model/visibility/generated/VisibilityClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -24,11 +23,9 @@ class VisibilityClientTestBase extends TestProxyTestBase { protected void beforeTest() { VisibilityClientBuilder visibilityClientbuilder = new VisibilityClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - visibilityClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { visibilityClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } visibilityClient = visibilityClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/ExtendsTests.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/ExtendsTests.java index 6f8fae9420..17d4657bdc 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/ExtendsTests.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/ExtendsTests.java @@ -3,10 +3,6 @@ package com.type.property.additionalproperties; -import com.type.property.additionalproperties.models.ExtendsUnknownAdditionalPropertiesDiscriminated; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import com.type.property.additionalproperties.models.DifferentSpreadFloatDerived; import com.type.property.additionalproperties.models.DifferentSpreadModelArrayDerived; import com.type.property.additionalproperties.models.DifferentSpreadModelDerived; @@ -17,26 +13,39 @@ import com.type.property.additionalproperties.models.ExtendsStringAdditionalProperties; import com.type.property.additionalproperties.models.ExtendsUnknownAdditionalProperties; import com.type.property.additionalproperties.models.ExtendsUnknownAdditionalPropertiesDerived; +import com.type.property.additionalproperties.models.ExtendsUnknownAdditionalPropertiesDiscriminated; import com.type.property.additionalproperties.models.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived; import com.type.property.additionalproperties.models.ModelForRecord; - import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class ExtendsTests { - private final ExtendsFloatClient extendsFloatClient = new AdditionalPropertiesClientBuilder().buildExtendsFloatClient(); - private final ExtendsModelArrayClient extendsModelArrayClient = new AdditionalPropertiesClientBuilder().buildExtendsModelArrayClient(); - private final ExtendsModelClient extendsModelClient = new AdditionalPropertiesClientBuilder().buildExtendsModelClient(); - private final ExtendsStringClient extendsStringClient = new AdditionalPropertiesClientBuilder().buildExtendsStringClient(); - private final ExtendsUnknownClient extendsUnknownClient = new AdditionalPropertiesClientBuilder().buildExtendsUnknownClient(); - private final ExtendsUnknownDerivedClient extendsUnknownDerivedClient = new AdditionalPropertiesClientBuilder().buildExtendsUnknownDerivedClient(); - private final ExtendsUnknownDiscriminatedClient extendsUnknownDiscriminatedClient = new AdditionalPropertiesClientBuilder().buildExtendsUnknownDiscriminatedClient(); - private final ExtendsDifferentSpreadStringClient extendsDifferentSpreadStringClient = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadStringClient(); - private final ExtendsDifferentSpreadFloatClient extendsDifferentSpreadFloatClient = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadFloatClient(); - private final ExtendsDifferentSpreadModelClient extendsDifferentSpreadModelClient = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadModelClient(); - private final ExtendsDifferentSpreadModelArrayClient extendsDifferentSpreadModelArrayClient = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadModelArrayClient(); + private final ExtendsFloatClient extendsFloatClient + = new AdditionalPropertiesClientBuilder().buildExtendsFloatClient(); + private final ExtendsModelArrayClient extendsModelArrayClient + = new AdditionalPropertiesClientBuilder().buildExtendsModelArrayClient(); + private final ExtendsModelClient extendsModelClient + = new AdditionalPropertiesClientBuilder().buildExtendsModelClient(); + private final ExtendsStringClient extendsStringClient + = new AdditionalPropertiesClientBuilder().buildExtendsStringClient(); + private final ExtendsUnknownClient extendsUnknownClient + = new AdditionalPropertiesClientBuilder().buildExtendsUnknownClient(); + private final ExtendsUnknownDerivedClient extendsUnknownDerivedClient + = new AdditionalPropertiesClientBuilder().buildExtendsUnknownDerivedClient(); + private final ExtendsUnknownDiscriminatedClient extendsUnknownDiscriminatedClient + = new AdditionalPropertiesClientBuilder().buildExtendsUnknownDiscriminatedClient(); + private final ExtendsDifferentSpreadStringClient extendsDifferentSpreadStringClient + = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadStringClient(); + private final ExtendsDifferentSpreadFloatClient extendsDifferentSpreadFloatClient + = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadFloatClient(); + private final ExtendsDifferentSpreadModelClient extendsDifferentSpreadModelClient + = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadModelClient(); + private final ExtendsDifferentSpreadModelArrayClient extendsDifferentSpreadModelArrayClient + = new AdditionalPropertiesClientBuilder().buildExtendsDifferentSpreadModelArrayClient(); @Test public void testExtendsFloat() { @@ -57,20 +66,20 @@ public void testExtendsFloat() { public void testExtendsModelArrayClient() { Map> propertyMap = new LinkedHashMap<>(); propertyMap.put("prop", Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); - ExtendsModelArrayAdditionalProperties body = - new ExtendsModelArrayAdditionalProperties(Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); + ExtendsModelArrayAdditionalProperties body = new ExtendsModelArrayAdditionalProperties( + Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); body.setAdditionalProperties(propertyMap); extendsModelArrayClient.put(body); ExtendsModelArrayAdditionalProperties properties = extendsModelArrayClient.get(); Assertions.assertNotNull(properties); Assertions.assertNotNull(properties.getKnownProp()); - properties.getKnownProp().forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + properties.getKnownProp().forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); Assertions.assertNotNull(properties.getAdditionalProperties()); Assertions.assertNotNull(properties.getAdditionalProperties().get("prop")); - properties.getAdditionalProperties().get("prop").forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + properties.getAdditionalProperties() + .get("prop") + .forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); } @Test @@ -93,9 +102,9 @@ public void testExtendsModelClient() { @Test public void testExtendsStringClient() { Map propertyMap = new LinkedHashMap<>(); - propertyMap.put("prop", "abc") ; - ExtendsStringAdditionalProperties body = - new ExtendsStringAdditionalProperties("ExtendsStringAdditionalProperties"); + propertyMap.put("prop", "abc"); + ExtendsStringAdditionalProperties body + = new ExtendsStringAdditionalProperties("ExtendsStringAdditionalProperties"); body.setAdditionalProperties(propertyMap); extendsStringClient.put(body); @@ -110,10 +119,10 @@ public void testExtendsStringClient() { public void testExtendsUnknownClient() { Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop1", 32); - propertyMap.put("prop2", true) ; - propertyMap.put("prop3", "abc") ; - ExtendsUnknownAdditionalProperties body = - new ExtendsUnknownAdditionalProperties("ExtendsUnknownAdditionalProperties"); + propertyMap.put("prop2", true); + propertyMap.put("prop3", "abc"); + ExtendsUnknownAdditionalProperties body + = new ExtendsUnknownAdditionalProperties("ExtendsUnknownAdditionalProperties"); body.setAdditionalProperties(propertyMap); extendsUnknownClient.put(body); @@ -128,10 +137,10 @@ public void testExtendsUnknownClient() { public void testExtendsUnknownDerivedClient() { Map additionalProperty = new LinkedHashMap<>(); additionalProperty.put("prop1", 32); - additionalProperty.put("prop2", true) ; - additionalProperty.put("prop3", "abc") ; - ExtendsUnknownAdditionalPropertiesDerived body = new ExtendsUnknownAdditionalPropertiesDerived("ExtendsUnknownAdditionalProperties", 314) - .setAge(2.71875); + additionalProperty.put("prop2", true); + additionalProperty.put("prop3", "abc"); + ExtendsUnknownAdditionalPropertiesDerived body + = new ExtendsUnknownAdditionalPropertiesDerived("ExtendsUnknownAdditionalProperties", 314).setAge(2.71875); body.setAdditionalProperties(additionalProperty); extendsUnknownDerivedClient.put(body); @@ -146,10 +155,10 @@ public void testExtendsUnknownDerivedClient() { public void testExtendsUnknownDiscriminatedClient() { Map additionalProperty = new LinkedHashMap<>(); additionalProperty.put("prop1", 32); - additionalProperty.put("prop2", true) ; - additionalProperty.put("prop3", "abc") ; - ExtendsUnknownAdditionalPropertiesDiscriminatedDerived body = new ExtendsUnknownAdditionalPropertiesDiscriminatedDerived("Derived", 314) - .setAge(2.71875); + additionalProperty.put("prop2", true); + additionalProperty.put("prop3", "abc"); + ExtendsUnknownAdditionalPropertiesDiscriminatedDerived body + = new ExtendsUnknownAdditionalPropertiesDiscriminatedDerived("Derived", 314).setAge(2.71875); body.setAdditionalProperties(additionalProperty); extendsUnknownDiscriminatedClient.put(body); @@ -213,18 +222,19 @@ public void testExtendsDifferentSpreadModel() { public void testExtendsDifferentSpreadModelArray() { Map> propertyMap = new LinkedHashMap<>(); propertyMap.put("prop", Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); - DifferentSpreadModelArrayDerived body = new DifferentSpreadModelArrayDerived("abc", Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); + DifferentSpreadModelArrayDerived body = new DifferentSpreadModelArrayDerived("abc", + Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); body.setAdditionalProperties(propertyMap); extendsDifferentSpreadModelArrayClient.put(body); DifferentSpreadModelArrayDerived record = extendsDifferentSpreadModelArrayClient.get(); Assertions.assertNotNull(record); Assertions.assertNotNull(record.getDerivedProp()); - record.getDerivedProp().forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + record.getDerivedProp().forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop")); - record.getAdditionalProperties().get("prop").forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + record.getAdditionalProperties() + .get("prop") + .forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); } } diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsFloatClientTest.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsFloatClientTest.java index ad5c16daf6..6f6da08ccd 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsFloatClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsFloatClientTest.java @@ -4,18 +4,17 @@ package com.type.property.additionalproperties; import com.type.property.additionalproperties.models.IsFloatAdditionalProperties; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.LinkedHashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class IsFloatClientTest { private final IsFloatClient client = new AdditionalPropertiesClientBuilder().buildIsFloatClient(); @Test public void testPullAndGet() { - IsFloatAdditionalProperties body = new IsFloatAdditionalProperties( 43.125); + IsFloatAdditionalProperties body = new IsFloatAdditionalProperties(43.125); Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop", 43.125); body.setAdditionalProperties(propertyMap); diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelArrayClientTest.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelArrayClientTest.java index 7784f982b6..a267d2e571 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelArrayClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelArrayClientTest.java @@ -5,13 +5,12 @@ import com.type.property.additionalproperties.models.IsModelArrayAdditionalProperties; import com.type.property.additionalproperties.models.ModelForRecord; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class IsModelArrayClientTest { private final IsModelArrayClient client = new AdditionalPropertiesClientBuilder().buildIsModelArrayClient(); @@ -20,19 +19,19 @@ public class IsModelArrayClientTest { public void testPullAndGet() { Map> propertyMap = new LinkedHashMap<>(); propertyMap.put("prop", Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); - IsModelArrayAdditionalProperties body = - new IsModelArrayAdditionalProperties(Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); + IsModelArrayAdditionalProperties body + = new IsModelArrayAdditionalProperties(Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); body.setAdditionalProperties(propertyMap); client.put(body); IsModelArrayAdditionalProperties properties = client.get(); Assertions.assertNotNull(properties); Assertions.assertNotNull(properties.getKnownProp()); - properties.getKnownProp().forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + properties.getKnownProp().forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); Assertions.assertNotNull(properties.getAdditionalProperties()); Assertions.assertNotNull(properties.getAdditionalProperties().get("prop")); - properties.getAdditionalProperties().get("prop").forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + properties.getAdditionalProperties() + .get("prop") + .forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); } } diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelClientTest.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelClientTest.java index 5cef15c903..432ba8e294 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsModelClientTest.java @@ -5,11 +5,10 @@ import com.type.property.additionalproperties.models.IsModelAdditionalProperties; import com.type.property.additionalproperties.models.ModelForRecord; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.LinkedHashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class IsModelClientTest { private final IsModelClient client = new AdditionalPropertiesClientBuilder().buildIsModelClient(); diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsStringClientTest.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsStringClientTest.java index 276df41e9a..94739caf49 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsStringClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsStringClientTest.java @@ -4,21 +4,19 @@ package com.type.property.additionalproperties; import com.type.property.additionalproperties.models.IsStringAdditionalProperties; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.LinkedHashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class IsStringClientTest { private final IsStringClient client = new AdditionalPropertiesClientBuilder().buildIsStringClient(); @Test public void testPullAndGet() { - IsStringAdditionalProperties body = - new IsStringAdditionalProperties("IsStringAdditionalProperties"); + IsStringAdditionalProperties body = new IsStringAdditionalProperties("IsStringAdditionalProperties"); Map propertyMap = new LinkedHashMap<>(); - propertyMap.put("prop", "abc") ; + propertyMap.put("prop", "abc"); body.setAdditionalProperties(propertyMap); client.put(body); diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsUnknownClientTest.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsUnknownClientTest.java index a3a5acae2a..3ca2bad393 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/IsUnknownClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/IsUnknownClientTest.java @@ -7,25 +7,25 @@ import com.type.property.additionalproperties.models.IsUnknownAdditionalPropertiesDerived; import com.type.property.additionalproperties.models.IsUnknownAdditionalPropertiesDiscriminated; import com.type.property.additionalproperties.models.IsUnknownAdditionalPropertiesDiscriminatedDerived; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.LinkedHashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class IsUnknownClientTest { private final IsUnknownClient client = new AdditionalPropertiesClientBuilder().buildIsUnknownClient(); - private final IsUnknownDerivedClient isUnknownDerivedClient = new AdditionalPropertiesClientBuilder().buildIsUnknownDerivedClient(); - private final IsUnknownDiscriminatedClient isUnknownDiscriminatedClient = new AdditionalPropertiesClientBuilder().buildIsUnknownDiscriminatedClient(); + private final IsUnknownDerivedClient isUnknownDerivedClient + = new AdditionalPropertiesClientBuilder().buildIsUnknownDerivedClient(); + private final IsUnknownDiscriminatedClient isUnknownDiscriminatedClient + = new AdditionalPropertiesClientBuilder().buildIsUnknownDiscriminatedClient(); @Test public void testPullAndGet() { - IsUnknownAdditionalProperties body = - new IsUnknownAdditionalProperties("IsUnknownAdditionalProperties"); + IsUnknownAdditionalProperties body = new IsUnknownAdditionalProperties("IsUnknownAdditionalProperties"); Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop1", 32); - propertyMap.put("prop2", true) ; - propertyMap.put("prop3", "abc") ; + propertyMap.put("prop2", true); + propertyMap.put("prop3", "abc"); body.setAdditionalProperties(propertyMap); client.put(body); @@ -40,11 +40,11 @@ public void testPullAndGet() { public void testIsUnknownDerivedClient() { Map additionalProperty = new LinkedHashMap<>(); additionalProperty.put("prop1", 32); - additionalProperty.put("prop2", true) ; - additionalProperty.put("prop3", "abc") ; + additionalProperty.put("prop2", true); + additionalProperty.put("prop3", "abc"); - IsUnknownAdditionalPropertiesDerived body = new IsUnknownAdditionalPropertiesDerived("IsUnknownAdditionalProperties", 314) - .setAge(2.71875); + IsUnknownAdditionalPropertiesDerived body + = new IsUnknownAdditionalPropertiesDerived("IsUnknownAdditionalProperties", 314).setAge(2.71875); body.setAdditionalProperties(additionalProperty); isUnknownDerivedClient.put(body); @@ -60,11 +60,11 @@ public void testIsUnknownDerivedClient() { public void testIsUnknownDiscriminatedClient() { Map additionalProperty = new LinkedHashMap<>(); additionalProperty.put("prop1", 32); - additionalProperty.put("prop2", true) ; - additionalProperty.put("prop3", "abc") ; + additionalProperty.put("prop2", true); + additionalProperty.put("prop3", "abc"); - IsUnknownAdditionalPropertiesDiscriminatedDerived body = new IsUnknownAdditionalPropertiesDiscriminatedDerived("Derived", 314) - .setAge(2.71875); + IsUnknownAdditionalPropertiesDiscriminatedDerived body + = new IsUnknownAdditionalPropertiesDiscriminatedDerived("Derived", 314).setAge(2.71875); body.setAdditionalProperties(additionalProperty); isUnknownDiscriminatedClient.put(body); diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/MultipleSpreadTests.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/MultipleSpreadTests.java index d06c4a7957..71055dfbc5 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/MultipleSpreadTests.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/MultipleSpreadTests.java @@ -5,14 +5,14 @@ import com.azure.core.util.BinaryData; import com.type.property.additionalproperties.models.MultipleSpreadRecord; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.LinkedHashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class MultipleSpreadTests { - private final MultipleSpreadClient multipleSpreadClient = new AdditionalPropertiesClientBuilder().buildMultipleSpreadClient(); + private final MultipleSpreadClient multipleSpreadClient + = new AdditionalPropertiesClientBuilder().buildMultipleSpreadClient(); @Test public void testMultipleSpread() { diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/SpreadTests.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/SpreadTests.java index 01047cb34c..c58bb4b9cc 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/SpreadTests.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/SpreadTests.java @@ -21,30 +21,41 @@ import com.type.property.additionalproperties.models.WidgetData0; import com.type.property.additionalproperties.models.WidgetData1; import com.type.property.additionalproperties.models.WidgetData2; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -import java.util.Arrays; import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class SpreadTests { - private final SpreadStringClient spreadStringClient = new AdditionalPropertiesClientBuilder().buildSpreadStringClient(); - private final SpreadFloatClient spreadFloatClient = new AdditionalPropertiesClientBuilder().buildSpreadFloatClient(); - private final SpreadModelClient spreadModelClient = new AdditionalPropertiesClientBuilder().buildSpreadModelClient(); - private final SpreadModelArrayClient spreadModelArrayClient = new AdditionalPropertiesClientBuilder().buildSpreadModelArrayClient(); - private final SpreadDifferentStringClient spreadDifferentStringClient = new AdditionalPropertiesClientBuilder().buildSpreadDifferentStringClient(); - private final SpreadDifferentFloatClient spreadDifferentFloatClient = new AdditionalPropertiesClientBuilder().buildSpreadDifferentFloatClient(); - private final SpreadDifferentModelClient spreadDifferentModelClient = new AdditionalPropertiesClientBuilder().buildSpreadDifferentModelClient(); - private final SpreadDifferentModelArrayClient spreadDifferentModelArrayClient = new AdditionalPropertiesClientBuilder().buildSpreadDifferentModelArrayClient(); - private final SpreadRecordUnionClient spreadRecordUnionClient = new AdditionalPropertiesClientBuilder().buildSpreadRecordUnionClient(); - private final SpreadRecordDiscriminatedUnionClient spreadRecordDiscriminatedUnionClient = new AdditionalPropertiesClientBuilder().buildSpreadRecordDiscriminatedUnionClient(); - private final SpreadRecordNonDiscriminatedUnionClient spreadRecordNonDiscriminatedUnionClient = new AdditionalPropertiesClientBuilder().buildSpreadRecordNonDiscriminatedUnionClient(); - private final SpreadRecordNonDiscriminatedUnion2Client spreadRecordNonDiscriminatedUnion2Client = new AdditionalPropertiesClientBuilder().buildSpreadRecordNonDiscriminatedUnion2Client(); - private final SpreadRecordNonDiscriminatedUnion3Client spreadRecordNonDiscriminatedUnion3Client = new AdditionalPropertiesClientBuilder().buildSpreadRecordNonDiscriminatedUnion3Client(); + private final SpreadStringClient spreadStringClient + = new AdditionalPropertiesClientBuilder().buildSpreadStringClient(); + private final SpreadFloatClient spreadFloatClient + = new AdditionalPropertiesClientBuilder().buildSpreadFloatClient(); + private final SpreadModelClient spreadModelClient + = new AdditionalPropertiesClientBuilder().buildSpreadModelClient(); + private final SpreadModelArrayClient spreadModelArrayClient + = new AdditionalPropertiesClientBuilder().buildSpreadModelArrayClient(); + private final SpreadDifferentStringClient spreadDifferentStringClient + = new AdditionalPropertiesClientBuilder().buildSpreadDifferentStringClient(); + private final SpreadDifferentFloatClient spreadDifferentFloatClient + = new AdditionalPropertiesClientBuilder().buildSpreadDifferentFloatClient(); + private final SpreadDifferentModelClient spreadDifferentModelClient + = new AdditionalPropertiesClientBuilder().buildSpreadDifferentModelClient(); + private final SpreadDifferentModelArrayClient spreadDifferentModelArrayClient + = new AdditionalPropertiesClientBuilder().buildSpreadDifferentModelArrayClient(); + private final SpreadRecordUnionClient spreadRecordUnionClient + = new AdditionalPropertiesClientBuilder().buildSpreadRecordUnionClient(); + private final SpreadRecordDiscriminatedUnionClient spreadRecordDiscriminatedUnionClient + = new AdditionalPropertiesClientBuilder().buildSpreadRecordDiscriminatedUnionClient(); + private final SpreadRecordNonDiscriminatedUnionClient spreadRecordNonDiscriminatedUnionClient + = new AdditionalPropertiesClientBuilder().buildSpreadRecordNonDiscriminatedUnionClient(); + private final SpreadRecordNonDiscriminatedUnion2Client spreadRecordNonDiscriminatedUnion2Client + = new AdditionalPropertiesClientBuilder().buildSpreadRecordNonDiscriminatedUnion2Client(); + private final SpreadRecordNonDiscriminatedUnion3Client spreadRecordNonDiscriminatedUnion3Client + = new AdditionalPropertiesClientBuilder().buildSpreadRecordNonDiscriminatedUnion3Client(); @Test public void testSpreadString() { @@ -99,19 +110,20 @@ public void testSpreadModel() { public void testSpreadModelArray() { Map> propertyMap = new LinkedHashMap<>(); propertyMap.put("prop", Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); - SpreadModelArrayRecord body = new SpreadModelArrayRecord(Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); + SpreadModelArrayRecord body + = new SpreadModelArrayRecord(Arrays.asList(new ModelForRecord("ok"), new ModelForRecord("ok"))); body.setAdditionalProperties(propertyMap); spreadModelArrayClient.put(body); SpreadModelArrayRecord record = spreadModelArrayClient.get(); Assertions.assertNotNull(record); Assertions.assertNotNull(record.getKnownProp()); - record.getKnownProp().forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + record.getKnownProp().forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop")); - record.getAdditionalProperties().get("prop").forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + record.getAdditionalProperties() + .get("prop") + .forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); } @Test @@ -173,8 +185,9 @@ public void testSpreadDifferentModelArray() { Assertions.assertEquals("abc", record.getKnownProp()); Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop")); - record.getAdditionalProperties().get("prop").forEach(modelForRecord -> - Assertions.assertEquals("ok", modelForRecord.getState())); + record.getAdditionalProperties() + .get("prop") + .forEach(modelForRecord -> Assertions.assertEquals("ok", modelForRecord.getState())); } @Test @@ -200,7 +213,7 @@ public void testSpreadRecordUnion() { public void testSpreadRecordDiscriminatedUnion() { BinaryData binaryDataProp1 = BinaryData.fromObject(new WidgetData0("abc")); BinaryData binaryDataProp2 = BinaryData.fromObject(new WidgetData1(OffsetDateTime.parse("2021-01-01T00:00:00Z")) - .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); + .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop1", binaryDataProp1); propertyMap.put("prop2", binaryDataProp2); @@ -214,17 +227,17 @@ public void testSpreadRecordDiscriminatedUnion() { Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop1")); Assertions.assertEquals(binaryDataProp1.toObject(Map.class), - record.getAdditionalProperties().get("prop1").toObject(Map.class)); + record.getAdditionalProperties().get("prop1").toObject(Map.class)); Assertions.assertNotNull(record.getAdditionalProperties().get("prop2")); Assertions.assertEquals(binaryDataProp2.toObject(Map.class), - record.getAdditionalProperties().get("prop2").toObject(Map.class)); + record.getAdditionalProperties().get("prop2").toObject(Map.class)); } @Test public void testSpreadRecordNonDiscriminatedUnion() { BinaryData binaryDataProp1 = BinaryData.fromObject(new WidgetData0("abc")); BinaryData binaryDataProp2 = BinaryData.fromObject(new WidgetData1(OffsetDateTime.parse("2021-01-01T00:00:00Z")) - .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); + .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop1", binaryDataProp1); propertyMap.put("prop2", binaryDataProp2); @@ -238,17 +251,17 @@ public void testSpreadRecordNonDiscriminatedUnion() { Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop1")); Assertions.assertEquals(binaryDataProp1.toObject(Map.class), - record.getAdditionalProperties().get("prop1").toObject(Map.class)); + record.getAdditionalProperties().get("prop1").toObject(Map.class)); Assertions.assertNotNull(record.getAdditionalProperties().get("prop2")); Assertions.assertEquals(binaryDataProp2.toObject(Map.class), - record.getAdditionalProperties().get("prop2").toObject(Map.class)); + record.getAdditionalProperties().get("prop2").toObject(Map.class)); } @Test public void testSpreadRecordNonDiscriminatedUnion2() { BinaryData binaryDataProp1 = BinaryData.fromObject(new WidgetData2("2021-01-01T00:00:00Z")); BinaryData binaryDataProp2 = BinaryData.fromObject(new WidgetData1(OffsetDateTime.parse("2021-01-01T00:00:00Z")) - .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); + .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop1", binaryDataProp1); propertyMap.put("prop2", binaryDataProp2); @@ -262,20 +275,18 @@ public void testSpreadRecordNonDiscriminatedUnion2() { Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop1")); Assertions.assertEquals(binaryDataProp1.toObject(Map.class), - record.getAdditionalProperties().get("prop1").toObject(Map.class)); + record.getAdditionalProperties().get("prop1").toObject(Map.class)); Assertions.assertNotNull(record.getAdditionalProperties().get("prop2")); Assertions.assertEquals(binaryDataProp2.toObject(Map.class), - record.getAdditionalProperties().get("prop2").toObject(Map.class)); + record.getAdditionalProperties().get("prop2").toObject(Map.class)); } @Test public void testSpreadRecordNonDiscriminatedUnion3() { - BinaryData binaryDataProp1 = BinaryData.fromObject(Arrays.asList( - new WidgetData2("2021-01-01T00:00:00Z"), - new WidgetData2("2021-01-01T00:00:00Z"))); - BinaryData binaryDataProp2 = BinaryData.fromObject( - new WidgetData1(OffsetDateTime.parse("2021-01-01T00:00:00Z")) - .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); + BinaryData binaryDataProp1 = BinaryData.fromObject( + Arrays.asList(new WidgetData2("2021-01-01T00:00:00Z"), new WidgetData2("2021-01-01T00:00:00Z"))); + BinaryData binaryDataProp2 = BinaryData.fromObject(new WidgetData1(OffsetDateTime.parse("2021-01-01T00:00:00Z")) + .setEnd(OffsetDateTime.parse("2021-01-02T00:00:00Z"))); Map propertyMap = new LinkedHashMap<>(); propertyMap.put("prop1", binaryDataProp1); propertyMap.put("prop2", binaryDataProp2); @@ -289,9 +300,9 @@ public void testSpreadRecordNonDiscriminatedUnion3() { Assertions.assertNotNull(record.getAdditionalProperties()); Assertions.assertNotNull(record.getAdditionalProperties().get("prop1")); Assertions.assertIterableEquals(binaryDataProp1.toObject(List.class), - record.getAdditionalProperties().get("prop1").toObject(List.class)); + record.getAdditionalProperties().get("prop1").toObject(List.class)); Assertions.assertNotNull(record.getAdditionalProperties().get("prop2")); Assertions.assertEquals(binaryDataProp2.toObject(Map.class), - record.getAdditionalProperties().get("prop2").toObject(Map.class)); + record.getAdditionalProperties().get("prop2").toObject(Map.class)); } } diff --git a/typespec-tests/src/test/java/com/type/property/additionalproperties/generated/AdditionalPropertiesClientTestBase.java b/typespec-tests/src/test/java/com/type/property/additionalproperties/generated/AdditionalPropertiesClientTestBase.java index 2b3a3758dc..69939b9ac0 100644 --- a/typespec-tests/src/test/java/com/type/property/additionalproperties/generated/AdditionalPropertiesClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/property/additionalproperties/generated/AdditionalPropertiesClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -117,22 +116,18 @@ class AdditionalPropertiesClientTestBase extends TestProxyTestBase { protected void beforeTest() { AdditionalPropertiesClientBuilder extendsUnknownClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsUnknownClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsUnknownClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsUnknownClient = extendsUnknownClientbuilder.buildExtendsUnknownClient(); AdditionalPropertiesClientBuilder extendsUnknownDerivedClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsUnknownDerivedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsUnknownDerivedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsUnknownDerivedClient = extendsUnknownDerivedClientbuilder.buildExtendsUnknownDerivedClient(); @@ -140,11 +135,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder extendsUnknownDiscriminatedClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsUnknownDiscriminatedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsUnknownDiscriminatedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsUnknownDiscriminatedClient @@ -152,198 +145,162 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder isUnknownClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isUnknownClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isUnknownClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isUnknownClient = isUnknownClientbuilder.buildIsUnknownClient(); AdditionalPropertiesClientBuilder isUnknownDerivedClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isUnknownDerivedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isUnknownDerivedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isUnknownDerivedClient = isUnknownDerivedClientbuilder.buildIsUnknownDerivedClient(); AdditionalPropertiesClientBuilder isUnknownDiscriminatedClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isUnknownDiscriminatedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isUnknownDiscriminatedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isUnknownDiscriminatedClient = isUnknownDiscriminatedClientbuilder.buildIsUnknownDiscriminatedClient(); AdditionalPropertiesClientBuilder extendsStringClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsStringClient = extendsStringClientbuilder.buildExtendsStringClient(); AdditionalPropertiesClientBuilder isStringClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isStringClient = isStringClientbuilder.buildIsStringClient(); AdditionalPropertiesClientBuilder spreadStringClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadStringClient = spreadStringClientbuilder.buildSpreadStringClient(); AdditionalPropertiesClientBuilder extendsFloatClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsFloatClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsFloatClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsFloatClient = extendsFloatClientbuilder.buildExtendsFloatClient(); AdditionalPropertiesClientBuilder isFloatClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isFloatClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isFloatClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isFloatClient = isFloatClientbuilder.buildIsFloatClient(); AdditionalPropertiesClientBuilder spreadFloatClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadFloatClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadFloatClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadFloatClient = spreadFloatClientbuilder.buildSpreadFloatClient(); AdditionalPropertiesClientBuilder extendsModelClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsModelClient = extendsModelClientbuilder.buildExtendsModelClient(); AdditionalPropertiesClientBuilder isModelClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isModelClient = isModelClientbuilder.buildIsModelClient(); AdditionalPropertiesClientBuilder spreadModelClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadModelClient = spreadModelClientbuilder.buildSpreadModelClient(); AdditionalPropertiesClientBuilder extendsModelArrayClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsModelArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsModelArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsModelArrayClient = extendsModelArrayClientbuilder.buildExtendsModelArrayClient(); AdditionalPropertiesClientBuilder isModelArrayClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - isModelArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { isModelArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } isModelArrayClient = isModelArrayClientbuilder.buildIsModelArrayClient(); AdditionalPropertiesClientBuilder spreadModelArrayClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadModelArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadModelArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadModelArrayClient = spreadModelArrayClientbuilder.buildSpreadModelArrayClient(); AdditionalPropertiesClientBuilder spreadDifferentStringClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadDifferentStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadDifferentStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadDifferentStringClient = spreadDifferentStringClientbuilder.buildSpreadDifferentStringClient(); AdditionalPropertiesClientBuilder spreadDifferentFloatClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadDifferentFloatClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadDifferentFloatClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadDifferentFloatClient = spreadDifferentFloatClientbuilder.buildSpreadDifferentFloatClient(); AdditionalPropertiesClientBuilder spreadDifferentModelClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadDifferentModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadDifferentModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadDifferentModelClient = spreadDifferentModelClientbuilder.buildSpreadDifferentModelClient(); @@ -351,11 +308,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder spreadDifferentModelArrayClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadDifferentModelArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadDifferentModelArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadDifferentModelArrayClient = spreadDifferentModelArrayClientbuilder.buildSpreadDifferentModelArrayClient(); @@ -363,11 +318,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder extendsDifferentSpreadStringClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsDifferentSpreadStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsDifferentSpreadStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsDifferentSpreadStringClient @@ -376,11 +329,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder extendsDifferentSpreadFloatClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsDifferentSpreadFloatClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsDifferentSpreadFloatClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsDifferentSpreadFloatClient @@ -389,11 +340,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder extendsDifferentSpreadModelClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsDifferentSpreadModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsDifferentSpreadModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsDifferentSpreadModelClient @@ -402,11 +351,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder extendsDifferentSpreadModelArrayClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extendsDifferentSpreadModelArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extendsDifferentSpreadModelArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extendsDifferentSpreadModelArrayClient @@ -414,22 +361,18 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder multipleSpreadClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - multipleSpreadClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { multipleSpreadClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } multipleSpreadClient = multipleSpreadClientbuilder.buildMultipleSpreadClient(); AdditionalPropertiesClientBuilder spreadRecordUnionClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadRecordUnionClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadRecordUnionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadRecordUnionClient = spreadRecordUnionClientbuilder.buildSpreadRecordUnionClient(); @@ -437,11 +380,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder spreadRecordDiscriminatedUnionClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadRecordDiscriminatedUnionClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadRecordDiscriminatedUnionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadRecordDiscriminatedUnionClient @@ -450,11 +391,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder spreadRecordNonDiscriminatedUnionClientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadRecordNonDiscriminatedUnionClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadRecordNonDiscriminatedUnionClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadRecordNonDiscriminatedUnionClient @@ -463,11 +402,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder spreadRecordNonDiscriminatedUnion2Clientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadRecordNonDiscriminatedUnion2Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadRecordNonDiscriminatedUnion2Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadRecordNonDiscriminatedUnion2Client @@ -476,11 +413,9 @@ protected void beforeTest() { AdditionalPropertiesClientBuilder spreadRecordNonDiscriminatedUnion3Clientbuilder = new AdditionalPropertiesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - spreadRecordNonDiscriminatedUnion3Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { spreadRecordNonDiscriminatedUnion3Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } spreadRecordNonDiscriminatedUnion3Client diff --git a/typespec-tests/src/test/java/com/type/property/nullable/BytesClientTest.java b/typespec-tests/src/test/java/com/type/property/nullable/BytesClientTest.java index edd44e1d24..90451afd9a 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/BytesClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/BytesClientTest.java @@ -7,15 +7,13 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.io.IOException; - class BytesClientTest { BytesClient client = new NullableClientBuilder().buildBytesClient(); @Test void patchNonNullWithResponse() { - byte[] input = new byte[]{104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33}; + byte[] input = new byte[] { 104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 }; BytesProperty bytesProperty = new BytesProperty().setRequiredProperty("foo").setNullableProperty(input); client.patchNonNull(bytesProperty); } @@ -36,4 +34,4 @@ void getNull() { BytesProperty response = client.getNull(); Assertions.assertNull(response.getNullableProperty()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/nullable/CollectionsByteClientTest.java b/typespec-tests/src/test/java/com/type/property/nullable/CollectionsByteClientTest.java index 73c4a759ac..5e59cd5086 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/CollectionsByteClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/CollectionsByteClientTest.java @@ -3,23 +3,26 @@ package com.type.property.nullable; -import com.type.property.nullable.models.CollectionsByteProperty; -import org.junit.jupiter.api.Test; - -import java.util.Arrays; - import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import com.type.property.nullable.models.CollectionsByteProperty; +import java.util.Arrays; +import org.junit.jupiter.api.Test; + class CollectionsByteClientTest { CollectionsByteClient client = new NullableClientBuilder().buildCollectionsByteClient(); @Test void patchNonNullWithResponse() { - CollectionsByteProperty collectionsByteProperty = new CollectionsByteProperty().setRequiredProperty("foo").setNullableProperty(Arrays.asList(new byte[]{104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33}, new byte[]{104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33})); + CollectionsByteProperty collectionsByteProperty = new CollectionsByteProperty().setRequiredProperty("foo") + .setNullableProperty( + Arrays.asList(new byte[] { 104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 }, + new byte[] { 104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 })); client.patchNonNull(collectionsByteProperty); } + @Test void patchNullWithResponse() { client.patchNull(new CollectionsByteProperty().setRequiredProperty("foo").setNullableProperty(null)); @@ -27,13 +30,13 @@ void patchNullWithResponse() { @Test void getNonNull() { - CollectionsByteProperty response= client.getNonNull(); + CollectionsByteProperty response = client.getNonNull(); assertNotNull(response.getNullableProperty()); } @Test void getNull() { - CollectionsByteProperty response= client.getNull(); + CollectionsByteProperty response = client.getNull(); assertNull(response.getNullableProperty()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/nullable/CollectionsModelClientTest.java b/typespec-tests/src/test/java/com/type/property/nullable/CollectionsModelClientTest.java index f04c5e19e2..eebfb7662e 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/CollectionsModelClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/CollectionsModelClientTest.java @@ -3,14 +3,13 @@ package com.type.property.nullable; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; + import com.type.property.nullable.models.CollectionsModelProperty; import com.type.property.nullable.models.InnerModel; -import org.junit.jupiter.api.Test; - import java.util.Arrays; - -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertNull; +import org.junit.jupiter.api.Test; class CollectionsModelClientTest { @@ -18,7 +17,9 @@ class CollectionsModelClientTest { @Test void patchNonNullWithResponse() { - CollectionsModelProperty property = new CollectionsModelProperty().setRequiredProperty("foo").setNullableProperty(Arrays.asList(new InnerModel().setProperty("hello"), new InnerModel().setProperty("world"))); + CollectionsModelProperty property = new CollectionsModelProperty().setRequiredProperty("foo") + .setNullableProperty( + Arrays.asList(new InnerModel().setProperty("hello"), new InnerModel().setProperty("world"))); client.patchNonNull(property); } @@ -38,4 +39,4 @@ void getNull() { CollectionsModelProperty response = client.getNull(); assertNull(response.getNullableProperty()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/nullable/CollectionsStringClientTest.java b/typespec-tests/src/test/java/com/type/property/nullable/CollectionsStringClientTest.java index b06d620b53..d087333791 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/CollectionsStringClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/CollectionsStringClientTest.java @@ -3,15 +3,14 @@ package com.type.property.nullable; -import com.type.property.nullable.models.CollectionsStringProperty; -import org.junit.jupiter.api.Test; - -import java.util.Arrays; - import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertIterableEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertIterableEquals; + +import com.type.property.nullable.models.CollectionsStringProperty; +import java.util.Arrays; +import org.junit.jupiter.api.Test; public class CollectionsStringClientTest { @@ -19,7 +18,8 @@ public class CollectionsStringClientTest { @Test public void patchNonNull() { - CollectionsStringProperty property = new CollectionsStringProperty().setRequiredProperty("foo").setNullableProperty(Arrays.asList("hello","world")); + CollectionsStringProperty property = new CollectionsStringProperty().setRequiredProperty("foo") + .setNullableProperty(Arrays.asList("hello", "world")); client.patchNonNull(property); } @@ -44,4 +44,4 @@ public void getNull() { assertEquals("foo", response.getRequiredProperty()); assertNull(response.getNullableProperty()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/nullable/DatetimeOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/nullable/DatetimeOperationClientTest.java index 8495b91722..85ed2e8c47 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/DatetimeOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/DatetimeOperationClientTest.java @@ -3,14 +3,13 @@ package com.type.property.nullable; -import com.type.property.nullable.models.DatetimeProperty; -import org.junit.jupiter.api.Test; - -import java.time.OffsetDateTime; - import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import com.type.property.nullable.models.DatetimeProperty; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; + class DatetimeOperationClientTest { DatetimeOperationClient client = new NullableClientBuilder().buildDatetimeOperationClient(); @@ -18,7 +17,8 @@ class DatetimeOperationClientTest { @Test void patchNonNullWithResponse() { OffsetDateTime offsetDateTime = OffsetDateTime.parse("2022-08-26T18:38:00Z"); - DatetimeProperty datetimeProperty = new DatetimeProperty().setRequiredProperty("foo").setNullableProperty(offsetDateTime); + DatetimeProperty datetimeProperty + = new DatetimeProperty().setRequiredProperty("foo").setNullableProperty(offsetDateTime); client.patchNonNull(datetimeProperty); } @@ -38,4 +38,4 @@ void getNull() { DatetimeProperty response = client.getNull(); assertNull(response.getNullableProperty()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/nullable/DurationOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/nullable/DurationOperationClientTest.java index 5d5308b29c..8b8d705e06 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/DurationOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/DurationOperationClientTest.java @@ -3,21 +3,21 @@ package com.type.property.nullable; -import com.type.property.nullable.models.DurationProperty; -import org.junit.jupiter.api.Test; - -import java.time.Duration; - import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import com.type.property.nullable.models.DurationProperty; +import java.time.Duration; +import org.junit.jupiter.api.Test; + class DurationOperationClientTest { DurationOperationClient client = new NullableClientBuilder().buildDurationOperationClient(); @Test void patchNonNullWithResponse() { - DurationProperty property = new DurationProperty().setRequiredProperty("foo").setNullableProperty(Duration.parse("PT2974H14M12.011S")); + DurationProperty property = new DurationProperty().setRequiredProperty("foo") + .setNullableProperty(Duration.parse("PT2974H14M12.011S")); client.patchNonNull(property); } @@ -38,4 +38,4 @@ void getNull() { assertNull(response.getNullableProperty()); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/nullable/StringClientTests.java b/typespec-tests/src/test/java/com/type/property/nullable/StringClientTests.java index 8dad158771..c7df14b983 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/StringClientTests.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/StringClientTests.java @@ -4,11 +4,10 @@ package com.type.property.nullable; import com.type.property.nullable.models.StringProperty; +import java.io.IOException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.io.IOException; - public class StringClientTests { private final StringOperationClient stringClient = new NullableClientBuilder().buildStringOperationClient(); diff --git a/typespec-tests/src/test/java/com/type/property/nullable/generated/NullableClientTestBase.java b/typespec-tests/src/test/java/com/type/property/nullable/generated/NullableClientTestBase.java index cc371f12ce..9feb48d381 100644 --- a/typespec-tests/src/test/java/com/type/property/nullable/generated/NullableClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/property/nullable/generated/NullableClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -42,77 +41,63 @@ class NullableClientTestBase extends TestProxyTestBase { protected void beforeTest() { NullableClientBuilder stringOperationClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringOperationClient = stringOperationClientbuilder.buildStringOperationClient(); NullableClientBuilder bytesClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - bytesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { bytesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } bytesClient = bytesClientbuilder.buildBytesClient(); NullableClientBuilder datetimeOperationClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - datetimeOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { datetimeOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } datetimeOperationClient = datetimeOperationClientbuilder.buildDatetimeOperationClient(); NullableClientBuilder durationOperationClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - durationOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { durationOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } durationOperationClient = durationOperationClientbuilder.buildDurationOperationClient(); NullableClientBuilder collectionsByteClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsByteClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsByteClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsByteClient = collectionsByteClientbuilder.buildCollectionsByteClient(); NullableClientBuilder collectionsModelClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsModelClient = collectionsModelClientbuilder.buildCollectionsModelClient(); NullableClientBuilder collectionsStringClientbuilder = new NullableClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsStringClient = collectionsStringClientbuilder.buildCollectionsStringClient(); diff --git a/typespec-tests/src/test/java/com/type/property/optional/BytesClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/BytesClientTest.java index f4178bbf05..5ed75e9c4d 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/BytesClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/BytesClientTest.java @@ -20,11 +20,10 @@ void getAll() { @Test void putAll() { BytesProperty bytesProperty = new BytesProperty(); - bytesProperty.setProperty(new byte[]{104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33}); + bytesProperty.setProperty(new byte[] { 104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 }); bytesClient.putAll(bytesProperty); } - @Test void getDefault() { BytesProperty bytesProperty = bytesClient.getDefault(); @@ -36,4 +35,4 @@ void putDefault() { BytesProperty bytesProperty = new BytesProperty(); bytesClient.putDefault(bytesProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/CollectionsByteClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/CollectionsByteClientTest.java index 933d4b7219..034c317a4a 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/CollectionsByteClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/CollectionsByteClientTest.java @@ -4,11 +4,10 @@ package com.type.property.optional; import com.type.property.optional.models.CollectionsByteProperty; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.util.Arrays; - class CollectionsByteClientTest { CollectionsByteClient client = new OptionalClientBuilder().buildCollectionsByteClient(); @@ -30,7 +29,7 @@ void getDefault() { @Test void putAll() { CollectionsByteProperty collectionsByteProperty = new CollectionsByteProperty(); - byte[] byteProperty = new byte[]{104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33}; + byte[] byteProperty = new byte[] { 104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 }; collectionsByteProperty.setProperty(Arrays.asList(byteProperty, byteProperty)); client.putAll(collectionsByteProperty); } @@ -40,4 +39,4 @@ void putDefault() { CollectionsByteProperty collectionsByteProperty = new CollectionsByteProperty(); client.putDefault(collectionsByteProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/CollectionsModelClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/CollectionsModelClientTest.java index 1f700b7261..70a4f56e93 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/CollectionsModelClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/CollectionsModelClientTest.java @@ -5,11 +5,10 @@ import com.type.property.optional.models.CollectionsModelProperty; import com.type.property.optional.models.StringProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class CollectionsModelClientTest { @@ -45,4 +44,4 @@ void putDefault() { CollectionsModelProperty collectionsModelProperty = new CollectionsModelProperty(); client.putDefault(collectionsModelProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/DatetimeOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/DatetimeOperationClientTest.java index 244762163e..75a6217439 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/DatetimeOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/DatetimeOperationClientTest.java @@ -4,11 +4,10 @@ package com.type.property.optional; import com.type.property.optional.models.DatetimeProperty; +import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.time.OffsetDateTime; - class DatetimeOperationClientTest { DatetimeOperationClient client = new OptionalClientBuilder().buildDatetimeOperationClient(); @@ -38,4 +37,4 @@ void putDefault() { DatetimeProperty datetimeProperty = new DatetimeProperty(); client.putDefault(datetimeProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/DurationOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/DurationOperationClientTest.java index ac89b47606..1bbf5e336a 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/DurationOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/DurationOperationClientTest.java @@ -3,13 +3,11 @@ package com.type.property.optional; - import com.type.property.optional.models.DurationProperty; +import java.time.Duration; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.time.Duration; - class DurationOperationClientTest { DurationOperationClient client = new OptionalClientBuilder().buildDurationOperationClient(); @@ -39,4 +37,4 @@ void putDefault() { DurationProperty property = new DurationProperty(); client.putDefault(property); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/PlainDateClientTests.java b/typespec-tests/src/test/java/com/type/property/optional/PlainDateClientTests.java index 22b01adbfa..d5ba92537e 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/PlainDateClientTests.java +++ b/typespec-tests/src/test/java/com/type/property/optional/PlainDateClientTests.java @@ -4,11 +4,10 @@ package com.type.property.optional; import com.type.property.optional.models.PlainDateProperty; +import java.time.LocalDate; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.time.LocalDate; - public class PlainDateClientTests { private final PlainDateClient client = new OptionalClientBuilder().buildPlainDateClient(); diff --git a/typespec-tests/src/test/java/com/type/property/optional/RequiredAndOptionalClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/RequiredAndOptionalClientTest.java index 93c67d7fc5..44fc170318 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/RequiredAndOptionalClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/RequiredAndOptionalClientTest.java @@ -36,4 +36,4 @@ void putRequiredOnly() { RequiredAndOptionalProperty requiredAndOptionalProperty = new RequiredAndOptionalProperty(42); client.putRequiredOnly(requiredAndOptionalProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/StringOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/optional/StringOperationClientTest.java index cc8a348b44..796e726779 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/StringOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/optional/StringOperationClientTest.java @@ -35,4 +35,4 @@ void putDefault() { StringProperty stringProperty = new StringProperty(); client.putDefault(stringProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/optional/UnionFloatLiteralClientTests.java b/typespec-tests/src/test/java/com/type/property/optional/UnionFloatLiteralClientTests.java index 6443516c6c..a53538170d 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/UnionFloatLiteralClientTests.java +++ b/typespec-tests/src/test/java/com/type/property/optional/UnionFloatLiteralClientTests.java @@ -14,7 +14,8 @@ public class UnionFloatLiteralClientTests { @Test public void getAll() { UnionFloatLiteralProperty unionFloatLiteralProperty = client.getAll(); - Assertions.assertEquals(UnionFloatLiteralPropertyProperty.TWO_THREE_SEVEN_FIVE, unionFloatLiteralProperty.getProperty()); + Assertions.assertEquals(UnionFloatLiteralPropertyProperty.TWO_THREE_SEVEN_FIVE, + unionFloatLiteralProperty.getProperty()); } @Test diff --git a/typespec-tests/src/test/java/com/type/property/optional/generated/OptionalClientTestBase.java b/typespec-tests/src/test/java/com/type/property/optional/generated/OptionalClientTestBase.java index f376090519..725b9fac90 100644 --- a/typespec-tests/src/test/java/com/type/property/optional/generated/OptionalClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/property/optional/generated/OptionalClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -69,176 +68,144 @@ class OptionalClientTestBase extends TestProxyTestBase { protected void beforeTest() { OptionalClientBuilder stringOperationClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringOperationClient = stringOperationClientbuilder.buildStringOperationClient(); OptionalClientBuilder bytesClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - bytesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { bytesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } bytesClient = bytesClientbuilder.buildBytesClient(); OptionalClientBuilder datetimeOperationClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - datetimeOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { datetimeOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } datetimeOperationClient = datetimeOperationClientbuilder.buildDatetimeOperationClient(); OptionalClientBuilder durationOperationClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - durationOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { durationOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } durationOperationClient = durationOperationClientbuilder.buildDurationOperationClient(); OptionalClientBuilder plainDateClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - plainDateClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { plainDateClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } plainDateClient = plainDateClientbuilder.buildPlainDateClient(); OptionalClientBuilder plainTimeClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - plainTimeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { plainTimeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } plainTimeClient = plainTimeClientbuilder.buildPlainTimeClient(); OptionalClientBuilder collectionsByteClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsByteClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsByteClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsByteClient = collectionsByteClientbuilder.buildCollectionsByteClient(); OptionalClientBuilder collectionsModelClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsModelClient = collectionsModelClientbuilder.buildCollectionsModelClient(); OptionalClientBuilder stringLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringLiteralClient = stringLiteralClientbuilder.buildStringLiteralClient(); OptionalClientBuilder intLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - intLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { intLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } intLiteralClient = intLiteralClientbuilder.buildIntLiteralClient(); OptionalClientBuilder floatLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - floatLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { floatLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } floatLiteralClient = floatLiteralClientbuilder.buildFloatLiteralClient(); OptionalClientBuilder booleanLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - booleanLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { booleanLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } booleanLiteralClient = booleanLiteralClientbuilder.buildBooleanLiteralClient(); OptionalClientBuilder unionStringLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionStringLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionStringLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionStringLiteralClient = unionStringLiteralClientbuilder.buildUnionStringLiteralClient(); OptionalClientBuilder unionIntLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionIntLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionIntLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionIntLiteralClient = unionIntLiteralClientbuilder.buildUnionIntLiteralClient(); OptionalClientBuilder unionFloatLiteralClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionFloatLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionFloatLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionFloatLiteralClient = unionFloatLiteralClientbuilder.buildUnionFloatLiteralClient(); OptionalClientBuilder requiredAndOptionalClientbuilder = new OptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - requiredAndOptionalClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { requiredAndOptionalClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } requiredAndOptionalClient = requiredAndOptionalClientbuilder.buildRequiredAndOptionalClient(); diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/BooleanOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/BooleanOperationClientTest.java index e9be355e2e..bcfc3b13c9 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/BooleanOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/BooleanOperationClientTest.java @@ -22,4 +22,4 @@ void put() { BooleanProperty booleanProperty = new BooleanProperty(true); client.put(booleanProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/BytesClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/BytesClientTest.java index b4cd250035..6cb2ca7644 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/BytesClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/BytesClientTest.java @@ -19,8 +19,8 @@ void get() { @Test void put() { - byte[] input = new byte[]{104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33}; + byte[] input = new byte[] { 104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 }; BytesProperty bytesProperty = new BytesProperty(input); client.put(bytesProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsIntClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsIntClientTest.java index 2f9877e951..acb795ddc0 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsIntClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsIntClientTest.java @@ -4,11 +4,10 @@ package com.type.property.valuetypes; import com.type.property.valuetypes.models.CollectionsIntProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class CollectionsIntClientTest { @@ -27,4 +26,4 @@ void put() { CollectionsIntProperty collectionsIntProperty = new CollectionsIntProperty(Arrays.asList(1, 2)); client.put(collectionsIntProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsModelClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsModelClientTest.java index c2c0f0dfdf..76c60d0493 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsModelClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsModelClientTest.java @@ -5,11 +5,10 @@ import com.type.property.valuetypes.models.CollectionsModelProperty; import com.type.property.valuetypes.models.InnerModel; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class CollectionsModelClientTest { @@ -31,4 +30,4 @@ void put() { CollectionsModelProperty collectionsModelProperty = new CollectionsModelProperty(properties); client.put(collectionsModelProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsStringClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsStringClientTest.java index 9fe26d4d72..7016f8766b 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsStringClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/CollectionsStringClientTest.java @@ -4,11 +4,10 @@ package com.type.property.valuetypes; import com.type.property.valuetypes.models.CollectionsStringProperty; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.util.Arrays; - class CollectionsStringClientTest { CollectionsStringClient client = new ValueTypesClientBuilder().buildCollectionsStringClient(); @@ -23,7 +22,8 @@ void get() { @Test void put() { - CollectionsStringProperty collectionsStringProperty = new CollectionsStringProperty(Arrays.asList("hello", "world")); + CollectionsStringProperty collectionsStringProperty + = new CollectionsStringProperty(Arrays.asList("hello", "world")); client.put(collectionsStringProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/DatetimeOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/DatetimeOperationClientTest.java index b230d18b2f..4621fcec73 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/DatetimeOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/DatetimeOperationClientTest.java @@ -4,11 +4,10 @@ package com.type.property.valuetypes; import com.type.property.valuetypes.models.DatetimeProperty; +import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.time.OffsetDateTime; - class DatetimeOperationClientTest { DatetimeOperationClient client = new ValueTypesClientBuilder().buildDatetimeOperationClient(); @@ -25,4 +24,4 @@ void put() { DatetimeProperty datetimeProperty = new DatetimeProperty(offsetDateTime); client.put(datetimeProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/DictionaryStringClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/DictionaryStringClientTest.java index 9ce268fe79..9ceec2f016 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/DictionaryStringClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/DictionaryStringClientTest.java @@ -4,11 +4,10 @@ package com.type.property.valuetypes; import com.type.property.valuetypes.models.DictionaryStringProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.HashMap; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; class DictionaryStringClientTest { @@ -30,4 +29,4 @@ void put() { DictionaryStringProperty dictionaryStringProperty = new DictionaryStringProperty(property); client.put(dictionaryStringProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/DurationOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/DurationOperationClientTest.java index 8ef499fcf2..917457cd9d 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/DurationOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/DurationOperationClientTest.java @@ -4,11 +4,10 @@ package com.type.property.valuetypes; import com.type.property.valuetypes.models.DurationProperty; +import java.time.Duration; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.time.Duration; - class DurationOperationClientTest { DurationOperationClient client = new ValueTypesClientBuilder().buildDurationOperationClient(); @@ -25,4 +24,4 @@ void put() { DurationProperty property = new DurationProperty(duration); client.put(property); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/EnumValueTests.java b/typespec-tests/src/test/java/com/type/property/valuetypes/EnumValueTests.java index a004e2e485..0bf1a64350 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/EnumValueTests.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/EnumValueTests.java @@ -11,6 +11,6 @@ public class EnumValueTests { @Test public void test() { - client.put(client.get()); + client.put(client.get()); } } diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/ExtensibleEnumClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/ExtensibleEnumClientTest.java index fccb75ea48..584c84ab31 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/ExtensibleEnumClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/ExtensibleEnumClientTest.java @@ -21,7 +21,8 @@ void get() { @Test void put() { - ExtensibleEnumProperty extensibleEnumProperty = new ExtensibleEnumProperty(InnerEnum.fromString("UnknownValue")); + ExtensibleEnumProperty extensibleEnumProperty + = new ExtensibleEnumProperty(InnerEnum.fromString("UnknownValue")); client.put(extensibleEnumProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/FloatOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/FloatOperationClientTest.java index 47fc1735f7..4254244e48 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/FloatOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/FloatOperationClientTest.java @@ -22,4 +22,4 @@ void put() { FloatProperty floatProperty = new FloatProperty(43.125); client.put(floatProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/IntClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/IntClientTest.java index 98f42a20fb..7d197a0596 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/IntClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/IntClientTest.java @@ -22,4 +22,4 @@ void put() { IntProperty intProperty = new IntProperty(42); client.put(intProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/ModelClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/ModelClientTest.java index dfb23f2871..e9ee1cbd56 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/ModelClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/ModelClientTest.java @@ -24,4 +24,4 @@ void put() { ModelProperty modelProperty = new ModelProperty(innerModel); client.put(modelProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/StringOperationClientTest.java b/typespec-tests/src/test/java/com/type/property/valuetypes/StringOperationClientTest.java index 1d5ae8e1a0..23bfacc727 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/StringOperationClientTest.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/StringOperationClientTest.java @@ -22,4 +22,4 @@ void put() { StringProperty stringProperty = new StringProperty("hello"); client.put(stringProperty); } -} \ No newline at end of file +} diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/UnionTests.java b/typespec-tests/src/test/java/com/type/property/valuetypes/UnionTests.java index 5e254f3ea6..be74c30ac7 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/UnionTests.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/UnionTests.java @@ -3,19 +3,20 @@ package com.type.property.valuetypes; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import com.type.property.valuetypes.models.UnionFloatLiteralProperty; import com.type.property.valuetypes.models.UnionFloatLiteralPropertyProperty; import com.type.property.valuetypes.models.UnionIntLiteralProperty; import com.type.property.valuetypes.models.UnionIntLiteralPropertyProperty; import com.type.property.valuetypes.models.UnionStringLiteralProperty; import com.type.property.valuetypes.models.UnionStringLiteralPropertyProperty; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class UnionTests { - private final UnionStringLiteralClient unionStringClient = new ValueTypesClientBuilder().buildUnionStringLiteralClient(); - private final UnionFloatLiteralClient unionFloatClient = new ValueTypesClientBuilder().buildUnionFloatLiteralClient(); + private final UnionStringLiteralClient unionStringClient + = new ValueTypesClientBuilder().buildUnionStringLiteralClient(); + private final UnionFloatLiteralClient unionFloatClient + = new ValueTypesClientBuilder().buildUnionFloatLiteralClient(); private final UnionIntLiteralClient unionIntClient = new ValueTypesClientBuilder().buildUnionIntLiteralClient(); @Test @@ -29,11 +30,13 @@ public void testUnionStringLiteral() { @Test public void testUnionFloatLiteral() { - UnionFloatLiteralProperty body = new UnionFloatLiteralProperty(UnionFloatLiteralPropertyProperty.FOUR_SIX_EIGHT_SEVEN_FIVE); + UnionFloatLiteralProperty body + = new UnionFloatLiteralProperty(UnionFloatLiteralPropertyProperty.FOUR_SIX_EIGHT_SEVEN_FIVE); unionFloatClient.put(body); Assertions.assertNotNull(unionFloatClient.get()); - Assertions.assertEquals(UnionFloatLiteralPropertyProperty.FOUR_SIX_EIGHT_SEVEN_FIVE, unionFloatClient.get().getProperty()); + Assertions.assertEquals(UnionFloatLiteralPropertyProperty.FOUR_SIX_EIGHT_SEVEN_FIVE, + unionFloatClient.get().getProperty()); } @Test diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/UnknownTests.java b/typespec-tests/src/test/java/com/type/property/valuetypes/UnknownTests.java index 177becd1c8..259c4a2098 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/UnknownTests.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/UnknownTests.java @@ -7,13 +7,12 @@ import com.type.property.valuetypes.models.UnknownDictProperty; import com.type.property.valuetypes.models.UnknownIntProperty; import com.type.property.valuetypes.models.UnknownStringProperty; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class UnknownTests { diff --git a/typespec-tests/src/test/java/com/type/property/valuetypes/generated/ValueTypesClientTestBase.java b/typespec-tests/src/test/java/com/type/property/valuetypes/generated/ValueTypesClientTestBase.java index 6a9e20c137..c901c47ef5 100644 --- a/typespec-tests/src/test/java/com/type/property/valuetypes/generated/ValueTypesClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/property/valuetypes/generated/ValueTypesClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -108,319 +107,261 @@ class ValueTypesClientTestBase extends TestProxyTestBase { protected void beforeTest() { ValueTypesClientBuilder booleanOperationClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - booleanOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { booleanOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } booleanOperationClient = booleanOperationClientbuilder.buildBooleanOperationClient(); ValueTypesClientBuilder stringOperationClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringOperationClient = stringOperationClientbuilder.buildStringOperationClient(); ValueTypesClientBuilder bytesClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - bytesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { bytesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } bytesClient = bytesClientbuilder.buildBytesClient(); ValueTypesClientBuilder intClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - intClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { intClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } intClient = intClientbuilder.buildIntClient(); ValueTypesClientBuilder floatOperationClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - floatOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { floatOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } floatOperationClient = floatOperationClientbuilder.buildFloatOperationClient(); ValueTypesClientBuilder decimalClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - decimalClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { decimalClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } decimalClient = decimalClientbuilder.buildDecimalClient(); ValueTypesClientBuilder decimal128Clientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - decimal128Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { decimal128Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } decimal128Client = decimal128Clientbuilder.buildDecimal128Client(); ValueTypesClientBuilder datetimeOperationClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - datetimeOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { datetimeOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } datetimeOperationClient = datetimeOperationClientbuilder.buildDatetimeOperationClient(); ValueTypesClientBuilder durationOperationClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - durationOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { durationOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } durationOperationClient = durationOperationClientbuilder.buildDurationOperationClient(); ValueTypesClientBuilder enumClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - enumClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { enumClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } enumClient = enumClientbuilder.buildEnumClient(); ValueTypesClientBuilder extensibleEnumClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - extensibleEnumClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { extensibleEnumClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } extensibleEnumClient = extensibleEnumClientbuilder.buildExtensibleEnumClient(); ValueTypesClientBuilder modelClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelClient = modelClientbuilder.buildModelClient(); ValueTypesClientBuilder collectionsStringClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsStringClient = collectionsStringClientbuilder.buildCollectionsStringClient(); ValueTypesClientBuilder collectionsIntClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsIntClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsIntClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsIntClient = collectionsIntClientbuilder.buildCollectionsIntClient(); ValueTypesClientBuilder collectionsModelClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - collectionsModelClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { collectionsModelClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } collectionsModelClient = collectionsModelClientbuilder.buildCollectionsModelClient(); ValueTypesClientBuilder dictionaryStringClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - dictionaryStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { dictionaryStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } dictionaryStringClient = dictionaryStringClientbuilder.buildDictionaryStringClient(); ValueTypesClientBuilder neverClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - neverClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { neverClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } neverClient = neverClientbuilder.buildNeverClient(); ValueTypesClientBuilder unknownStringClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownStringClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownStringClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownStringClient = unknownStringClientbuilder.buildUnknownStringClient(); ValueTypesClientBuilder unknownIntClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownIntClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownIntClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownIntClient = unknownIntClientbuilder.buildUnknownIntClient(); ValueTypesClientBuilder unknownDictClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownDictClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownDictClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownDictClient = unknownDictClientbuilder.buildUnknownDictClient(); ValueTypesClientBuilder unknownArrayClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownArrayClient = unknownArrayClientbuilder.buildUnknownArrayClient(); ValueTypesClientBuilder stringLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringLiteralClient = stringLiteralClientbuilder.buildStringLiteralClient(); ValueTypesClientBuilder intLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - intLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { intLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } intLiteralClient = intLiteralClientbuilder.buildIntLiteralClient(); ValueTypesClientBuilder floatLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - floatLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { floatLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } floatLiteralClient = floatLiteralClientbuilder.buildFloatLiteralClient(); ValueTypesClientBuilder booleanLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - booleanLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { booleanLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } booleanLiteralClient = booleanLiteralClientbuilder.buildBooleanLiteralClient(); ValueTypesClientBuilder unionStringLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionStringLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionStringLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionStringLiteralClient = unionStringLiteralClientbuilder.buildUnionStringLiteralClient(); ValueTypesClientBuilder unionIntLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionIntLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionIntLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionIntLiteralClient = unionIntLiteralClientbuilder.buildUnionIntLiteralClient(); ValueTypesClientBuilder unionFloatLiteralClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionFloatLiteralClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionFloatLiteralClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionFloatLiteralClient = unionFloatLiteralClientbuilder.buildUnionFloatLiteralClient(); ValueTypesClientBuilder unionEnumValueClientbuilder = new ValueTypesClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unionEnumValueClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unionEnumValueClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unionEnumValueClient = unionEnumValueClientbuilder.buildUnionEnumValueClient(); diff --git a/typespec-tests/src/test/java/com/type/scalar/DecimalTests.java b/typespec-tests/src/test/java/com/type/scalar/DecimalTests.java index be1a484386..613c2339fa 100644 --- a/typespec-tests/src/test/java/com/type/scalar/DecimalTests.java +++ b/typespec-tests/src/test/java/com/type/scalar/DecimalTests.java @@ -7,12 +7,11 @@ import com.azure.core.util.BinaryData; import com.fasterxml.jackson.annotation.JsonProperty; import com.type.property.valuetypes.models.DecimalProperty; +import java.math.BigDecimal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import java.math.BigDecimal; - public class DecimalTests { @Immutable @@ -30,7 +29,7 @@ public BigDecimal getProperty() { } @ParameterizedTest - @ValueSource(classes = {DecimalProperty.class, DecimalJackson.class}) + @ValueSource(classes = { DecimalProperty.class, DecimalJackson.class }) public void testBigDecimal(Class clazz) { // precision larger than double BigDecimal value = new BigDecimal("12345678901234567890.1234567890"); diff --git a/typespec-tests/src/test/java/com/type/scalar/ScalarTests.java b/typespec-tests/src/test/java/com/type/scalar/ScalarTests.java index 9284db5e48..c9fc723947 100644 --- a/typespec-tests/src/test/java/com/type/scalar/ScalarTests.java +++ b/typespec-tests/src/test/java/com/type/scalar/ScalarTests.java @@ -3,11 +3,10 @@ package com.type.scalar; +import java.math.BigDecimal; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.math.BigDecimal; - public class ScalarTests { private final StringOperationClient stringClient = new ScalarClientBuilder().buildStringOperationClient(); diff --git a/typespec-tests/src/test/java/com/type/scalar/generated/ScalarClientTestBase.java b/typespec-tests/src/test/java/com/type/scalar/generated/ScalarClientTestBase.java index 63b9007c62..6763f75774 100644 --- a/typespec-tests/src/test/java/com/type/scalar/generated/ScalarClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/scalar/generated/ScalarClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -42,77 +41,63 @@ class ScalarClientTestBase extends TestProxyTestBase { protected void beforeTest() { ScalarClientBuilder stringOperationClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringOperationClient = stringOperationClientbuilder.buildStringOperationClient(); ScalarClientBuilder booleanOperationClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - booleanOperationClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { booleanOperationClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } booleanOperationClient = booleanOperationClientbuilder.buildBooleanOperationClient(); ScalarClientBuilder unknownClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - unknownClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { unknownClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } unknownClient = unknownClientbuilder.buildUnknownClient(); ScalarClientBuilder decimalTypeClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - decimalTypeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { decimalTypeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } decimalTypeClient = decimalTypeClientbuilder.buildDecimalTypeClient(); ScalarClientBuilder decimal128TypeClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - decimal128TypeClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { decimal128TypeClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } decimal128TypeClient = decimal128TypeClientbuilder.buildDecimal128TypeClient(); ScalarClientBuilder decimalVerifyClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - decimalVerifyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { decimalVerifyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } decimalVerifyClient = decimalVerifyClientbuilder.buildDecimalVerifyClient(); ScalarClientBuilder decimal128VerifyClientbuilder = new ScalarClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - decimal128VerifyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { decimal128VerifyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } decimal128VerifyClient = decimal128VerifyClientbuilder.buildDecimal128VerifyClient(); diff --git a/typespec-tests/src/test/java/com/type/union/UnionsClientTest.java b/typespec-tests/src/test/java/com/type/union/UnionsClientTest.java index ef38d04ee6..6346926d68 100644 --- a/typespec-tests/src/test/java/com/type/union/UnionsClientTest.java +++ b/typespec-tests/src/test/java/com/type/union/UnionsClientTest.java @@ -9,19 +9,18 @@ import com.type.union.models.EnumsOnlyCases; import com.type.union.models.EnumsOnlyCasesLr; import com.type.union.models.EnumsOnlyCasesUd; -import com.type.union.models.GetResponseProp2; -import com.type.union.models.MixedLiteralsCases; -import com.type.union.models.MixedTypesCases; import com.type.union.models.GetResponseProp1; +import com.type.union.models.GetResponseProp2; import com.type.union.models.GetResponseProp3; import com.type.union.models.GetResponseProp4; +import com.type.union.models.MixedLiteralsCases; +import com.type.union.models.MixedTypesCases; import com.type.union.models.StringAndArrayCases; import com.type.union.models.StringExtensibleNamedUnion; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - import java.util.Arrays; import java.util.List; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class UnionsClientTest { @@ -90,7 +89,9 @@ public void testEnumsOnlyClient() { public void testStringAndArrayClient() { StringAndArrayCases prop = client8.get().getProp(); Assertions.assertEquals("test", prop.getString().toObject(String.class)); - Assertions.assertEquals(Arrays.asList("test1", "test2"), prop.getArray().toObject(new TypeReference>() {})); + Assertions.assertEquals(Arrays.asList("test1", "test2"), + prop.getArray().toObject(new TypeReference>() { + })); client8.send(prop); } diff --git a/typespec-tests/src/test/java/com/type/union/generated/UnionClientTestBase.java b/typespec-tests/src/test/java/com/type/union/generated/UnionClientTestBase.java index 4c8e1671b5..711fab983b 100644 --- a/typespec-tests/src/test/java/com/type/union/generated/UnionClientTestBase.java +++ b/typespec-tests/src/test/java/com/type/union/generated/UnionClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -51,110 +50,90 @@ class UnionClientTestBase extends TestProxyTestBase { protected void beforeTest() { UnionClientBuilder stringsOnlyClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringsOnlyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringsOnlyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringsOnlyClient = stringsOnlyClientbuilder.buildStringsOnlyClient(); UnionClientBuilder stringExtensibleClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringExtensibleClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringExtensibleClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringExtensibleClient = stringExtensibleClientbuilder.buildStringExtensibleClient(); UnionClientBuilder stringExtensibleNamedClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringExtensibleNamedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringExtensibleNamedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringExtensibleNamedClient = stringExtensibleNamedClientbuilder.buildStringExtensibleNamedClient(); UnionClientBuilder intsOnlyClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - intsOnlyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { intsOnlyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } intsOnlyClient = intsOnlyClientbuilder.buildIntsOnlyClient(); UnionClientBuilder floatsOnlyClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - floatsOnlyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { floatsOnlyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } floatsOnlyClient = floatsOnlyClientbuilder.buildFloatsOnlyClient(); UnionClientBuilder modelsOnlyClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - modelsOnlyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { modelsOnlyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } modelsOnlyClient = modelsOnlyClientbuilder.buildModelsOnlyClient(); UnionClientBuilder enumsOnlyClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - enumsOnlyClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { enumsOnlyClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } enumsOnlyClient = enumsOnlyClientbuilder.buildEnumsOnlyClient(); UnionClientBuilder stringAndArrayClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - stringAndArrayClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { stringAndArrayClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } stringAndArrayClient = stringAndArrayClientbuilder.buildStringAndArrayClient(); UnionClientBuilder mixedLiteralsClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - mixedLiteralsClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { mixedLiteralsClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } mixedLiteralsClient = mixedLiteralsClientbuilder.buildMixedLiteralsClient(); UnionClientBuilder mixedTypesClientbuilder = new UnionClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "http://localhost:3000")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - mixedTypesClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { mixedTypesClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } mixedTypesClient = mixedTypesClientbuilder.buildMixedTypesClient(); diff --git a/typespec-tests/src/test/java/com/versioning/added/AddedClientTests.java b/typespec-tests/src/test/java/com/versioning/added/AddedClientTests.java index 6aa125a975..dc387c51bf 100644 --- a/typespec-tests/src/test/java/com/versioning/added/AddedClientTests.java +++ b/typespec-tests/src/test/java/com/versioning/added/AddedClientTests.java @@ -11,10 +11,10 @@ import org.junit.jupiter.api.Test; public class AddedClientTests { - private final AddedClient addedClient = new AddedClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildClient(); - private final InterfaceV2Client interfaceV2Client = new AddedClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildInterfaceV2Client(); + private final AddedClient addedClient + = new AddedClientBuilder().endpoint("http://localhost:3000").version("v2").buildClient(); + private final InterfaceV2Client interfaceV2Client + = new AddedClientBuilder().endpoint("http://localhost:3000").version("v2").buildInterfaceV2Client(); @Test public void testAddedClient() { diff --git a/typespec-tests/src/test/java/com/versioning/added/generated/AddedClientTestBase.java b/typespec-tests/src/test/java/com/versioning/added/generated/AddedClientTestBase.java index 3ebd31ed02..915d810634 100644 --- a/typespec-tests/src/test/java/com/versioning/added/generated/AddedClientTestBase.java +++ b/typespec-tests/src/test/java/com/versioning/added/generated/AddedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -28,11 +27,9 @@ protected void beforeTest() { AddedClientBuilder addedClientbuilder = new AddedClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - addedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { addedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } addedClient = addedClientbuilder.buildClient(); @@ -40,11 +37,9 @@ protected void beforeTest() { AddedClientBuilder interfaceV2Clientbuilder = new AddedClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - interfaceV2Clientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { interfaceV2Clientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } interfaceV2Client = interfaceV2Clientbuilder.buildInterfaceV2Client(); diff --git a/typespec-tests/src/test/java/com/versioning/madeoptional/MadeOptionalClienTests.java b/typespec-tests/src/test/java/com/versioning/madeoptional/MadeOptionalClienTests.java index dc819bcb1a..8286b709f8 100644 --- a/typespec-tests/src/test/java/com/versioning/madeoptional/MadeOptionalClienTests.java +++ b/typespec-tests/src/test/java/com/versioning/madeoptional/MadeOptionalClienTests.java @@ -7,8 +7,8 @@ import org.junit.jupiter.api.Test; public class MadeOptionalClienTests { - private final MadeOptionalClient madeOptionalClient = new MadeOptionalClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildClient(); + private final MadeOptionalClient madeOptionalClient + = new MadeOptionalClientBuilder().endpoint("http://localhost:3000").version("v2").buildClient(); @Test public void testMadeOptionalClient() { diff --git a/typespec-tests/src/test/java/com/versioning/madeoptional/generated/MadeOptionalClientTestBase.java b/typespec-tests/src/test/java/com/versioning/madeoptional/generated/MadeOptionalClientTestBase.java index e479cd025b..a135a1a6d7 100644 --- a/typespec-tests/src/test/java/com/versioning/madeoptional/generated/MadeOptionalClientTestBase.java +++ b/typespec-tests/src/test/java/com/versioning/madeoptional/generated/MadeOptionalClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -25,11 +24,9 @@ protected void beforeTest() { MadeOptionalClientBuilder madeOptionalClientbuilder = new MadeOptionalClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - madeOptionalClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { madeOptionalClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } madeOptionalClient = madeOptionalClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/versioning/removed/RemovedClientTests.java b/typespec-tests/src/test/java/com/versioning/removed/RemovedClientTests.java index ba1673f52d..fdacfab364 100644 --- a/typespec-tests/src/test/java/com/versioning/removed/RemovedClientTests.java +++ b/typespec-tests/src/test/java/com/versioning/removed/RemovedClientTests.java @@ -9,8 +9,8 @@ import org.junit.jupiter.api.Test; public class RemovedClientTests { - private final RemovedClient removedClient = new RemovedClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildClient(); + private final RemovedClient removedClient + = new RemovedClientBuilder().endpoint("http://localhost:3000").version("v2").buildClient(); @Test public void tesRemovedClient() { diff --git a/typespec-tests/src/test/java/com/versioning/removed/generated/RemovedClientTestBase.java b/typespec-tests/src/test/java/com/versioning/removed/generated/RemovedClientTestBase.java index efea19002e..8d7b0e8f33 100644 --- a/typespec-tests/src/test/java/com/versioning/removed/generated/RemovedClientTestBase.java +++ b/typespec-tests/src/test/java/com/versioning/removed/generated/RemovedClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -25,11 +24,9 @@ protected void beforeTest() { RemovedClientBuilder removedClientbuilder = new RemovedClientBuilder().endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - removedClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { removedClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } removedClient = removedClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/versioning/renamedfrom/RenamedFromClientTests.java b/typespec-tests/src/test/java/com/versioning/renamedfrom/RenamedFromClientTests.java index 07105a0acd..ff3ba0d465 100644 --- a/typespec-tests/src/test/java/com/versioning/renamedfrom/RenamedFromClientTests.java +++ b/typespec-tests/src/test/java/com/versioning/renamedfrom/RenamedFromClientTests.java @@ -9,10 +9,10 @@ import org.junit.jupiter.api.Test; public class RenamedFromClientTests { - private final RenamedFromClient renamedFromClient = new RenamedFromClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildClient(); - private final NewInterfaceClient newInterfaceClient = new RenamedFromClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildNewInterfaceClient(); + private final RenamedFromClient renamedFromClient + = new RenamedFromClientBuilder().endpoint("http://localhost:3000").version("v2").buildClient(); + private final NewInterfaceClient newInterfaceClient + = new RenamedFromClientBuilder().endpoint("http://localhost:3000").version("v2").buildNewInterfaceClient(); @Test public void testNewOp() { diff --git a/typespec-tests/src/test/java/com/versioning/renamedfrom/generated/RenamedFromClientTestBase.java b/typespec-tests/src/test/java/com/versioning/renamedfrom/generated/RenamedFromClientTestBase.java index 0f609c09a3..4b17e6afb9 100644 --- a/typespec-tests/src/test/java/com/versioning/renamedfrom/generated/RenamedFromClientTestBase.java +++ b/typespec-tests/src/test/java/com/versioning/renamedfrom/generated/RenamedFromClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -28,11 +27,9 @@ protected void beforeTest() { RenamedFromClientBuilder renamedFromClientbuilder = new RenamedFromClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - renamedFromClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { renamedFromClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } renamedFromClient = renamedFromClientbuilder.buildClient(); @@ -40,11 +37,9 @@ protected void beforeTest() { RenamedFromClientBuilder newInterfaceClientbuilder = new RenamedFromClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - newInterfaceClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { newInterfaceClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } newInterfaceClient = newInterfaceClientbuilder.buildNewInterfaceClient(); diff --git a/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientTests.java b/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientTests.java index bd50325db1..0f2749bd80 100644 --- a/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientTests.java +++ b/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/ReturnTypeChangedFromClientTests.java @@ -6,8 +6,8 @@ import org.junit.jupiter.api.Test; public class ReturnTypeChangedFromClientTests { - private final ReturnTypeChangedFromClient returnTypeChangedFromClient = new ReturnTypeChangedFromClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildClient(); + private final ReturnTypeChangedFromClient returnTypeChangedFromClient + = new ReturnTypeChangedFromClientBuilder().endpoint("http://localhost:3000").version("v2").buildClient(); @Test public void testReturnTypeChangedFromClient() { diff --git a/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/generated/ReturnTypeChangedFromClientTestBase.java b/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/generated/ReturnTypeChangedFromClientTestBase.java index 9b7dab9282..70b59f7d08 100644 --- a/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/generated/ReturnTypeChangedFromClientTestBase.java +++ b/typespec-tests/src/test/java/com/versioning/returntypechangedfrom/generated/ReturnTypeChangedFromClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -25,11 +24,9 @@ protected void beforeTest() { ReturnTypeChangedFromClientBuilder returnTypeChangedFromClientbuilder = new ReturnTypeChangedFromClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - returnTypeChangedFromClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { returnTypeChangedFromClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } returnTypeChangedFromClient = returnTypeChangedFromClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/com/versioning/typechangedfrom/TypeChangedFromClientTests.java b/typespec-tests/src/test/java/com/versioning/typechangedfrom/TypeChangedFromClientTests.java index 510090f590..66d5b5ce6f 100644 --- a/typespec-tests/src/test/java/com/versioning/typechangedfrom/TypeChangedFromClientTests.java +++ b/typespec-tests/src/test/java/com/versioning/typechangedfrom/TypeChangedFromClientTests.java @@ -7,8 +7,8 @@ import org.junit.jupiter.api.Test; public class TypeChangedFromClientTests { - private final TypeChangedFromClient typeChangedFromClient = new TypeChangedFromClientBuilder() - .endpoint("http://localhost:3000").version("v2").buildClient(); + private final TypeChangedFromClient typeChangedFromClient + = new TypeChangedFromClientBuilder().endpoint("http://localhost:3000").version("v2").buildClient(); @Test public void testTypeChangedFromClient() { diff --git a/typespec-tests/src/test/java/com/versioning/typechangedfrom/generated/TypeChangedFromClientTestBase.java b/typespec-tests/src/test/java/com/versioning/typechangedfrom/generated/TypeChangedFromClientTestBase.java index 1336f58697..848a381a49 100644 --- a/typespec-tests/src/test/java/com/versioning/typechangedfrom/generated/TypeChangedFromClientTestBase.java +++ b/typespec-tests/src/test/java/com/versioning/typechangedfrom/generated/TypeChangedFromClientTestBase.java @@ -8,7 +8,6 @@ // 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.HttpClient; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestMode; @@ -25,11 +24,9 @@ protected void beforeTest() { TypeChangedFromClientBuilder typeChangedFromClientbuilder = new TypeChangedFromClientBuilder() .endpoint(Configuration.getGlobalConfiguration().get("ENDPOINT", "endpoint")) .version(Configuration.getGlobalConfiguration().get("VERSION", "version")) - .httpClient(HttpClient.createDefault()) + .httpClient(getHttpClientOrUsePlayback(getHttpClients().findFirst().orElse(null))) .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)); - if (getTestMode() == TestMode.PLAYBACK) { - typeChangedFromClientbuilder.httpClient(interceptorManager.getPlaybackClient()); - } else if (getTestMode() == TestMode.RECORD) { + if (getTestMode() == TestMode.RECORD) { typeChangedFromClientbuilder.addPolicy(interceptorManager.getRecordPolicy()); } typeChangedFromClient = typeChangedFromClientbuilder.buildClient(); diff --git a/typespec-tests/src/test/java/org/utils/ArmUtils.java b/typespec-tests/src/test/java/org/utils/ArmUtils.java index 7e2960a0fd..bed5287556 100644 --- a/typespec-tests/src/test/java/org/utils/ArmUtils.java +++ b/typespec-tests/src/test/java/org/utils/ArmUtils.java @@ -16,7 +16,6 @@ import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; - import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; @@ -24,9 +23,8 @@ public final class ArmUtils { - private final static AzureProfile AZURE_PROFILE = new AzureProfile( - "00000000-0000-0000-0000-000000000000", - "00000000-0000-0000-0000-000000000000", + private final static AzureProfile AZURE_PROFILE + = new AzureProfile("00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000000", new AzureEnvironment(Map.of("resourceManagerEndpointUrl", "http://localhost:3000"))); private ArmUtils() { @@ -41,9 +39,7 @@ public static HttpPipeline createTestHttpPipeline() { policies.add(new AddDatePolicy()); // no ArmChallengeAuthenticationPolicy policies.add(new HttpLoggingPolicy(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS))); - return new HttpPipelineBuilder() - .policies(policies.toArray(new HttpPipelinePolicy[0])) - .build(); + return new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])).build(); } public static AzureProfile getAzureProfile() { diff --git a/vanilla-tests/src/main/java/fixtures/additionalproperties/AdditionalPropertiesClientBuilder.java b/vanilla-tests/src/main/java/fixtures/additionalproperties/AdditionalPropertiesClientBuilder.java index dc7eb6d8ea..70f6f833a7 100644 --- a/vanilla-tests/src/main/java/fixtures/additionalproperties/AdditionalPropertiesClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/additionalproperties/AdditionalPropertiesClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodyarray/Arrays.java b/vanilla-tests/src/main/java/fixtures/bodyarray/Arrays.java index d4c4916c95..450df262ff 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyarray/Arrays.java +++ b/vanilla-tests/src/main/java/fixtures/bodyarray/Arrays.java @@ -33,7 +33,6 @@ import java.util.List; import java.util.Map; import java.util.UUID; -import java.util.stream.Collectors; import reactor.core.publisher.Mono; /** diff --git a/vanilla-tests/src/main/java/fixtures/bodyarray/AutoRestSwaggerBATArrayServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyarray/AutoRestSwaggerBATArrayServiceBuilder.java index 920133bc47..2f41360cc8 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyarray/AutoRestSwaggerBATArrayServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyarray/AutoRestSwaggerBATArrayServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodyboolean/AutoRestBoolTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyboolean/AutoRestBoolTestServiceBuilder.java index 44f3d9aa1a..db33861fc3 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyboolean/AutoRestBoolTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyboolean/AutoRestBoolTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodyboolean/quirks/AutoRestBoolTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyboolean/quirks/AutoRestBoolTestServiceBuilder.java index 80a24accd7..1d7ef0017e 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyboolean/quirks/AutoRestBoolTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyboolean/quirks/AutoRestBoolTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodybyte/AutoRestSwaggerBATByteServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodybyte/AutoRestSwaggerBATByteServiceBuilder.java index 298724f58d..543d499bf2 100644 --- a/vanilla-tests/src/main/java/fixtures/bodybyte/AutoRestSwaggerBATByteServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodybyte/AutoRestSwaggerBATByteServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java index 2d1068d0a1..f4c0f3825c 100644 --- a/vanilla-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodycomplex/AutoRestComplexTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodycomplex/Primitives.java b/vanilla-tests/src/main/java/fixtures/bodycomplex/Primitives.java index 536273fa15..418b75a764 100644 --- a/vanilla-tests/src/main/java/fixtures/bodycomplex/Primitives.java +++ b/vanilla-tests/src/main/java/fixtures/bodycomplex/Primitives.java @@ -21,9 +21,9 @@ import com.azure.core.util.FluxUtil; import fixtures.bodycomplex.models.BooleanWrapper; import fixtures.bodycomplex.models.ByteWrapper; -import fixtures.bodycomplex.models.Datetimerfc1123Wrapper; -import fixtures.bodycomplex.models.DatetimeWrapper; import fixtures.bodycomplex.models.DateWrapper; +import fixtures.bodycomplex.models.DatetimeWrapper; +import fixtures.bodycomplex.models.Datetimerfc1123Wrapper; import fixtures.bodycomplex.models.DoubleWrapper; import fixtures.bodycomplex.models.DurationWrapper; import fixtures.bodycomplex.models.ErrorException; diff --git a/vanilla-tests/src/main/java/fixtures/bodydate/AutoRestDateTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodydate/AutoRestDateTestServiceBuilder.java index 182c112fb8..98690ae173 100644 --- a/vanilla-tests/src/main/java/fixtures/bodydate/AutoRestDateTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodydate/AutoRestDateTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodydatetime/AutoRestDateTimeTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodydatetime/AutoRestDateTimeTestServiceBuilder.java index 253fb5d71f..69f96fdc6d 100644 --- a/vanilla-tests/src/main/java/fixtures/bodydatetime/AutoRestDateTimeTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodydatetime/AutoRestDateTimeTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodydatetimerfc1123/AutoRestRFC1123DateTimeTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodydatetimerfc1123/AutoRestRFC1123DateTimeTestServiceBuilder.java index f630332857..a48b4a1dfa 100644 --- a/vanilla-tests/src/main/java/fixtures/bodydatetimerfc1123/AutoRestRFC1123DateTimeTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodydatetimerfc1123/AutoRestRFC1123DateTimeTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodydictionary/AutoRestSwaggerBATDictionaryServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodydictionary/AutoRestSwaggerBATDictionaryServiceBuilder.java index 7e0ef7eb88..828a6d60f6 100644 --- a/vanilla-tests/src/main/java/fixtures/bodydictionary/AutoRestSwaggerBATDictionaryServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodydictionary/AutoRestSwaggerBATDictionaryServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodydictionary/implementation/DictionariesImpl.java b/vanilla-tests/src/main/java/fixtures/bodydictionary/implementation/DictionariesImpl.java index 27fda27f87..59d7a2b938 100644 --- a/vanilla-tests/src/main/java/fixtures/bodydictionary/implementation/DictionariesImpl.java +++ b/vanilla-tests/src/main/java/fixtures/bodydictionary/implementation/DictionariesImpl.java @@ -29,7 +29,6 @@ import java.time.OffsetDateTime; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import reactor.core.publisher.Mono; /** diff --git a/vanilla-tests/src/main/java/fixtures/bodyduration/AutoRestDurationTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyduration/AutoRestDurationTestServiceBuilder.java index 9fee6dff3f..f1a69e3bf4 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyduration/AutoRestDurationTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyduration/AutoRestDurationTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBATFileServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBATFileServiceBuilder.java index 3b6dfc2cda..f314446b48 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBATFileServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyfile/AutoRestSwaggerBATFileServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodyformdataurlencoded/BodyFormsDataURLEncodedBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyformdataurlencoded/BodyFormsDataURLEncodedBuilder.java index 804ca5f42b..a1ee072684 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyformdataurlencoded/BodyFormsDataURLEncodedBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyformdataurlencoded/BodyFormsDataURLEncodedBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodyinteger/AutoRestIntegerTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/bodyinteger/AutoRestIntegerTestServiceBuilder.java index 1c0c2e4fb3..3ae1e21ba8 100644 --- a/vanilla-tests/src/main/java/fixtures/bodyinteger/AutoRestIntegerTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodyinteger/AutoRestIntegerTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/bodystring/implementation/AutoRestSwaggerBATServiceImplBuilder.java b/vanilla-tests/src/main/java/fixtures/bodystring/implementation/AutoRestSwaggerBATServiceImplBuilder.java index bb57ab1d6b..8cb14d7a14 100644 --- a/vanilla-tests/src/main/java/fixtures/bodystring/implementation/AutoRestSwaggerBATServiceImplBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/bodystring/implementation/AutoRestSwaggerBATServiceImplBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceBuilder.java index 9087430011..b462b74e86 100644 --- a/vanilla-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/constants/AutoRestSwaggerConstantServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/custombaseuri/AutoRestParameterizedHostTestClientBuilder.java b/vanilla-tests/src/main/java/fixtures/custombaseuri/AutoRestParameterizedHostTestClientBuilder.java index b6b88a2c8c..af593a11e2 100644 --- a/vanilla-tests/src/main/java/fixtures/custombaseuri/AutoRestParameterizedHostTestClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/custombaseuri/AutoRestParameterizedHostTestClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/custombaseuri/moreoptions/AutoRestParameterizedCustomHostTestClientBuilder.java b/vanilla-tests/src/main/java/fixtures/custombaseuri/moreoptions/AutoRestParameterizedCustomHostTestClientBuilder.java index 40dbbc3307..fccbb13994 100644 --- a/vanilla-tests/src/main/java/fixtures/custombaseuri/moreoptions/AutoRestParameterizedCustomHostTestClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/custombaseuri/moreoptions/AutoRestParameterizedCustomHostTestClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/customhttpexceptionmapping/AutoRestHeadExceptionTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/customhttpexceptionmapping/AutoRestHeadExceptionTestServiceBuilder.java index 8e31b8c1f5..6b765421b2 100644 --- a/vanilla-tests/src/main/java/fixtures/customhttpexceptionmapping/AutoRestHeadExceptionTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/customhttpexceptionmapping/AutoRestHeadExceptionTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/discriminatorenum/EnumDiscriminatorBuilder.java b/vanilla-tests/src/main/java/fixtures/discriminatorenum/EnumDiscriminatorBuilder.java index a103569b16..fdbb4205da 100644 --- a/vanilla-tests/src/main/java/fixtures/discriminatorenum/EnumDiscriminatorBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/discriminatorenum/EnumDiscriminatorBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/MonitorManagementClientBuilder.java b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/MonitorManagementClientBuilder.java index 1a5dfba148..3ba6f6daac 100644 --- a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/MonitorManagementClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/MonitorManagementClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/clientflatten/MonitorManagementClientBuilder.java b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/clientflatten/MonitorManagementClientBuilder.java index 8b5dc680da..f4bf471302 100644 --- a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/clientflatten/MonitorManagementClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/clientflatten/MonitorManagementClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/noflatten/MonitorManagementClientBuilder.java b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/noflatten/MonitorManagementClientBuilder.java index a36c4b668f..114d516847 100644 --- a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/noflatten/MonitorManagementClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/noflatten/MonitorManagementClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/requirexmsflattened/MonitorManagementClientBuilder.java b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/requirexmsflattened/MonitorManagementClientBuilder.java index 156a8ebb7e..7b373bda51 100644 --- a/vanilla-tests/src/main/java/fixtures/discriminatorflattening/requirexmsflattened/MonitorManagementClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/discriminatorflattening/requirexmsflattened/MonitorManagementClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/discriminatorsetter/EnumDiscriminatorBuilder.java b/vanilla-tests/src/main/java/fixtures/discriminatorsetter/EnumDiscriminatorBuilder.java index 6abf1d5fdb..44f958d9da 100644 --- a/vanilla-tests/src/main/java/fixtures/discriminatorsetter/EnumDiscriminatorBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/discriminatorsetter/EnumDiscriminatorBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/extensibleenums/PetStoreIncBuilder.java b/vanilla-tests/src/main/java/fixtures/extensibleenums/PetStoreIncBuilder.java index 4408f4ccda..e2808fb5ec 100644 --- a/vanilla-tests/src/main/java/fixtures/extensibleenums/PetStoreIncBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/extensibleenums/PetStoreIncBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/head/AutoRestHeadTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/head/AutoRestHeadTestServiceBuilder.java index 6008f92b7b..c8f93dda20 100644 --- a/vanilla-tests/src/main/java/fixtures/head/AutoRestHeadTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/head/AutoRestHeadTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/header/AutoRestSwaggerBATHeaderServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/header/AutoRestSwaggerBATHeaderServiceBuilder.java index a1217028ab..5ece4c1a9f 100644 --- a/vanilla-tests/src/main/java/fixtures/header/AutoRestSwaggerBATHeaderServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/header/AutoRestSwaggerBATHeaderServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceBuilder.java index ebe5fd7f9a..821055f014 100644 --- a/vanilla-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/headexceptions/AutoRestHeadExceptionTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/httpinfrastructure/AutoRestHttpInfrastructureTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/httpinfrastructure/AutoRestHttpInfrastructureTestServiceBuilder.java index 475eb99520..1692066270 100644 --- a/vanilla-tests/src/main/java/fixtures/httpinfrastructure/AutoRestHttpInfrastructureTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/httpinfrastructure/AutoRestHttpInfrastructureTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/inheritance/passdiscriminator/MonitorManagementClientBuilder.java b/vanilla-tests/src/main/java/fixtures/inheritance/passdiscriminator/MonitorManagementClientBuilder.java index f562daf804..56f5bbf0d8 100644 --- a/vanilla-tests/src/main/java/fixtures/inheritance/passdiscriminator/MonitorManagementClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/inheritance/passdiscriminator/MonitorManagementClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/lro/AutoRestLongRunningOperationTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/lro/AutoRestLongRunningOperationTestServiceBuilder.java index 21e9314846..d01d29b99b 100644 --- a/vanilla-tests/src/main/java/fixtures/lro/AutoRestLongRunningOperationTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/lro/AutoRestLongRunningOperationTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/lro/LROs.java b/vanilla-tests/src/main/java/fixtures/lro/LROs.java index 913535ccc0..02c95d8ea5 100644 --- a/vanilla-tests/src/main/java/fixtures/lro/LROs.java +++ b/vanilla-tests/src/main/java/fixtures/lro/LROs.java @@ -37,13 +37,13 @@ import fixtures.lro.models.LROsDelete202Retry200Headers; import fixtures.lro.models.LROsDeleteAsyncNoHeaderInRetryHeaders; import fixtures.lro.models.LROsDeleteAsyncNoRetrySucceededHeaders; -import fixtures.lro.models.LROsDeleteAsyncRetrycanceledHeaders; import fixtures.lro.models.LROsDeleteAsyncRetryFailedHeaders; import fixtures.lro.models.LROsDeleteAsyncRetrySucceededHeaders; +import fixtures.lro.models.LROsDeleteAsyncRetrycanceledHeaders; import fixtures.lro.models.LROsDeleteNoHeaderInRetryHeaders; import fixtures.lro.models.LROsDeleteProvisioning202Accepted200SucceededHeaders; -import fixtures.lro.models.LROsDeleteProvisioning202Deletingcanceled200Headers; import fixtures.lro.models.LROsDeleteProvisioning202DeletingFailed200Headers; +import fixtures.lro.models.LROsDeleteProvisioning202Deletingcanceled200Headers; import fixtures.lro.models.LROsPatch200SucceededIgnoreHeadersHeaders; import fixtures.lro.models.LROsPatch201RetryWithAsyncHeaderHeaders; import fixtures.lro.models.LROsPatch202RetryWithAsyncAndLocationHeaderHeaders; @@ -51,12 +51,12 @@ import fixtures.lro.models.LROsPost202NoRetry204Headers; import fixtures.lro.models.LROsPost202Retry200Headers; import fixtures.lro.models.LROsPostAsyncNoRetrySucceededHeaders; -import fixtures.lro.models.LROsPostAsyncRetrycanceledHeaders; import fixtures.lro.models.LROsPostAsyncRetryFailedHeaders; import fixtures.lro.models.LROsPostAsyncRetrySucceededHeaders; +import fixtures.lro.models.LROsPostAsyncRetrycanceledHeaders; import fixtures.lro.models.LROsPutAsyncNoHeaderInRetryHeaders; -import fixtures.lro.models.LROsPutAsyncNoRetrycanceledHeaders; import fixtures.lro.models.LROsPutAsyncNoRetrySucceededHeaders; +import fixtures.lro.models.LROsPutAsyncNoRetrycanceledHeaders; import fixtures.lro.models.LROsPutAsyncRetryFailedHeaders; import fixtures.lro.models.LROsPutAsyncRetrySucceededHeaders; import fixtures.lro.models.LROsPutNoHeaderInRetryHeaders; diff --git a/vanilla-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java b/vanilla-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java index 03678be73e..63b66ab1aa 100644 --- a/vanilla-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/mediatypes/MediaTypesClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestService.java b/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestService.java index 379fee1f3c..604e8a3f01 100644 --- a/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestService.java +++ b/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestService.java @@ -28,8 +28,8 @@ import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; import fixtures.modelflattening.models.ErrorException; -import fixtures.modelflattening.models.FlattenedProduct; import fixtures.modelflattening.models.FlattenParameterGroup; +import fixtures.modelflattening.models.FlattenedProduct; import fixtures.modelflattening.models.ProductWrapper; import fixtures.modelflattening.models.Resource; import fixtures.modelflattening.models.ResourceCollection; diff --git a/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestServiceBuilder.java index 7b744488a1..00b52246ac 100644 --- a/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/multipleinheritance/MultipleInheritanceServiceClientBuilder.java b/vanilla-tests/src/main/java/fixtures/multipleinheritance/MultipleInheritanceServiceClientBuilder.java index ffdeca82a9..c87cf7ac59 100644 --- a/vanilla-tests/src/main/java/fixtures/multipleinheritance/MultipleInheritanceServiceClientBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/multipleinheritance/MultipleInheritanceServiceClientBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/nonamedresponsetypes/AutoRestSwaggerBATHeaderServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/nonamedresponsetypes/AutoRestSwaggerBATHeaderServiceBuilder.java index f385a9bbc0..36ba78a9ed 100644 --- a/vanilla-tests/src/main/java/fixtures/nonamedresponsetypes/AutoRestSwaggerBATHeaderServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/nonamedresponsetypes/AutoRestSwaggerBATHeaderServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/notypedheadersmethods/AutoRestSwaggerBATHeaderServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/notypedheadersmethods/AutoRestSwaggerBATHeaderServiceBuilder.java index 4f7933aaf9..4d5c27dcb8 100644 --- a/vanilla-tests/src/main/java/fixtures/notypedheadersmethods/AutoRestSwaggerBATHeaderServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/notypedheadersmethods/AutoRestSwaggerBATHeaderServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/parameterflattening/AutoRestParameterFlatteningBuilder.java b/vanilla-tests/src/main/java/fixtures/parameterflattening/AutoRestParameterFlatteningBuilder.java index e200d745f5..6cf126e173 100644 --- a/vanilla-tests/src/main/java/fixtures/parameterflattening/AutoRestParameterFlatteningBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/parameterflattening/AutoRestParameterFlatteningBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/report/AutoRestReportServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/report/AutoRestReportServiceBuilder.java index 2472f9fa48..0b4275bef0 100644 --- a/vanilla-tests/src/main/java/fixtures/report/AutoRestReportServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/report/AutoRestReportServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/requiredfieldsascotrargstransformation/RequiredFieldsAsCtorArgsTransformationBuilder.java b/vanilla-tests/src/main/java/fixtures/requiredfieldsascotrargstransformation/RequiredFieldsAsCtorArgsTransformationBuilder.java index 866ff6fa3f..fbd0a59143 100644 --- a/vanilla-tests/src/main/java/fixtures/requiredfieldsascotrargstransformation/RequiredFieldsAsCtorArgsTransformationBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/requiredfieldsascotrargstransformation/RequiredFieldsAsCtorArgsTransformationBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/requiredoptional/AutoRestRequiredOptionalTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/requiredoptional/AutoRestRequiredOptionalTestServiceBuilder.java index fed4dfead8..e57a08d6e6 100644 --- a/vanilla-tests/src/main/java/fixtures/requiredoptional/AutoRestRequiredOptionalTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/requiredoptional/AutoRestRequiredOptionalTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/specialheader/SpecialHeaderBuilder.java b/vanilla-tests/src/main/java/fixtures/specialheader/SpecialHeaderBuilder.java index 117d707c07..04b699b836 100644 --- a/vanilla-tests/src/main/java/fixtures/specialheader/SpecialHeaderBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/specialheader/SpecialHeaderBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/streamstyleserialization/AutoRestComplexTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/streamstyleserialization/AutoRestComplexTestServiceBuilder.java index aa055cb64a..0a9681a56d 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstyleserialization/AutoRestComplexTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/streamstyleserialization/AutoRestComplexTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/streamstyleserialization/Primitives.java b/vanilla-tests/src/main/java/fixtures/streamstyleserialization/Primitives.java index 4d629f3b76..806a10eacc 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstyleserialization/Primitives.java +++ b/vanilla-tests/src/main/java/fixtures/streamstyleserialization/Primitives.java @@ -22,9 +22,9 @@ import com.azure.core.util.logging.ClientLogger; import fixtures.streamstyleserialization.models.BooleanWrapper; import fixtures.streamstyleserialization.models.ByteWrapper; -import fixtures.streamstyleserialization.models.Datetimerfc1123Wrapper; -import fixtures.streamstyleserialization.models.DatetimeWrapper; import fixtures.streamstyleserialization.models.DateWrapper; +import fixtures.streamstyleserialization.models.DatetimeWrapper; +import fixtures.streamstyleserialization.models.Datetimerfc1123Wrapper; import fixtures.streamstyleserialization.models.DoubleWrapper; import fixtures.streamstyleserialization.models.DurationWrapper; import fixtures.streamstyleserialization.models.ErrorException; diff --git a/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/AutoRestComplexTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/AutoRestComplexTestServiceBuilder.java index d10dd36d8d..31bc5b4ad2 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/AutoRestComplexTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/AutoRestComplexTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/Primitives.java b/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/Primitives.java index 9d4a92063c..eaad8999b2 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/Primitives.java +++ b/vanilla-tests/src/main/java/fixtures/streamstyleserializationctorargs/Primitives.java @@ -22,9 +22,9 @@ import com.azure.core.util.logging.ClientLogger; import fixtures.streamstyleserializationctorargs.models.BooleanWrapper; import fixtures.streamstyleserializationctorargs.models.ByteWrapper; -import fixtures.streamstyleserializationctorargs.models.Datetimerfc1123Wrapper; -import fixtures.streamstyleserializationctorargs.models.DatetimeWrapper; import fixtures.streamstyleserializationctorargs.models.DateWrapper; +import fixtures.streamstyleserializationctorargs.models.DatetimeWrapper; +import fixtures.streamstyleserializationctorargs.models.Datetimerfc1123Wrapper; import fixtures.streamstyleserializationctorargs.models.DoubleWrapper; import fixtures.streamstyleserializationctorargs.models.DurationWrapper; import fixtures.streamstyleserializationctorargs.models.ErrorException; diff --git a/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/AutoRestComplexTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/AutoRestComplexTestServiceBuilder.java index 4af687540a..72b60e72f9 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/AutoRestComplexTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/AutoRestComplexTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/Primitives.java b/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/Primitives.java index 54bca468f7..82f8fb1513 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/Primitives.java +++ b/vanilla-tests/src/main/java/fixtures/streamstyleserializationimmutableoutput/Primitives.java @@ -22,9 +22,9 @@ import com.azure.core.util.logging.ClientLogger; import fixtures.streamstyleserializationimmutableoutput.models.BooleanWrapper; import fixtures.streamstyleserializationimmutableoutput.models.ByteWrapper; -import fixtures.streamstyleserializationimmutableoutput.models.Datetimerfc1123Wrapper; -import fixtures.streamstyleserializationimmutableoutput.models.DatetimeWrapper; import fixtures.streamstyleserializationimmutableoutput.models.DateWrapper; +import fixtures.streamstyleserializationimmutableoutput.models.DatetimeWrapper; +import fixtures.streamstyleserializationimmutableoutput.models.Datetimerfc1123Wrapper; import fixtures.streamstyleserializationimmutableoutput.models.DoubleWrapper; import fixtures.streamstyleserializationimmutableoutput.models.DurationWrapper; import fixtures.streamstyleserializationimmutableoutput.models.ErrorException; diff --git a/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/AutoRestSwaggerBATXMLServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/AutoRestSwaggerBATXMLServiceBuilder.java index 435d76a2c2..1b270694ec 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/AutoRestSwaggerBATXMLServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/AutoRestSwaggerBATXMLServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/BananaWrapper.java b/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/BananaWrapper.java index 939d06c26b..44df62860b 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/BananaWrapper.java +++ b/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/BananaWrapper.java @@ -4,15 +4,14 @@ package fixtures.streamstylexmlserialization.implementation.models; -import fixtures.streamstylexmlserialization.models.Banana; -import java.util.List; - import com.azure.core.util.CoreUtils; import com.azure.xml.XmlReader; import com.azure.xml.XmlSerializable; import com.azure.xml.XmlToken; import com.azure.xml.XmlWriter; +import fixtures.streamstylexmlserialization.models.Banana; import java.util.ArrayList; +import java.util.List; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; diff --git a/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/SignedIdentifierWrapper.java b/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/SignedIdentifierWrapper.java index 555e13476a..7087113530 100644 --- a/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/SignedIdentifierWrapper.java +++ b/vanilla-tests/src/main/java/fixtures/streamstylexmlserialization/implementation/models/SignedIdentifierWrapper.java @@ -4,15 +4,14 @@ package fixtures.streamstylexmlserialization.implementation.models; -import fixtures.streamstylexmlserialization.models.SignedIdentifier; -import java.util.List; - import com.azure.core.util.CoreUtils; import com.azure.xml.XmlReader; import com.azure.xml.XmlSerializable; import com.azure.xml.XmlToken; import com.azure.xml.XmlWriter; +import fixtures.streamstylexmlserialization.models.SignedIdentifier; import java.util.ArrayList; +import java.util.List; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; diff --git a/vanilla-tests/src/main/java/fixtures/url/AutoRestUrlTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/url/AutoRestUrlTestServiceBuilder.java index aeff8cea61..27e5ee4ec9 100644 --- a/vanilla-tests/src/main/java/fixtures/url/AutoRestUrlTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/url/AutoRestUrlTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceBuilder.java index ab516c410e..c263bfded9 100644 --- a/vanilla-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/url/multi/AutoRestUrlMutliCollectionFormatTestServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/validation/AutoRestValidationTestBuilder.java b/vanilla-tests/src/main/java/fixtures/validation/AutoRestValidationTestBuilder.java index 404211a08c..e826f52042 100644 --- a/vanilla-tests/src/main/java/fixtures/validation/AutoRestValidationTestBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/validation/AutoRestValidationTestBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/main/java/fixtures/xmlservice/AutoRestSwaggerBATXMLServiceBuilder.java b/vanilla-tests/src/main/java/fixtures/xmlservice/AutoRestSwaggerBATXMLServiceBuilder.java index 61791357b0..d03a942186 100644 --- a/vanilla-tests/src/main/java/fixtures/xmlservice/AutoRestSwaggerBATXMLServiceBuilder.java +++ b/vanilla-tests/src/main/java/fixtures/xmlservice/AutoRestSwaggerBATXMLServiceBuilder.java @@ -16,8 +16,8 @@ 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.HttpLoggingPolicy; 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; diff --git a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/CookiecuttersharkTests.java b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/CookiecuttersharkTests.java index 96dce1f652..98b6068b27 100644 --- a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/CookiecuttersharkTests.java +++ b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/CookiecuttersharkTests.java @@ -31,18 +31,20 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Cookiecuttershark model = new Cookiecuttershark(5.423278f, OffsetDateTime.parse("2021-07-24T18:44:29Z")) - .setSpecies("pbtoqcjmkl") - .setSiblings(Arrays.asList( - new Fish(17.32046f).setSpecies("idtqajzyu") - .setSiblings(Arrays.asList(new Fish(58.94148f).setSpecies("jkrlkhbzhfepg") - .setSiblings(Arrays.asList(new Fish(53.090946f))))), - new Fish(3.4862816f).setSpecies("locx") - .setSiblings(Arrays.asList( - new Fish(91.597664f).setSpecies("erhhbcsglumm").setSiblings(Arrays.asList(new Fish(29.64415f))), - new Fish(62.736557f).setSpecies("dxob") - .setSiblings(Arrays.asList(new Fish(1.4938772f), new Fish(12.01387f))))))) - .setAge(1085002799); + Cookiecuttershark model + = new Cookiecuttershark(5.423278f, OffsetDateTime.parse("2021-07-24T18:44:29Z")).setSpecies("pbtoqcjmkl") + .setSiblings(Arrays.asList( + new Fish(17.32046f).setSpecies("idtqajzyu") + .setSiblings( + Arrays.asList(new Fish(58.94148f).setSpecies("jkrlkhbzhfepg") + .setSiblings(Arrays.asList(new Fish(53.090946f))))), + new Fish(3.4862816f).setSpecies("locx") + .setSiblings(Arrays.asList( + new Fish(91.597664f).setSpecies("erhhbcsglumm") + .setSiblings(Arrays.asList(new Fish(29.64415f))), + new Fish(62.736557f).setSpecies("dxob") + .setSiblings(Arrays.asList(new Fish(1.4938772f), new Fish(12.01387f))))))) + .setAge(1085002799); model = BinaryData.fromObject(model).toObject(Cookiecuttershark.class); Assertions.assertEquals("pbtoqcjmkl", model.getSpecies()); Assertions.assertEquals(5.423278f, model.getLength()); diff --git a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/FishTests.java b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/FishTests.java index a5400740a4..09c7b4165a 100644 --- a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/FishTests.java +++ b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/FishTests.java @@ -37,14 +37,13 @@ public void testSerialize() throws Exception { .setSiblings(Arrays.asList(new Fish(52.976006f), new Fish(38.78496f), new Fish(10.636175f))))), new Fish(62.1013f).setSpecies("pjoxzjnch") - .setSiblings( - Arrays.asList( - new Fish(2.2013366f).setSpecies("odmailzyd") - .setSiblings(Arrays.asList(new Fish(81.72188f), new Fish(29.215246f), - new Fish(46.80177f), new Fish(57.05146f))), - new Fish(93.690834f).setSpecies("xinpmqnjaq") - .setSiblings(Arrays.asList(new Fish(58.277805f), new Fish(97.03771f), - new Fish(1.6464472f))))), + .setSiblings(Arrays.asList( + new Fish(2.2013366f).setSpecies("odmailzyd") + .setSiblings(Arrays.asList(new Fish(81.72188f), new Fish(29.215246f), + new Fish(46.80177f), new Fish(57.05146f))), + new Fish(93.690834f).setSpecies("xinpmqnjaq") + .setSiblings(Arrays.asList(new Fish(58.277805f), new Fish(97.03771f), + new Fish(1.6464472f))))), new Fish(77.05936f).setSpecies("zvcputegjvwmfda") .setSiblings(Arrays.asList( new Fish(60.36252f).setSpecies("vpjhulsuuv") diff --git a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/GoblinsharkTests.java b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/GoblinsharkTests.java index a1254cd5cc..3e4ccd6231 100644 --- a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/GoblinsharkTests.java +++ b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/GoblinsharkTests.java @@ -6,8 +6,8 @@ import com.azure.core.util.BinaryData; import fixtures.bodycomplex.models.Fish; -import fixtures.bodycomplex.models.Goblinshark; import fixtures.bodycomplex.models.GoblinSharkColor; +import fixtures.bodycomplex.models.Goblinshark; import java.time.OffsetDateTime; import java.util.Arrays; import org.junit.jupiter.api.Assertions; diff --git a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/SawsharkTests.java b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/SawsharkTests.java index 5bf78bf7de..f4df76bda7 100644 --- a/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/SawsharkTests.java +++ b/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/SawsharkTests.java @@ -34,14 +34,12 @@ public void testSerialize() throws Exception { Sawshark model = new Sawshark(41.75237f, OffsetDateTime.parse("2021-09-01T01:28:54Z")).setSpecies("gibma") .setSiblings( - Arrays.asList( - new Fish(18.452686f).setSpecies("qsrxybzqqed") - .setSiblings(Arrays.asList( - new Fish(67.5812f).setSpecies("iqfouflmmnkz") - .setSiblings(Arrays.asList(new Fish(56.270576f), new Fish(47.130127f))), - new Fish(88.09739f).setSpecies("ougpbkwt") - .setSiblings(Arrays.asList(new Fish(35.76977f), new Fish(86.815414f))), - new Fish(94.51547f).setSpecies("ta").setSiblings(Arrays.asList(new Fish(18.805998f))))), + Arrays.asList(new Fish(18.452686f).setSpecies("qsrxybzqqed") + .setSiblings(Arrays.asList(new Fish(67.5812f).setSpecies("iqfouflmmnkz") + .setSiblings(Arrays.asList(new Fish(56.270576f), new Fish(47.130127f))), + new Fish(88.09739f).setSpecies("ougpbkwt") + .setSiblings(Arrays.asList(new Fish(35.76977f), new Fish(86.815414f))), + new Fish(94.51547f).setSpecies("ta").setSiblings(Arrays.asList(new Fish(18.805998f))))), new Fish(2.3766458f).setSpecies("uertumk") .setSiblings(Arrays.asList( new Fish(84.869194f).setSpecies("whbmd")