mirror of https://github.com/apache/jclouds.git
JCLOUDS-651: Azure support for conditional copies
This commit is contained in:
parent
cc8af838e8
commit
467f3483bc
|
@ -236,6 +236,19 @@ public class AzureBlobStore extends BaseBlobStore {
|
|||
CopyOptions options) {
|
||||
CopyBlobOptions.Builder azureOptions = CopyBlobOptions.builder();
|
||||
|
||||
if (options.ifMatch() != null) {
|
||||
azureOptions.ifMatch(options.ifMatch());
|
||||
}
|
||||
if (options.ifNoneMatch() != null) {
|
||||
azureOptions.ifNoneMatch(options.ifNoneMatch());
|
||||
}
|
||||
if (options.ifModifiedSince() != null) {
|
||||
azureOptions.ifModifiedSince(options.ifModifiedSince());
|
||||
}
|
||||
if (options.ifUnmodifiedSince() != null) {
|
||||
azureOptions.ifUnmodifiedSince(options.ifUnmodifiedSince());
|
||||
}
|
||||
|
||||
Map<String, String> userMetadata = options.userMetadata();
|
||||
if (userMetadata != null) {
|
||||
azureOptions.overrideUserMetadata(userMetadata);
|
||||
|
|
Loading…
Reference in New Issue