public class DataLakePathAsyncClient extends Object
| Modifier and Type | Method and Description |
|---|---|
Mono<PathInfo> |
create()
Creates a resource.
|
Mono<PathInfo> |
create(boolean overwrite)
Creates a resource.
|
Mono<com.azure.core.http.rest.Response<PathInfo>> |
createWithResponse(String permissions,
String umask,
PathHttpHeaders headers,
Map<String,String> metadata,
DataLakeRequestConditions requestConditions)
Creates a resource.
|
Mono<Boolean> |
exists()
Determines if the path this client represents exists in the cloud.
|
Mono<com.azure.core.http.rest.Response<Boolean>> |
existsWithResponse()
Determines if the path this client represents exists in the cloud.
|
String |
generateSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues)
Generates a service SAS for the path using the specified
DataLakeServiceSasSignatureValues |
String |
generateSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues,
com.azure.core.util.Context context)
Generates a service SAS for the path using the specified
DataLakeServiceSasSignatureValues |
String |
generateUserDelegationSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues,
UserDelegationKey userDelegationKey)
Generates a user delegation SAS for the path using the specified
DataLakeServiceSasSignatureValues. |
String |
generateUserDelegationSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues,
UserDelegationKey userDelegationKey,
String accountName,
com.azure.core.util.Context context)
Generates a user delegation SAS for the path using the specified
DataLakeServiceSasSignatureValues. |
Mono<PathAccessControl> |
getAccessControl()
Returns the access control for a resource.
|
Mono<com.azure.core.http.rest.Response<PathAccessControl>> |
getAccessControlWithResponse(boolean userPrincipalNameReturned,
DataLakeRequestConditions requestConditions)
Returns the access control for a resource.
|
String |
getAccountName()
Gets the associated account name.
|
String |
getFileSystemName()
Gets the name of the File System in which this object lives.
|
com.azure.core.http.HttpPipeline |
getHttpPipeline()
Gets the
HttpPipeline powering this client. |
Mono<PathProperties> |
getProperties()
Returns the resources's metadata and properties.
|
Mono<com.azure.core.http.rest.Response<PathProperties>> |
getPropertiesWithResponse(DataLakeRequestConditions requestConditions)
Returns the resource's metadata and properties.
|
DataLakeServiceVersion |
getServiceVersion()
Gets the service version the client is using.
|
Mono<AccessControlChangeResult> |
removeAccessControlRecursive(List<PathRemoveAccessControlEntry> accessControlList)
Recursively removes the access control on a path and all subpaths.
|
Mono<com.azure.core.http.rest.Response<AccessControlChangeResult>> |
removeAccessControlRecursiveWithResponse(PathRemoveAccessControlRecursiveOptions options)
Recursively removes the access control on a path and all subpaths.
|
Mono<PathInfo> |
setAccessControlList(List<PathAccessControlEntry> accessControlList,
String group,
String owner)
Changes the access control list, group and/or owner for a resource.
|
Mono<com.azure.core.http.rest.Response<PathInfo>> |
setAccessControlListWithResponse(List<PathAccessControlEntry> accessControlList,
String group,
String owner,
DataLakeRequestConditions requestConditions)
Changes the access control list, group and/or owner for a resource.
|
Mono<AccessControlChangeResult> |
setAccessControlRecursive(List<PathAccessControlEntry> accessControlList)
Recursively sets the access control on a path and all subpaths.
|
Mono<com.azure.core.http.rest.Response<AccessControlChangeResult>> |
setAccessControlRecursiveWithResponse(PathSetAccessControlRecursiveOptions options)
Recursively sets the access control on a path and all subpaths.
|
Mono<Void> |
setHttpHeaders(PathHttpHeaders headers)
Changes a resource's HTTP header properties.
|
Mono<com.azure.core.http.rest.Response<Void>> |
setHttpHeadersWithResponse(PathHttpHeaders headers,
DataLakeRequestConditions requestConditions)
Changes a resources's HTTP header properties.
|
Mono<Void> |
setMetadata(Map<String,String> metadata)
Changes a resource's metadata.
|
Mono<com.azure.core.http.rest.Response<Void>> |
setMetadataWithResponse(Map<String,String> metadata,
DataLakeRequestConditions requestConditions)
Changes a resource's metadata.
|
Mono<PathInfo> |
setPermissions(PathPermissions permissions,
String group,
String owner)
Changes the permissions, group and/or owner for a resource.
|
Mono<com.azure.core.http.rest.Response<PathInfo>> |
setPermissionsWithResponse(PathPermissions permissions,
String group,
String owner,
DataLakeRequestConditions requestConditions)
Changes the permissions, group and/or owner for a resource.
|
Mono<AccessControlChangeResult> |
updateAccessControlRecursive(List<PathAccessControlEntry> accessControlList)
Recursively updates the access control on a path and all subpaths.
|
Mono<com.azure.core.http.rest.Response<AccessControlChangeResult>> |
updateAccessControlRecursiveWithResponse(PathUpdateAccessControlRecursiveOptions options)
Recursively updates the access control on a path and all subpaths.
|
public String getAccountName()
public String getFileSystemName()
public com.azure.core.http.HttpPipeline getHttpPipeline()
HttpPipeline powering this client.public DataLakeServiceVersion getServiceVersion()
public Mono<PathInfo> create()
Code Samples
client.create().subscribe(response ->
System.out.printf("Last Modified Time:%s", response.getLastModified()));
For more information see the Azure Docs
public Mono<PathInfo> create(boolean overwrite)
Code Samples
boolean overwrite = true;
client.create(overwrite).subscribe(response ->
System.out.printf("Last Modified Time:%s", response.getLastModified()));
For more information see the Azure Docs
overwrite - Whether or not to overwrite, should data exist on the file.public Mono<com.azure.core.http.rest.Response<PathInfo>> createWithResponse(String permissions, String umask, PathHttpHeaders headers, Map<String,String> metadata, DataLakeRequestConditions requestConditions)
Code Samples
PathHttpHeadershttpHeaders = newPathHttpHeaders() .setContentLanguage("en-US") .setContentType("binary");DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions() .setLeaseId(leaseId);Stringpermissions = "permissions";Stringumask = "umask"; client.createWithResponse(permissions, umask, httpHeaders,Collections.singletonMap("metadata", "value"), requestConditions) .subscribe(response ->System.out.printf("Last Modified Time:%s", response.getValue().getLastModified()));
For more information see the Azure Docs
permissions - POSIX access permissions for the resource owner, the resource owning group, and others.umask - Restricts permissions of the resource to be created.headers - PathHttpHeadersmetadata - Metadata to associate with the resource. If there is leading or trailing whitespace in any
metadata key or value, it must be removed or encoded.requestConditions - DataLakeRequestConditionsMono containing a Response whose value contains a PathItem.public Mono<Void> setMetadata(Map<String,String> metadata)
Code Samples
client.setMetadata(Collections.singletonMap("metadata", "value")) .subscribe(response ->System.out.println("Set metadata completed"));
For more information, see the Azure Docs
metadata - Metadata to associate with the resource. If there is leading or trailing whitespace in any
metadata key or value, it must be removed or encoded.public Mono<com.azure.core.http.rest.Response<Void>> setMetadataWithResponse(Map<String,String> metadata, DataLakeRequestConditions requestConditions)
Code Samples
DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions().setLeaseId(leaseId); client.setMetadataWithResponse(Collections.singletonMap("metadata", "value"), requestConditions) .subscribe(response ->System.out.printf("Set metadata completed with status %d%n", response.getStatusCode()));
For more information, see the Azure Docs
metadata - Metadata to associate with the resource. If there is leading or trailing whitespace in any
metadata key or value, it must be removed or encoded.requestConditions - DataLakeRequestConditionspublic Mono<Void> setHttpHeaders(PathHttpHeaders headers)
Code Samples
client.setHttpHeaders(new PathHttpHeaders()
.setContentLanguage("en-US")
.setContentType("binary"));
For more information, see the Azure Docs
headers - PathHttpHeaderspublic Mono<com.azure.core.http.rest.Response<Void>> setHttpHeadersWithResponse(PathHttpHeaders headers, DataLakeRequestConditions requestConditions)
Code Samples
DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions().setLeaseId(leaseId); client.setHttpHeadersWithResponse(newPathHttpHeaders() .setContentLanguage("en-US") .setContentType("binary"), requestConditions).subscribe(response ->System.out.printf("Set HTTP headers completed with status %d%n", response.getStatusCode()));
For more information, see the Azure Docs
headers - PathHttpHeadersrequestConditions - DataLakeRequestConditionspublic Mono<PathProperties> getProperties()
Code Samples
client.getProperties().subscribe(response ->
System.out.printf("Creation Time: %s, Size: %d%n", response.getCreationTime(), response.getFileSize()));
For more information, see the Azure Docs
public Mono<com.azure.core.http.rest.Response<PathProperties>> getPropertiesWithResponse(DataLakeRequestConditions requestConditions)
Code Samples
DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions().setLeaseId(leaseId); client.getPropertiesWithResponse(requestConditions).subscribe( response ->System.out.printf("Creation Time: %s, Size: %d%n", response.getValue().getCreationTime(), response.getValue().getFileSize()));
For more information, see the Azure Docs
requestConditions - DataLakeRequestConditionspublic Mono<Boolean> exists()
Note that this method does not guarantee that the path type (file/directory) matches expectations.
For example, a DataLakeFileClient representing a path to a datalake directory will return true, and vice versa.
Code Samples
client.exists().subscribe(response -> System.out.printf("Exists? %b%n", response));
public Mono<com.azure.core.http.rest.Response<Boolean>> existsWithResponse()
Note that this method does not guarantee that the path type (file/directory) matches expectations.
For example, a DataLakeFileClient representing a path to a datalake directory will return true, and vice versa.
Code Samples
client.existsWithResponse().subscribe(response -> System.out.printf("Exists? %b%n", response.getValue()));
public Mono<PathInfo> setAccessControlList(List<PathAccessControlEntry> accessControlList, String group, String owner)
Code Samples
PathAccessControlEntrypathAccessControlEntry = newPathAccessControlEntry() .setEntityId("entityId") .setPermissions(newRolePermissions().setReadPermission(true));List<PathAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry);Stringgroup = "group";Stringowner = "owner"; client.setAccessControlList(pathAccessControlEntries, group, owner).subscribe( response ->System.out.printf("Last Modified Time: %s", response.getLastModified()));
For more information, see the Azure Docs
accessControlList - A list of PathAccessControlEntry objects.group - The group of the resource.owner - The owner of the resource.public Mono<com.azure.core.http.rest.Response<PathInfo>> setAccessControlListWithResponse(List<PathAccessControlEntry> accessControlList, String group, String owner, DataLakeRequestConditions requestConditions)
Code Samples
DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions().setLeaseId(leaseId);PathAccessControlEntrypathAccessControlEntry = newPathAccessControlEntry() .setEntityId("entityId") .setPermissions(newRolePermissions().setReadPermission(true));List<PathAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry);Stringgroup = "group";Stringowner = "owner"; client.setAccessControlListWithResponse(pathAccessControlEntries, group, owner, requestConditions).subscribe( response ->System.out.printf("Last Modified Time: %s", response.getValue().getLastModified()));
For more information, see the Azure Docs
accessControlList - A list of PathAccessControlEntry objects.group - The group of the resource.owner - The owner of the resource.requestConditions - DataLakeRequestConditionspublic Mono<PathInfo> setPermissions(PathPermissions permissions, String group, String owner)
Code Samples
PathPermissionspermissions = newPathPermissions() .setGroup(newRolePermissions().setExecutePermission(true).setReadPermission(true)) .setOwner(newRolePermissions().setExecutePermission(true).setReadPermission(true).setWritePermission(true)) .setOther(newRolePermissions().setReadPermission(true));Stringgroup = "group";Stringowner = "owner"; client.setPermissions(permissions, group, owner).subscribe( response ->System.out.printf("Last Modified Time: %s", response.getLastModified()));
For more information, see the Azure Docs
permissions - PathPermissionsgroup - The group of the resource.owner - The owner of the resource.public Mono<com.azure.core.http.rest.Response<PathInfo>> setPermissionsWithResponse(PathPermissions permissions, String group, String owner, DataLakeRequestConditions requestConditions)
Code Samples
DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions().setLeaseId(leaseId);PathPermissionspermissions = newPathPermissions() .setGroup(newRolePermissions().setExecutePermission(true).setReadPermission(true)) .setOwner(newRolePermissions().setExecutePermission(true).setReadPermission(true).setWritePermission(true)) .setOther(newRolePermissions().setReadPermission(true));Stringgroup = "group";Stringowner = "owner"; client.setPermissionsWithResponse(permissions, group, owner, requestConditions).subscribe( response ->System.out.printf("Last Modified Time: %s", response.getValue().getLastModified()));
For more information, see the Azure Docs
permissions - PathPermissionsgroup - The group of the resource.owner - The owner of the resource.requestConditions - DataLakeRequestConditionspublic Mono<AccessControlChangeResult> setAccessControlRecursive(List<PathAccessControlEntry> accessControlList)
Code Samples
PathAccessControlEntrypathAccessControlEntry = newPathAccessControlEntry() .setEntityId("entityId") .setPermissions(newRolePermissions().setReadPermission(true));List<PathAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry); client.setAccessControlRecursive(pathAccessControlEntries).subscribe( response ->System.out.printf("Successful changed file operations: %d", response.getCounters().getChangedFilesCount()));
For more information, see the Azure Docs
accessControlList - The POSIX access control list for the file or directory.DataLakeAclChangeFailedException - if a request to storage throws a
DataLakeStorageException or a Exception to wrap the exception with the continuation token.public Mono<com.azure.core.http.rest.Response<AccessControlChangeResult>> setAccessControlRecursiveWithResponse(PathSetAccessControlRecursiveOptions options)
Code Samples
PathAccessControlEntrypathAccessControlEntry = newPathAccessControlEntry() .setEntityId("entityId") .setPermissions(newRolePermissions().setReadPermission(true));List<PathAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry);IntegerbatchSize = 2;IntegermaxBatches = 10; boolean continueOnFailure = false;StringcontinuationToken = null;Consumer<Response<AccessControlChanges>> progressHandler = response ->System.out.println("Received response");PathSetAccessControlRecursiveOptionsoptions = newPathSetAccessControlRecursiveOptions(pathAccessControlEntries) .setBatchSize(batchSize) .setMaxBatches(maxBatches) .setContinueOnFailure(continueOnFailure) .setContinuationToken(continuationToken) .setProgressHandler(progressHandler); client.setAccessControlRecursive(pathAccessControlEntries).subscribe( response ->System.out.printf("Successful changed file operations: %d", response.getCounters().getChangedFilesCount()));
For more information, see the Azure Docs
options - PathSetAccessControlRecursiveOptionsDataLakeAclChangeFailedException - if a request to storage throws a
DataLakeStorageException or a Exception to wrap the exception with the continuation token.public Mono<AccessControlChangeResult> updateAccessControlRecursive(List<PathAccessControlEntry> accessControlList)
Code Samples
PathAccessControlEntrypathAccessControlEntry = newPathAccessControlEntry() .setEntityId("entityId") .setPermissions(newRolePermissions().setReadPermission(true));List<PathAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry); client.updateAccessControlRecursive(pathAccessControlEntries).subscribe( response ->System.out.printf("Successful changed file operations: %d", response.getCounters().getChangedFilesCount()));
For more information, see the Azure Docs
accessControlList - The POSIX access control list for the file or directory.DataLakeAclChangeFailedException - if a request to storage throws a
DataLakeStorageException or a Exception to wrap the exception with the continuation token.public Mono<com.azure.core.http.rest.Response<AccessControlChangeResult>> updateAccessControlRecursiveWithResponse(PathUpdateAccessControlRecursiveOptions options)
Code Samples
PathAccessControlEntrypathAccessControlEntry = newPathAccessControlEntry() .setEntityId("entityId") .setPermissions(newRolePermissions().setReadPermission(true));List<PathAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry);IntegerbatchSize = 2;IntegermaxBatches = 10; boolean continueOnFailure = false;StringcontinuationToken = null;Consumer<Response<AccessControlChanges>> progressHandler = response ->System.out.println("Received response");PathUpdateAccessControlRecursiveOptionsoptions = newPathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) .setBatchSize(batchSize) .setMaxBatches(maxBatches) .setContinueOnFailure(continueOnFailure) .setContinuationToken(continuationToken) .setProgressHandler(progressHandler); client.updateAccessControlRecursive(pathAccessControlEntries).subscribe( response ->System.out.printf("Successful changed file operations: %d", response.getCounters().getChangedFilesCount()));
For more information, see the Azure Docs
options - PathUpdateAccessControlRecursiveOptionsDataLakeAclChangeFailedException - if a request to storage throws a
DataLakeStorageException or a Exception to wrap the exception with the continuation token.public Mono<AccessControlChangeResult> removeAccessControlRecursive(List<PathRemoveAccessControlEntry> accessControlList)
Code Samples
PathRemoveAccessControlEntrypathAccessControlEntry = newPathRemoveAccessControlEntry() .setEntityId("entityId");List<PathRemoveAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry); client.removeAccessControlRecursive(pathAccessControlEntries).subscribe( response ->System.out.printf("Successful changed file operations: %d", response.getCounters().getChangedFilesCount()));
For more information, see the Azure Docs
accessControlList - The POSIX access control list for the file or directory.DataLakeAclChangeFailedException - if a request to storage throws a
DataLakeStorageException or a Exception to wrap the exception with the continuation token.public Mono<com.azure.core.http.rest.Response<AccessControlChangeResult>> removeAccessControlRecursiveWithResponse(PathRemoveAccessControlRecursiveOptions options)
Code Samples
PathRemoveAccessControlEntrypathAccessControlEntry = newPathRemoveAccessControlEntry() .setEntityId("entityId");List<PathRemoveAccessControlEntry> pathAccessControlEntries = newArrayList<>(); pathAccessControlEntries.add(pathAccessControlEntry);IntegerbatchSize = 2;IntegermaxBatches = 10; boolean continueOnFailure = false;StringcontinuationToken = null;Consumer<Response<AccessControlChanges>> progressHandler = response ->System.out.println("Received response");PathRemoveAccessControlRecursiveOptionsoptions = newPathRemoveAccessControlRecursiveOptions(pathAccessControlEntries) .setBatchSize(batchSize) .setMaxBatches(maxBatches) .setContinueOnFailure(continueOnFailure) .setContinuationToken(continuationToken) .setProgressHandler(progressHandler); client.removeAccessControlRecursive(pathAccessControlEntries).subscribe( response ->System.out.printf("Successful changed file operations: %d", response.getCounters().getChangedFilesCount()));
For more information, see the Azure Docs
options - PathRemoveAccessControlRecursiveOptionsDataLakeAclChangeFailedException - if a request to storage throws a
DataLakeStorageException or a Exception to wrap the exception with the continuation token.public Mono<PathAccessControl> getAccessControl()
Code Samples
client.getAccessControl().subscribe(
response -> System.out.printf("Access Control List: %s, Group: %s, Owner: %s, Permissions: %s",
PathAccessControlEntry.serializeList(response.getAccessControlList()), response.getGroup(),
response.getOwner(), response.getPermissions()));
For more information, see the Azure Docs
public Mono<com.azure.core.http.rest.Response<PathAccessControl>> getAccessControlWithResponse(boolean userPrincipalNameReturned, DataLakeRequestConditions requestConditions)
Code Samples
DataLakeRequestConditionsrequestConditions = newDataLakeRequestConditions().setLeaseId(leaseId); boolean userPrincipalNameReturned = false; client.getAccessControlWithResponse(userPrincipalNameReturned, requestConditions).subscribe( response ->System.out.printf("Access Control List: %s, Group: %s, Owner: %s, Permissions: %s",PathAccessControlEntry.serializeList(response.getValue().getAccessControlList()), response.getValue().getGroup(), response.getValue().getOwner(), response.getValue().getPermissions()));
For more information, see the Azure Docs
userPrincipalNameReturned - When true, user identity values returned as User Principal Names. When false,
user identity values returned as Azure Active Directory Object IDs. Default value is false.requestConditions - DataLakeRequestConditionspublic String generateUserDelegationSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues, UserDelegationKey userDelegationKey)
DataLakeServiceSasSignatureValues.
See DataLakeServiceSasSignatureValues for more information on how to construct a user delegation SAS.
Code Samples
OffsetDateTimemyExpiryTime =OffsetDateTime.now().plusDays(1);PathSasPermissionmyPermission = newPathSasPermission().setReadPermission(true);DataLakeServiceSasSignatureValuesmyValues = newDataLakeServiceSasSignatureValues(expiryTime, permission) .setStartTime(OffsetDateTime.now()); client.generateUserDelegationSas(values, userDelegationKey);
dataLakeServiceSasSignatureValues - DataLakeServiceSasSignatureValuesuserDelegationKey - A UserDelegationKey object used to sign the SAS values.
See DataLakeServiceAsyncClient.getUserDelegationKey(OffsetDateTime, OffsetDateTime) for more information
on how to get a user delegation key.String representing the SAS query parameters.public String generateUserDelegationSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues, UserDelegationKey userDelegationKey, String accountName, com.azure.core.util.Context context)
DataLakeServiceSasSignatureValues.
See DataLakeServiceSasSignatureValues for more information on how to construct a user delegation SAS.
Code Samples
OffsetDateTimemyExpiryTime =OffsetDateTime.now().plusDays(1);PathSasPermissionmyPermission = newPathSasPermission().setReadPermission(true);DataLakeServiceSasSignatureValuesmyValues = newDataLakeServiceSasSignatureValues(expiryTime, permission) .setStartTime(OffsetDateTime.now()); client.generateUserDelegationSas(values, userDelegationKey, accountName, newContext("key", "value"));
dataLakeServiceSasSignatureValues - DataLakeServiceSasSignatureValuesuserDelegationKey - A UserDelegationKey object used to sign the SAS values.
See DataLakeServiceAsyncClient.getUserDelegationKey(OffsetDateTime, OffsetDateTime) for more information
on how to get a user delegation key.accountName - The account name.context - Additional context that is passed through the code when generating a SAS.String representing the SAS query parameters.public String generateSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues)
DataLakeServiceSasSignatureValues
Note : The client must be authenticated via StorageSharedKeyCredential
See DataLakeServiceSasSignatureValues for more information on how to construct a service SAS.
Code Samples
OffsetDateTimeexpiryTime =OffsetDateTime.now().plusDays(1);PathSasPermissionpermission = newPathSasPermission().setReadPermission(true);DataLakeServiceSasSignatureValuesvalues = newDataLakeServiceSasSignatureValues(expiryTime, permission) .setStartTime(OffsetDateTime.now()); client.generateSas(values); // Client must be authenticated via StorageSharedKeyCredential
dataLakeServiceSasSignatureValues - DataLakeServiceSasSignatureValuesString representing the SAS query parameters.public String generateSas(DataLakeServiceSasSignatureValues dataLakeServiceSasSignatureValues, com.azure.core.util.Context context)
DataLakeServiceSasSignatureValues
Note : The client must be authenticated via StorageSharedKeyCredential
See DataLakeServiceSasSignatureValues for more information on how to construct a service SAS.
Code Samples
OffsetDateTimeexpiryTime =OffsetDateTime.now().plusDays(1);PathSasPermissionpermission = newPathSasPermission().setReadPermission(true);DataLakeServiceSasSignatureValuesvalues = newDataLakeServiceSasSignatureValues(expiryTime, permission) .setStartTime(OffsetDateTime.now()); // Client must be authenticated via StorageSharedKeyCredential client.generateSas(values, newContext("key", "value"));
dataLakeServiceSasSignatureValues - DataLakeServiceSasSignatureValuescontext - Additional context that is passed through the code when generating a SAS.String representing the SAS query parameters.Copyright © 2021 Microsoft Corporation. All rights reserved.