Skip to content

Commit ba48d62

Browse files
authored
Remove rest proxy code (Azure#44660)
1 parent 3540a6e commit ba48d62

File tree

43 files changed

+103
-4589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+103
-4589
lines changed

sdk/clientcore/annotation-processor-test/src/main/java/io/clientcore/annotation/processor/test/implementation/TestInterfaceClientImpl.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,19 @@ static TestInterfaceClientService getNewInstance(HttpPipeline pipeline) {
4747
}
4848

4949
@HttpRequestInformation(method = HttpMethod.POST, path = "my/uri/path", expectedStatusCodes = { 200 })
50-
Response<Void> testMethod(@BodyParam("application/octet-stream") ByteBuffer request,
50+
Response<Void> testMethod(@HostParam("uri") String uri,
51+
@BodyParam("application/octet-stream") ByteBuffer request,
5152
@HeaderParam("Content-Type") String contentType, @HeaderParam("Content-Length") Long contentLength);
5253

5354
@HttpRequestInformation(method = HttpMethod.POST, path = "my/uri/path", expectedStatusCodes = { 200 })
54-
Response<Void> testMethod(@BodyParam("application/octet-stream") BinaryData data,
55+
Response<Void> testMethod(@HostParam("uri") String uri, @BodyParam("application/octet-stream") BinaryData data,
5556
@HeaderParam("Content-Type") String contentType, @HeaderParam("Content-Length") Long contentLength);
5657

5758
@HttpRequestInformation(method = HttpMethod.GET, path = "{nextLink}", expectedStatusCodes = { 200 })
5859
Response<Void> testListNext(@PathParam(value = "nextLink", encoded = true) String nextLink);
5960

6061
@HttpRequestInformation(method = HttpMethod.GET, path = "my/uri/path", expectedStatusCodes = { 200 })
61-
Void testMethodReturnsVoid();
62+
Void testMethodReturnsVoid(@HostParam("uri") String uri);
6263

6364
@HttpRequestInformation(method = HttpMethod.GET, path = "kv/{key}", expectedStatusCodes = { 200 })
6465
@UnexpectedResponseExceptionDetail(exceptionBodyClass = Error.class)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package io.clientcore.annotation.processor.test.implementation.models;

sdk/clientcore/annotation-processor-test/src/test/java/io/clientcore/annotation/processor/test/RestProxyTests.java

Lines changed: 0 additions & 160 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import static org.junit.jupiter.api.Assertions.assertNotNull;
2525
import static org.junit.jupiter.api.Assertions.fail;
2626

27-
public class TestInterfaceGenerationTests {
27+
public class TestInterfaceServiceClientGenerationTests {
2828
private static LocalTestServer server;
2929
@BeforeAll
3030
public static void startTestServer() {

0 commit comments

Comments
 (0)