diff --git a/sdk/storage/azure-storage-blob/README.md b/sdk/storage/azure-storage-blob/README.md index 0dcba41d169e9..bfd4966c8f1af 100644 --- a/sdk/storage/azure-storage-blob/README.md +++ b/sdk/storage/azure-storage-blob/README.md @@ -554,6 +554,8 @@ BlobServiceClient blobStorageClient = new BlobServiceClientBuilder() ```java readme-sample-setProxy ProxyOptions options = new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 888)); BlobServiceClient client = new BlobServiceClientBuilder() + .endpoint("") + .sasToken("") .httpClient(new NettyAsyncHttpClientBuilder().proxy(options).build()) .buildClient(); ``` @@ -566,6 +568,8 @@ Allow the client builder to determine the `HttpClient` type to be used but const HttpClientOptions clientOptions = new HttpClientOptions() .setProxyOptions(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 888))); BlobServiceClient client = new BlobServiceClientBuilder() + .endpoint("") + .sasToken("") .clientOptions(clientOptions) .buildClient(); ``` diff --git a/sdk/storage/azure-storage-blob/src/samples/java/com/azure/storage/blob/ReadmeSamples.java b/sdk/storage/azure-storage-blob/src/samples/java/com/azure/storage/blob/ReadmeSamples.java index 3e7b825da6d69..d49b56c1fea8b 100644 --- a/sdk/storage/azure-storage-blob/src/samples/java/com/azure/storage/blob/ReadmeSamples.java +++ b/sdk/storage/azure-storage-blob/src/samples/java/com/azure/storage/blob/ReadmeSamples.java @@ -360,6 +360,8 @@ public void setProxy() { // BEGIN: readme-sample-setProxy ProxyOptions options = new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 888)); BlobServiceClient client = new BlobServiceClientBuilder() + .endpoint("") + .sasToken("") .httpClient(new NettyAsyncHttpClientBuilder().proxy(options).build()) .buildClient(); // END: readme-sample-setProxy @@ -370,6 +372,8 @@ public void setProxy2() { HttpClientOptions clientOptions = new HttpClientOptions() .setProxyOptions(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 888))); BlobServiceClient client = new BlobServiceClientBuilder() + .endpoint("") + .sasToken("") .clientOptions(clientOptions) .buildClient(); // END: readme-sample-setProxy2 diff --git a/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/FileSample.java b/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/FileSample.java index e82da573de18a..4fdf404056098 100644 --- a/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/FileSample.java +++ b/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/FileSample.java @@ -75,7 +75,7 @@ public static void main(String[] args) { String sourceURL = clientURL; Duration pollInterval = Duration.ofSeconds(2); - SyncPoller poller = destFileClient.beginCopy(sourceURL, (Map) null, pollInterval); + SyncPoller poller = destFileClient.beginCopy(sourceURL + "", (Map) null, pollInterval); try { poller.waitForCompletion(Duration.ofMinutes(15));