-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JavaDoc Snippets for BlobClient and BlobAsyncClient (#4544)
* Storage SAS implementation (#4404) * SAS implementation * Fixed some minor formatting issues * Fixed checkstyle problems and test issue * Remove RawClients from Blobs (#4375) Removes RawClients from Storage Blobs * Add deleteContainer to StorageClient and getBlobClient with Snapshot to ContainerClient (#4376) * Removed raw clients * Added deleteContainer to StorageClient * Added getAppendBlob with snapshot to ContainerClient * Storage queue linting, builder refactor, tests (#4383) * Initial check in for storage queue * Beginning of code snippets for BlobAsyncClient * JavaDoc snippets for BlobAsyncClient and BlobClient * Added links to REST API docs for BlobAsyncClient and BlobClient, fixed JavaDoc issues, fix unit test issues * Removed invalid import
- Loading branch information
1 parent
77a6462
commit 8f9e52f
Showing
14 changed files
with
1,409 additions
and
142 deletions.
There are no files selected for viewing
330 changes: 280 additions & 50 deletions
330
storage/client/blob/src/main/java/com/azure/storage/blob/BlobAsyncClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
376 changes: 306 additions & 70 deletions
376
storage/client/blob/src/main/java/com/azure/storage/blob/BlobClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/samples/java/AzureIdentityExample.java → ...re/storage/blob/AzureIdentityExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...t/blob/src/samples/java/BasicExample.java → .../com/azure/storage/blob/BasicExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
390 changes: 390 additions & 0 deletions
390
...ient/blob/src/samples/java/com/azure/storage/blob/BlobAsyncClientJavaDocCodeSnippets.java
Large diffs are not rendered by default.
Oops, something went wrong.
387 changes: 387 additions & 0 deletions
387
...ge/client/blob/src/samples/java/com/azure/storage/blob/BlobClientJavaDocCodeSnippets.java
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 2 additions & 4 deletions
6
...src/samples/java/FileTransferExample.java → ...ure/storage/blob/FileTransferExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
storage/client/blob/src/samples/java/com/azure/storage/blob/JavaDocCodeSnippetsHelpers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.storage.blob; | ||
|
||
import java.net.MalformedURLException; | ||
import java.net.URL; | ||
|
||
final class JavaDocCodeSnippetsHelpers { | ||
static ContainerAsyncClient getContainerAsyncClient() { | ||
return new ContainerClientBuilder().buildAsyncClient(); | ||
} | ||
|
||
static BlobAsyncClient getBlobAsyncClient(String blobName) { | ||
return getContainerAsyncClient().getBlobAsyncClient(blobName); | ||
} | ||
|
||
static BlobClient getBlobClient(String blobName) { | ||
return new BlobClient(getBlobAsyncClient(blobName)); | ||
} | ||
|
||
static URL generateURL(String urlString) { | ||
try { | ||
return new URL(urlString); | ||
} catch (MalformedURLException ex) { | ||
throw new RuntimeException(ex); | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...c/samples/java/ListContainersExample.java → ...e/storage/blob/ListContainersExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...t/blob/src/samples/java/SampleHelper.java → .../com/azure/storage/blob/SampleHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...ava/SetMetadataAndHTTPHeadersExample.java → ...lob/SetMetadataAndHTTPHeadersExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...les/java/StorageErrorHandlingExample.java → ...age/blob/StorageErrorHandlingExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters