1010import com .azure .core .annotation .Host ;
1111import com .azure .core .annotation .HostParam ;
1212import com .azure .core .annotation .Post ;
13+ import com .azure .core .annotation .QueryParam ;
1314import com .azure .core .annotation .ReturnType ;
1415import com .azure .core .annotation .ServiceInterface ;
1516import com .azure .core .annotation .ServiceMethod ;
@@ -65,8 +66,8 @@ public interface ClientRequiredsService {
6566 @ UnexpectedResponseExceptionType (value = ResourceModifiedException .class , code = { 409 })
6667 @ UnexpectedResponseExceptionType (HttpResponseException .class )
6768 Mono <Response <Void >> post (@ HostParam ("endpoint" ) String endpoint , @ HeaderParam ("accept" ) String accept ,
68- @ HeaderParam ( "Content-Type " ) String contentType , @ BodyParam ( "application/json " ) BinaryData body ,
69- RequestOptions requestOptions , Context context );
69+ @ QueryParam ( "filter " ) String filter , @ HeaderParam ( "Content-Type " ) String contentType ,
70+ @ BodyParam ( "application/json" ) BinaryData body , RequestOptions requestOptions , Context context );
7071
7172 @ Post ("/client-required" )
7273 @ ExpectedResponses ({ 200 })
@@ -75,19 +76,12 @@ Mono<Response<Void>> post(@HostParam("endpoint") String endpoint, @HeaderParam("
7576 @ UnexpectedResponseExceptionType (value = ResourceModifiedException .class , code = { 409 })
7677 @ UnexpectedResponseExceptionType (HttpResponseException .class )
7778 Response <Void > postSync (@ HostParam ("endpoint" ) String endpoint , @ HeaderParam ("accept" ) String accept ,
78- @ HeaderParam ( "Content-Type " ) String contentType , @ BodyParam ( "application/json " ) BinaryData body ,
79- RequestOptions requestOptions , Context context );
79+ @ QueryParam ( "filter " ) String filter , @ HeaderParam ( "Content-Type " ) String contentType ,
80+ @ BodyParam ( "application/json" ) BinaryData body , RequestOptions requestOptions , Context context );
8081 }
8182
8283 /**
8384 * The post operation.
84- * <p><strong>Query Parameters</strong></p>
85- * <table border="1">
86- * <caption>Query Parameters</caption>
87- * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
88- * <tr><td>filter</td><td>String</td><td>No</td><td>The filter parameter</td></tr>
89- * </table>
90- * You can add these to a request with {@link RequestOptions#addQueryParam}
9185 * <p><strong>Request Body Schema</strong></p>
9286 *
9387 * <pre>
@@ -99,6 +93,7 @@ Response<Void> postSync(@HostParam("endpoint") String endpoint, @HeaderParam("ac
9993 * }
10094 * </pre>
10195 *
96+ * @param filter The filter parameter.
10297 * @param body The body parameter.
10398 * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
10499 * @throws HttpResponseException thrown if the request is rejected by server.
@@ -108,22 +103,15 @@ Response<Void> postSync(@HostParam("endpoint") String endpoint, @HeaderParam("ac
108103 * @return the {@link Response} on successful completion of {@link Mono}.
109104 */
110105 @ ServiceMethod (returns = ReturnType .SINGLE )
111- public Mono <Response <Void >> postWithResponseAsync (BinaryData body , RequestOptions requestOptions ) {
106+ public Mono <Response <Void >> postWithResponseAsync (String filter , BinaryData body , RequestOptions requestOptions ) {
112107 final String accept = "application/json;odata.metadata=minimal" ;
113108 final String contentType = "application/json" ;
114- return FluxUtil .withContext (
115- context -> service . post ( this . client . getEndpoint (), accept , contentType , body , requestOptions , context ));
109+ return FluxUtil .withContext (context -> service . post ( this . client . getEndpoint (), accept , filter , contentType ,
110+ body , requestOptions , context ));
116111 }
117112
118113 /**
119114 * The post operation.
120- * <p><strong>Query Parameters</strong></p>
121- * <table border="1">
122- * <caption>Query Parameters</caption>
123- * <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th></tr>
124- * <tr><td>filter</td><td>String</td><td>No</td><td>The filter parameter</td></tr>
125- * </table>
126- * You can add these to a request with {@link RequestOptions#addQueryParam}
127115 * <p><strong>Request Body Schema</strong></p>
128116 *
129117 * <pre>
@@ -135,6 +123,7 @@ public Mono<Response<Void>> postWithResponseAsync(BinaryData body, RequestOption
135123 * }
136124 * </pre>
137125 *
126+ * @param filter The filter parameter.
138127 * @param body The body parameter.
139128 * @param requestOptions The options to configure the HTTP request before HTTP client sends it.
140129 * @throws HttpResponseException thrown if the request is rejected by server.
@@ -144,9 +133,10 @@ public Mono<Response<Void>> postWithResponseAsync(BinaryData body, RequestOption
144133 * @return the {@link Response}.
145134 */
146135 @ ServiceMethod (returns = ReturnType .SINGLE )
147- public Response <Void > postWithResponse (BinaryData body , RequestOptions requestOptions ) {
136+ public Response <Void > postWithResponse (String filter , BinaryData body , RequestOptions requestOptions ) {
148137 final String accept = "application/json;odata.metadata=minimal" ;
149138 final String contentType = "application/json" ;
150- return service .postSync (this .client .getEndpoint (), accept , contentType , body , requestOptions , Context .NONE );
139+ return service .postSync (this .client .getEndpoint (), accept , filter , contentType , body , requestOptions ,
140+ Context .NONE );
151141 }
152142}
0 commit comments