Skip to content

Commit f72e5ce

Browse files
Merge pull request #226237 from pauljewellmsft/pauljewell-java-resources
Add resources section to Java dev guide articles
2 parents b48803d + 63d3892 commit f72e5ce

12 files changed

+198
-43
lines changed

articles/storage/blobs/storage-blob-container-delete-java.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,24 @@ The following example finds a deleted container, gets the version of that delete
5050

5151
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerDelete.java" id="Snippet_RestoreContainer":::
5252

53-
## See also
53+
## Resources
54+
55+
To learn more about deleting a container using the Azure Blob Storage client library for Java, see the following resources.
56+
57+
### REST API operations
58+
59+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for deleting or restoring a container use the following REST API operations:
5460

55-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerDelete.java)
56-
- [Quickstart: Azure Blob Storage client library for Java](storage-quickstart-blobs-java.md)
5761
- [Delete Container](/rest/api/storageservices/delete-container) (REST API)
62+
- [Restore Container](/rest/api/storageservices/restore-container) (REST API)
63+
64+
### Code samples
65+
66+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerDelete.java)
67+
68+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]
69+
70+
### See also
71+
5872
- [Soft delete for containers](soft-delete-container-overview.md)
5973
- [Enable and manage soft delete for containers](soft-delete-container-enable.md)

articles/storage/blobs/storage-blob-container-lease-java.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,22 @@ When a lease expires, the lease ID is maintained by the Blob service until the c
8282

8383
If a lease expires rather than being explicitly released, a client may need to wait up to one minute before a new lease can be acquired for the container. However, the client can renew the lease with the expired lease ID immediately.
8484

85+
## Resources
86+
87+
To learn more about leasing a container using the Azure Blob Storage client library for Java, see the following resources.
88+
89+
### REST API operations
90+
91+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for leasing a container use the following REST API operation:
92+
93+
- [Lease Container](/rest/api/storageservices/lease-container) (REST API)
94+
95+
### Code samples
96+
97+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerLease.java)
98+
99+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]
100+
85101
## See also
86102

87-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerLease.java)
88-
- [Lease Container](/rest/api/storageservices/lease-container)
89-
- [Lease Blob](/rest/api/storageservices/lease-blob)
90103
- [Managing Concurrency in Blob storage](concurrency-manage.md)

articles/storage/blobs/storage-blob-container-properties-metadata-java.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,22 @@ The following example reads in metadata values:
5555

5656
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerPropertiesMetadata.java" id="Snippet_ReadContainerMetadata":::
5757

58-
## See also
58+
## Resources
59+
60+
To learn more about setting and retrieving container properties and metadata using the Azure Blob Storage client library for Java, see the following resources.
61+
62+
### REST API operations
63+
64+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for setting and retrieving properties and metadata use the following REST API operations:
5965

60-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerPropertiesMetadata.java)
61-
- [Quickstart: Azure Blob Storage client library for Java](storage-quickstart-blobs-java.md)
6266
- [Get Container Properties](/rest/api/storageservices/get-container-properties) (REST API)
6367
- [Set Container Metadata](/rest/api/storageservices/set-container-metadata) (REST API)
64-
- [Get Container Metadata](/rest/api/storageservices/get-container-metadata) (REST API)
68+
- [Get Container Metadata](/rest/api/storageservices/get-container-metadata) (REST API)
69+
70+
The `getProperties` method retrieves container properties and metadata by calling both the [Get Blob Properties](/rest/api/storageservices/get-blob-properties) operation and the [Get Blob Metadata](/rest/api/storageservices/get-blob-metadata) operation.
71+
72+
### Code samples
73+
74+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerPropertiesMetadata.java)
75+
76+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]

articles/storage/blobs/storage-blob-containers-list-java.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,22 @@ You can also return a smaller set of results, by specifying the size of the page
4444

4545
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerList.java" id="Snippet_ListContainersWithPaging":::
4646

47-
## See also
47+
## Resources
48+
49+
To learn more about listing containers using the Azure Blob Storage client library for Java, see the following resources.
50+
51+
### REST API operations
52+
53+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for listing containers use the following REST API operation:
4854

49-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerList.java)
50-
- [Quickstart: Azure Blob Storage client library for Java](storage-quickstart-blobs-java.md)
5155
- [List Containers](/rest/api/storageservices/list-containers2) (REST API)
56+
57+
### Code samples
58+
59+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-containers/src/main/java/com/blobs/devguide/containers/ContainerList.java)
60+
61+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]
62+
63+
## See also
64+
5265
- [Enumerating Blob Resources](/rest/api/storageservices/enumerating-blob-resources)

articles/storage/blobs/storage-blob-copy-java.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To copy a blob, use the following method:
4444

4545
- [copyFromUrl](/java/api/com.azure.storage.blob.specialized.blobclientbase)
4646

47-
This method synchronously copies the data at the source URL to a blob and waits for the copy to complete before returning a response. The source must be a block blob no larger than 256 MB. The source URL must include a SAS token that provides permissions to read the source blob. To learn more about the underlying operation, see [Copy Blob From URL](/rest/api/storageservices/copy-blob-from-url).
47+
This method synchronously copies the data at the source URL to a blob and waits for the copy to complete before returning a response. The source must be a block blob no larger than 256 MB. The source URL must include a SAS token that provides permissions to read the source blob. To learn more about the underlying operation, see [REST API operations](#rest-api-operations).
4848

4949
The following code example gets a `BlobClient` object representing an existing blob and copies it to a new blob in a different container. This example also gets a lease on the source blob before copying so that no other client can modify the blob until the copy is complete and the lease is broken.
5050

@@ -65,7 +65,7 @@ You can also copy a blob using the following method:
6565

6666
- [beginCopy](/java/api/com.azure.storage.blob.specialized.blobclientbase)
6767

68-
This method triggers a long-running, asynchronous operation. The source may be another blob or an Azure File resource. If the source is in another storage account, the source must either be public or authorized with a SAS token. To learn more about the underlying operation, see [Copy Blob](/rest/api/storageservices/copy-blob).
68+
This method triggers a long-running, asynchronous operation. The source may be another blob or an Azure File resource. If the source is in another storage account, the source must either be public or authorized with a SAS token. To learn more about the underlying operation, see [REST API operations](#rest-api-operations).
6969

7070
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobCopy.java" id="Snippet_CopyBlobBeginCopy":::
7171

@@ -87,8 +87,20 @@ The following example stops a pending copy and leaves a destination blob with ze
8787

8888
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobCopy.java" id="Snippet_AbortCopy":::
8989

90-
## See also
90+
## Resources
91+
92+
To learn more about copying blobs using the Azure Blob Storage client library for Java, see the following resources.
93+
94+
### REST API operations
95+
96+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for copying blobs use the following REST API operations:
9197

92-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobCopy.java)
9398
- [Copy Blob](/rest/api/storageservices/copy-blob) (REST API)
94-
- [Abort Copy Blob](/rest/api/storageservices/abort-copy-blob) (REST API)
99+
- [Copy Blob From URL](/rest/api/storageservices/copy-blob-from-url) (REST API)
100+
- [Abort Copy Blob](/rest/api/storageservices/abort-copy-blob) (REST API)
101+
102+
### Code samples
103+
104+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobCopy.java)
105+
106+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]

articles/storage/blobs/storage-blob-delete-java.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,24 @@ This method restores the content and metadata of a soft-deleted blob and any ass
5959

6060
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDelete.java" id="Snippet_RestoreBlobVersion":::
6161

62-
## See also
62+
## Resources
63+
64+
To learn more about how to delete blobs and restore deleted blobs using the Azure Blob Storage client library for Java, see the following resources.
65+
66+
### REST API operations
67+
68+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for deleting blobs and restoring deleted blobs use the following REST API operations:
6369

64-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDelete.java)
65-
- [Quickstart: Azure Blob Storage client library for Java](storage-quickstart-blobs-java.md)
6670
- [Delete Blob](/rest/api/storageservices/delete-blob) (REST API)
6771
- [Undelete Blob](/rest/api/storageservices/undelete-blob) (REST API)
68-
- [Soft delete for blobs](soft-delete-blob-overview.md)
72+
73+
### Code samples
74+
75+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDelete.java)
76+
77+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]
78+
79+
### See also
80+
81+
- [Soft delete for blobs](soft-delete-blob-overview.md)
82+
- [Blob versioning](versioning-overview.md)

articles/storage/blobs/storage-blob-download-java.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,18 @@ The following example downloads a blob by opening a `BlobInputStream` and readin
4646

4747
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDownload.java" id="Snippet_ReadBlobStream":::
4848

49-
## See also
49+
## Resources
5050

51-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDownload.java)
52-
- [Quickstart: Azure Blob Storage client library for Java](storage-quickstart-blobs-java.md)
53-
- [Get Blob](/rest/api/storageservices/get-blob) (REST API)
51+
To learn more about how to download blobs using the Azure Blob Storage client library for Java, see the following resources.
52+
53+
### REST API operations
54+
55+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for downloading blobs use the following REST API operation:
56+
57+
- [Get Blob](/rest/api/storageservices/get-blob) (REST API)
58+
59+
### Code samples
60+
61+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDownload.java)
62+
63+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]

articles/storage/blobs/storage-blob-lease-java.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,22 @@ If a lease expires rather than being explicitly released, a client may need to w
8686

8787
A lease can't be granted for a blob snapshot, since snapshots are read-only. Requesting a lease against a snapshot results in status code `400 (Bad Request)`.
8888

89-
## See also
89+
## Resources
90+
91+
To learn more about managing blob leases using the Azure Blob Storage client library for Java, see the following resources.
92+
93+
### REST API operations
94+
95+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for managing blob leases use the following REST API operation:
9096

91-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobLease.java)
92-
- [Lease Container](/rest/api/storageservices/lease-container)
9397
- [Lease Blob](/rest/api/storageservices/lease-blob)
98+
99+
### Code samples
100+
101+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobLease.java)
102+
103+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]
104+
105+
### See also
106+
94107
- [Managing Concurrency in Blob storage](concurrency-manage.md)

articles/storage/blobs/storage-blob-properties-metadata-java.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,21 @@ The following code example reads metadata on a blob and prints each key/value pa
6767

6868
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobPropertiesMetadataTags.java" id="Snippet_ReadBlobMetadata":::
6969

70-
## See also
70+
## Resources
71+
72+
To learn more about how to manage system properties and user-defined metadata using the Azure Blob Storage client library for Java, see the following resources.
73+
74+
### REST API operations
75+
76+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for managing system properties and user-defined metadata use the following REST API operations:
7177

72-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobPropertiesMetadataTags.java)
7378
- [Set Blob Properties](/rest/api/storageservices/set-blob-properties) (REST API)
7479
- [Get Blob Properties](/rest/api/storageservices/get-blob-properties) (REST API)
7580
- [Set Blob Metadata](/rest/api/storageservices/set-blob-metadata) (REST API)
76-
- [Get Blob Metadata](/rest/api/storageservices/get-blob-metadata) (REST API)
81+
- [Get Blob Metadata](/rest/api/storageservices/get-blob-metadata) (REST API)
82+
83+
### Code samples
84+
85+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobPropertiesMetadataTags.java)
86+
87+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]

articles/storage/blobs/storage-blob-tags-java.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,25 @@ The following example finds all blobs tagged as an image:
8383

8484
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobPropertiesMetadataTags.java" id="Snippet_FindBlobsByTag":::
8585

86-
## See also
86+
## Resources
87+
88+
To learn more about how to use index tags to manage and find data using the Azure Blob Storage client library for Java, see the following resources.
89+
90+
### REST API operations
91+
92+
The Azure SDK for Java contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar Java paradigms. The client library methods for managing and using blob index tags use the following REST API operations:
8793

88-
- [View code sample in GitHub](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobPropertiesMetadataTags.java)
89-
- [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md)
9094
- [Get Blob Tags](/rest/api/storageservices/get-blob-tags) (REST API)
9195
- [Set Blob Tags](/rest/api/storageservices/set-blob-tags) (REST API)
92-
- [Find Blobs by Tags](/rest/api/storageservices/find-blobs-by-tags) (REST API)
96+
- [Find Blobs by Tags](/rest/api/storageservices/find-blobs-by-tags) (REST API)
97+
98+
### Code samples
99+
100+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobPropertiesMetadataTags.java)
101+
102+
[!INCLUDE [storage-dev-guide-resources-java](../../../includes/storage-dev-guides/storage-dev-guide-resources-java.md)]
103+
104+
### See also
105+
106+
- [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md)
107+
- [Use blob index tags to manage and find data on Azure Blob Storage](storage-blob-index-how-to.md)

0 commit comments

Comments
 (0)