diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobAsyncClient.java index 40914a61149f..5ab1ddcfd3de 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobAsyncClient.java @@ -150,21 +150,6 @@ public BlobAsyncClient getSnapshotClient(String snapshot) { .build(), snapshot); } - /** - * Initializes a {@link ContainerAsyncClient} object pointing to the container this blob is in. This method does not - * create a container. It simply constructs the client to the container and offers access to methods relevant to - * containers. - * - * @return A {@link ContainerAsyncClient} object pointing to the container containing the blob - */ - public ContainerAsyncClient getContainerAsyncClient() { - BlobURLParts parts = URLParser.parse(getBlobUrl()); - return new ContainerAsyncClient(new AzureBlobStorageBuilder() - .url(String.format("%s://%s/%s", parts.scheme(), parts.host(), parts.containerName())) - .pipeline(azureBlobStorage.getHttpPipeline()) - .build()); - } - /** * Gets the URL of the blob represented by this client. * diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java index da65bd11ee7f..50ebd5837697 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java @@ -107,17 +107,6 @@ public BlobClient getSnapshotClient(String snapshot) { return new BlobClient(blobAsyncClient.getSnapshotClient(snapshot)); } - /** - * Initializes a {@link ContainerClient} object pointing to the container this blob is in. This method does not - * create a container. It simply constructs the URL to the container and offers access to methods relevant to - * containers. - * - * @return A {@link ContainerClient} object pointing to the container containing the blob - */ - public ContainerClient getContainerClient() { - return new ContainerClient(blobAsyncClient.getContainerAsyncClient()); - } - /** * Gets the URL of the blob represented by this client. * diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerAsyncClient.java index db9e28bf8f21..b4180d6b02a5 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerAsyncClient.java @@ -221,18 +221,6 @@ public BlobAsyncClient getBlobAsyncClient(String blobName, String snapshot) { .build(), snapshot); } - /** - * Initializes a {@link BlobServiceAsyncClient} object pointing to the storage account this container is in. - * - * @return A {@link BlobServiceAsyncClient} object pointing to the specified storage account - */ - public BlobServiceAsyncClient getBlobServiceAsyncClient() { - return new BlobServiceAsyncClient(new AzureBlobStorageBuilder() - .url(Utility.stripLastPathSegment(getContainerUrl()).toString()) - .pipeline(azureBlobStorage.getHttpPipeline()) - .build()); - } - /** * Gets the URL of the container represented by this client. * diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerClient.java index 824136cf8d2c..c9d5657c93cb 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/ContainerClient.java @@ -173,14 +173,6 @@ public BlobClient getBlobClient(String blobName, String snapshot) { return new BlobClient(containerAsyncClient.getBlobAsyncClient(blobName, snapshot)); } - /** - * Initializes a {@link BlobServiceClient} object pointing to the storage account this container is in. - * @return A {@link BlobServiceClient} object pointing to the specified storage account - */ - public BlobServiceClient getBlobServiceClient() { - return new BlobServiceClient(containerAsyncClient.getBlobServiceAsyncClient()); - } - /** * Gets the URL of the container represented by this client. * @return the URL.