-
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.
Addressed comments for immutable storage with versioning (#22388)
- Loading branch information
1 parent
e79d228
commit a5d3f39
Showing
11 changed files
with
382 additions
and
44 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...c/main/java/com/azure/storage/blob/implementation/models/InternalBlobLegalHoldResult.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.implementation.models; | ||
|
||
import com.azure.storage.blob.models.BlobLegalHoldResult; | ||
|
||
/** | ||
* The blob legal hold result. | ||
*/ | ||
public class InternalBlobLegalHoldResult implements BlobLegalHoldResult { | ||
|
||
private final boolean hasLegalHold; | ||
|
||
/** | ||
* Creates a new BlobLegalHoldResult | ||
* @param hasLegalHold whether or not a legal hold is enabled on the blob. | ||
*/ | ||
public InternalBlobLegalHoldResult(boolean hasLegalHold) { | ||
this.hasLegalHold = hasLegalHold; | ||
} | ||
|
||
/** | ||
* @return whether or not a legal hold is enabled on the blob. | ||
*/ | ||
public boolean hasLegalHold() { | ||
return hasLegalHold; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rc/main/java/com/azure/storage/blob/implementation/util/BlobRequestConditionProperty.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,13 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.storage.blob.implementation.util; | ||
|
||
public enum BlobRequestConditionProperty { | ||
LEASE_ID, | ||
TAGS_CONDITIONS, | ||
IF_MODIFIED_SINCE, | ||
IF_UNMODIFIED_SINCE, | ||
IF_MATCH, | ||
IF_NONE_MATCH; | ||
} |
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
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
Oops, something went wrong.