You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/data-lake-storage-acl-java.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,11 +184,11 @@ This example gets and then sets the ACL of a file named `upload-file.txt`. This
184
184
185
185
### Set ACLs recursively
186
186
187
-
Set ACLs recursively by calling the **DataLakeDirectoryClient.setAccessControlRecursive** method. Pass this method a [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) of [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) objects. Each [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) defines an ACL entry.
187
+
Set ACLs recursively by calling the **DataLakeDirectoryClient.setAccessControlRecursive** method. Pass this method a [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) of [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) objects. Each [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) defines an ACL entry.
188
188
189
-
If you want to set a **default** ACL entry, then you can call the **setDefaultScope** method of the [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) and pass in a value of **true**.
189
+
If you want to set a **default** ACL entry, then you can call the **setDefaultScope** method of the [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) and pass in a value of **true**.
190
190
191
-
This example sets the ACL of a directory named `my-parent-directory`. This method accepts a boolean parameter named `isDefaultScope` that specifies whether to set the default ACL. That parameter is used in each call to the **setDefaultScope** method of the [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html). The entries of the ACL give the owning user read, write, and execute permissions, gives the owning group only read and execute permissions, and gives all others no access. The last ACL entry in this example gives a specific user with the object ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" read and execute permissions.
191
+
This example sets the ACL of a directory named `my-parent-directory`. This method accepts a boolean parameter named `isDefaultScope` that specifies whether to set the default ACL. That parameter is used in each call to the **setDefaultScope** method of the [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry). The entries of the ACL give the owning user read, write, and execute permissions, gives the owning group only read and execute permissions, and gives all others no access. The last ACL entry in this example gives a specific user with the object ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" read and execute permissions.
@@ -215,11 +215,11 @@ You can also get and set the ACL of the root directory of a container. To get th
215
215
216
216
To update an ACL recursively, create a new ACL object with the ACL entry that you want to update, and then use that object in update ACL operation. Do not get the existing ACL, just provide ACL entries to be updated.
217
217
218
-
Update ACLs recursively by calling the **DataLakeDirectoryClient.updateAccessControlRecursive** method. Pass this method a [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) of [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) objects. Each [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) defines an ACL entry.
218
+
Update ACLs recursively by calling the **DataLakeDirectoryClient.updateAccessControlRecursive** method. Pass this method a [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) of [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) objects. Each [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) defines an ACL entry.
219
219
220
-
If you want to update a **default** ACL entry, then you can call the **setDefaultScope** method of the [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) and pass in a value of **true**.
220
+
If you want to update a **default** ACL entry, then you can call the **setDefaultScope** method of the [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) and pass in a value of **true**.
221
221
222
-
This example updates an ACL entry with write permission. This method accepts a boolean parameter named `isDefaultScope` that specifies whether to update the default ACL. That parameter is used in the call to the **setDefaultScope** method of the [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html).
222
+
This example updates an ACL entry with write permission. This method accepts a boolean parameter named `isDefaultScope` that specifies whether to update the default ACL. That parameter is used in the call to the **setDefaultScope** method of the [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry).
@@ -240,11 +240,11 @@ First, get the ACL of a directory by calling the [PathAccessControl.getAccessCon
240
240
241
241
To remove ACL entries recursively, create a new ACL object for ACL entry to be removed, and then use that object in remove ACL operation. Do not get the existing ACL, just provide the ACL entries to be removed.
242
242
243
-
Remove ACL entries by calling the **DataLakeDirectoryClient.removeAccessControlRecursive** method. Pass this method a [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) of [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) objects. Each [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) defines an ACL entry.
243
+
Remove ACL entries by calling the **DataLakeDirectoryClient.removeAccessControlRecursive** method. Pass this method a [List](https://docs.oracle.com/javase/8/docs/api/java/util/List.html) of [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) objects. Each [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) defines an ACL entry.
244
244
245
-
If you want to remove a **default** ACL entry, then you can call the **setDefaultScope** method of the [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) and pass in a value of **true**.
245
+
If you want to remove a **default** ACL entry, then you can call the **setDefaultScope** method of the [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) and pass in a value of **true**.
246
246
247
-
This example removes an ACL entry from the ACL of the directory named `my-parent-directory`. This method accepts a boolean parameter named `isDefaultScope` that specifies whether to remove the entry from the default ACL. That parameter is used in the call to the **setDefaultScope** method of the [PathAccessControlEntry](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html).
247
+
This example removes an ACL entry from the ACL of the directory named `my-parent-directory`. This method accepts a boolean parameter named `isDefaultScope` that specifies whether to remove the entry from the default ACL. That parameter is used in the call to the **setDefaultScope** method of the [PathAccessControlEntry](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry).
@@ -258,7 +258,7 @@ This example returns a continuation token in the event of a failure. The applica
258
258
259
259
If you want the process to complete uninterrupted by permission errors, you can specify that.
260
260
261
-
To ensure that the process completes uninterrupted, call the **setContinueOnFailure** method of a [PathSetAccessControlRecursiveOptions](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-storage-file-datalake/12.3.0-beta.1/index.html) object and pass in a value of **true**.
261
+
To ensure that the process completes uninterrupted, call the **setContinueOnFailure** method of a [PathSetAccessControlRecursiveOptions](/java/api/com.azure.storage.file.datalake.models.pathaccesscontrolentry) object and pass in a value of **true**.
262
262
263
263
This example sets ACL entries recursively. If this code encounters a permission error, it records that failure and continues execution. This example prints the number of failures to the console.
Copy file name to clipboardExpand all lines: articles/storage/blobs/quickstart-blobs-c-plus-plus.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,10 @@ The following diagram shows the relationship between these resources.
66
66
67
67
Use these C++ classes to interact with these resources:
68
68
69
-
-[BlobServiceClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_service_client.html): The `BlobServiceClient` class allows you to manipulate Azure Storage resources and blob containers.
70
-
-[BlobContainerClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_container_client.html): The `BlobContainerClient` class allows you to manipulate Azure Storage containers and their blobs.
71
-
-[BlobClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_client.html): The `BlobClient` class allows you to manipulate Azure Storage blobs. It's the base class for all specialized blob classes.
72
-
-[BlockBlobClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_block_blob_client.html): The `BlockBlobClient` class allows you to manipulate Azure Storage block blobs.
69
+
-[BlobServiceClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html): The `BlobServiceClient` class allows you to manipulate Azure Storage resources and blob containers.
70
+
-[BlobContainerClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html): The `BlobContainerClient` class allows you to manipulate Azure Storage containers and their blobs.
71
+
-[BlobClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html): The `BlobClient` class allows you to manipulate Azure Storage blobs. It's the base class for all specialized blob classes.
72
+
-[BlockBlobClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html): The `BlockBlobClient` class allows you to manipulate Azure Storage block blobs.
1. Gets a reference to a [BlockBlobClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/1.0.0-beta.2/class_azure_1_1_storage_1_1_blobs_1_1_block_blob_client.html) object by calling [GetBlockBlobClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/1.0.0-beta.2/class_azure_1_1_storage_1_1_blobs_1_1_blob_container_client.html#acd8c68e3f37268fde0010dd478ff048f) on the container from the [Create a container](#create-a-container) section.
239
-
1. Uploads the string to the blob by calling the [UploadFrom](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/1.0.0-beta.2/class_azure_1_1_storage_1_1_blobs_1_1_block_blob_client.html#af93af7e37f8806e39481596ef253f93d) function. This function creates the blob if it doesn't already exist, or updates it if it does.
238
+
2. Gets a reference to a [BlockBlobClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) object by calling [GetBlockBlobClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) on the container from the [Create a container](#create-a-container) section.
239
+
3. Uploads the string to the blob by calling the [UploadFrom](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) function. This function creates the blob if it doesn't already exist, or updates it if it does.
List the blobs in the container by calling the [ListBlobs](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_container_client.html#a8f7e6653ef69788cb4fb23ec85d4fd96) function. Only one blob has been added to the container, so the operation returns just that blob.
247
+
List the blobs in the container by calling the [ListBlobs](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) function. Only one blob has been added to the container, so the operation returns just that blob.
Get the properties of the uploaded blob. Then, declare and resize a new `std::vector<uint8_t>` object by using the properties of the uploaded blob. Download the previously created blob into the new `std::vector<uint8_t>` object by calling the [DownloadTo](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_client.html#aa0bcbdbf6ebd17e4888cced4736420f7) function in the [BlobClient](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_client.html) base class. Finally, display the downloaded blob data.
255
+
Get the properties of the uploaded blob. Then, declare and resize a new `std::vector<uint8_t>` object by using the properties of the uploaded blob. Download the previously created blob into the new `std::vector<uint8_t>` object by calling the [DownloadTo](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) function in the [BlobClient](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) base class. Finally, display the downloaded blob data.
The following code deletes the blob from the Azure Blob Storage container by calling the [BlobClient.Delete](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_client.html#ac121df9f5dfcdeb80f47b50543df0984) function.
263
+
The following code deletes the blob from the Azure Blob Storage container by calling the [BlobClient.Delete](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html) function.
The following code cleans up the resources the app created by deleting the entire container by using [BlobContainerClient.Delete](https://azuresdkdocs.blob.core.windows.net/$web/cpp/azure-storage-blobs/12.0.0/class_azure_1_1_storage_1_1_blobs_1_1_blob_container_client.html#ae7661b6d8f37213b409504c0e9a68d69).
269
+
The following code cleans up the resources the app created by deleting the entire container by using [BlobContainerClient.Delete](https://azuresdkdocs.z19.web.core.windows.net/cpp/azure-storage-blobs/12.13.0/classes.html).
0 commit comments