remove IfUnmodifiedSince from SetDataLakeFileSystemMetadataOptions (#2383)

* remove IfUnmodifiedSince from SetDataLakeFileSystemMetadataOptions

* cl
This commit is contained in:
JinmingHu 2021-06-03 09:36:38 +08:00 committed by GitHub
parent 06cc8980f4
commit fe7b88194a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View File

@ -6,6 +6,10 @@
- Renamed `ContentLength` in `FlushFileResult` to `FileSize`.
### Other Changes and Improvements
- Removed `IfUnmodifiedSince` from access conditions of setting filesystem metadata operation.
## 12.0.0-beta.11 (2021-05-19)
### New Features

View File

@ -141,7 +141,14 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
/**
* Specify the access condition for the file system.
*/
FileSystemAccessConditions AccessConditions;
struct : public LeaseAccessConditions
{
/**
* @brief Specify this header to perform the operation only if the resource has been
* modified since the specified time. This timestamp will be truncated to second.
*/
Azure::Nullable<Azure::DateTime> IfModifiedSince;
} AccessConditions;
};
/**

View File

@ -251,9 +251,6 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
{
Blobs::SetBlobContainerMetadataOptions blobOptions;
blobOptions.AccessConditions.IfModifiedSince = options.AccessConditions.IfModifiedSince;
AZURE_ASSERT_MSG(
!options.AccessConditions.IfUnmodifiedSince.HasValue(),
"This operation doesn't support If-Unmodified-Since condition");
auto result = m_blobContainerClient.SetMetadata(std::move(metadata), blobOptions, context);
Models::SetFileSystemMetadataResult ret;