Make IsServerEncrypted non-nullable. (#1281)

Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/1202

# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests).

- [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [x] Doxygen docs
- [x] Unit tests
- [x] No unwanted commits/changes
- [x] Descriptive title/description
  - [x] PR is single purpose
  - [x] Related issue listed
- [x] Comments in source
- [x] No typos
- [x] Update changelog
- [x] Not work-in-progress
- [x] External references or docs updated
- [x] Self review of PR done
- [x] Any breaking changes?
This commit is contained in:
Kan Tang 2021-01-08 12:10:44 +08:00 committed by GitHub
parent 280bad5b42
commit 6b6df8fbdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -20,6 +20,7 @@
- Removed `FileRange` and `ClearRange`, they are now represented with `Azure::Core::Http::Range`.
- Removed `Offset` and `Length` pair in options. They are now represented with `Azure::Core::Http::Range`.
- Replace scoped enums that don't support bitwise operations with extensible enum.
- `IsServerEncrypted` member in `DownloadFileToResult`, `UploadFileFromResult`, `FileDownloadResult` and `FileGetPropertiesResult` are no longer nullable.
## 12.0.0-beta.5 (2020-11-13)

View File

@ -782,7 +782,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
Azure::Core::Nullable<std::string> CopyProgress;
Azure::Core::Nullable<std::string> CopySource;
Azure::Core::Nullable<CopyStatusType> CopyStatus;
Azure::Core::Nullable<bool> IsServerEncrypted;
bool IsServerEncrypted = bool();
std::string FileAttributes;
Core::DateTime FileCreatedOn;
Core::DateTime FileLastWrittenOn;
@ -809,7 +809,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
Azure::Core::Nullable<std::string> CopyProgress;
Azure::Core::Nullable<std::string> CopySource;
Azure::Core::Nullable<CopyStatusType> CopyStatus;
Azure::Core::Nullable<bool> IsServerEncrypted;
bool IsServerEncrypted = bool();
std::string FileAttributes;
Core::DateTime FileCreatedOn;
Core::DateTime FileLastWrittenOn;

View File

@ -118,7 +118,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { names
int64_t ContentLength = 0;
ShareFileHttpHeaders HttpHeaders;
Storage::Metadata Metadata;
Azure::Core::Nullable<bool> IsServerEncrypted;
bool IsServerEncrypted = false;
};
struct ForceCloseFileHandleResult
@ -127,7 +127,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { names
struct UploadFileFromResult
{
Azure::Core::Nullable<bool> IsServerEncrypted;
bool IsServerEncrypted = false;
};
}}}}} // namespace Azure::Storage::Files::Shares::Models