Releases: Azure/azure-sdk-for-cpp
Releases · Azure/azure-sdk-for-cpp
azure-core_1.0.0-beta.8
1.0.0-beta.8 (2021-04-07)
New Features
- Added
Azure::Core::Url::GetScheme()
. - Added
Azure::Core::Context::TryGetValue()
. - Added
Azure::Core::Context::GetDeadline()
. - Added
Azure::Core::Credentials::TokenCredentialOptions
. - Added useful fields to the
Azure::Core::RequestFailedException
class such asStatusCode
,ReasonPhrase
, and theRawResponse
, for better diagnosis of errors.
Breaking Changes
- Simplified the
Response<T>
API surface to expose two public fields with direct access:T Value
and aunique_ptr
to anAzure::Core::Http::RawResponse
. - Renamed
Azure::Nullable<T>::GetValue()
toValue()
. - Removed from
Azure::Core::Http::Request
:SetUploadChunkSize()
.GetHTTPMessagePreBody()
.GetUploadChunkSize()
.GetHeadersAsString()
.
- Changes to
Azure::Core::Http::RawResponse
:- Removed
SetHeader(std::string const& header)
- Removed
SetHeader(uint8_t const* const first, uint8_t const* const last)
. - Removed
GetMajorVersion()
. - Removed
GetMinorVersion()
. - Renamed
GetBodyStream()
toExtractBodyStream()
.
- Removed
- Changes to
Azure::Core::Context
:- Removed
Get()
andHasKey()
in favor of a new methodTryGetValue()
. - Changed input parameter type of
WithDeadline()
toAzure::DateTime
.
- Removed
- Removed
Azure::Core::PackageVersion
. - Removed from
Azure::Core::Http::Policies
namespace:HttpPolicyOrder
,TransportPolicy
,RetryPolicy
,RequestIdPolicy
,TelemetryPolicy
,BearerTokenAuthenticationPolicy
,LogPolicy
. - Removed
AppendQueryParameters()
,GetUrlWithoutQuery()
andGetUrlAuthorityWithScheme()
fromAzure::Core::Url
. - Changed the
Azure::Core::Http::HttpMethod
regular enum into an extensible enum class and removed theHttpMethodToString()
helper method. - Introduced
Azure::Core::Context::Key
class which takes place ofstd::string
used forAzure::Core::Context
keys previously. - Changed the casing of
SSL
in API names toSsl
:- Renamed type
Azure::Core::Http::CurlTransportSSLOptions
toCurlTransportSslOptions
. - Renamed member
Azure::Core::Http::CurlTransportOptions::SSLOptions
toSslOptions
. - Renamed member
Azure::Core::Http::CurlTransportOptions::SSLVerifyPeer
toSslVerifyPeer
.
- Renamed type
Other changes and Improvements
- Moved
Azure::Core::Http::Request
to its own header file fromhttp.hpp
toinc/azure/core/http/raw_response.hpp
. - Moved
Azure::Core::Http::HttpStatusCode
to its own header file fromhttp.hpp
toinc/azure/core/http/http_status_code.hpp
.
azure-storage-files-shares_12.0.0-beta.9
12.0.0-beta.9 (2021-03-23)
New Features
- Added support for telemetry options.
- Added
Azure::Storage::Files::Shares::PackageVersion
.
Breaking Changes
- Changed the return type of
StartCopy
API from aResponse<T>
to the particularOperation<T>
type calledStartFileCopyOperation
directly. - String conversion functions of extensible enums were renamed from
Get()
toToString()
. - Changed the return types of the following APIs:
ShareClient::GetAccessPolicy
now returnsShareAccessPolicy
.ShareClient::GetPermission
now returnsstd::string
.ShareClient::AbortCopy
now returnsAbortFileCopyResult
.
- Renamed
GetShareStatisticsResult
toShareStatistics
. - Renamed
GetSharePropertiesResult
toShareProperties
. - Renamed
GetShareDirectoryPropertiesResult
toDirectoryProperties
. - Renamed
GetShareFilePropertiesResult
toFileProperties
- Renamed
GetServicePropertiesResult
toShareServiceProperties
. - Removed
Share
from the names of return types and option types. - Renamed
AbortCopyFileOptions
toAbortFileCopyOptions
. - Removed
RequestId
from the return types. - Changed
BodyStream
parameter ofUploadRange
function from pointer to reference. - Removed
PreviousShareSnapshot
fromGetShareFileRangeListOptions
, useShareFileClient::GetRangeListDiff
instead. - Renamed
ShareAccessTier
toAccessTier
. - Renamed
ShareRetentionPolicy
toRetentionPolicy
. - Renamed
ShareProtocolSettings
toProtocolSettings
. - Renamed
CopyStatusType
toCopyStatus
- Removed
FileRangeWriteType
,ShareFileRangeList
,FileRangeWriteFromUrlType
,FileRange
,ClearRange
,SharePermission
,LeaseAction
andShareStats
. - Renamed
LeaseDurationType
toLeaseDuration
,LeaseStateType
toLeaseState
andLeaseStatusType
toLeaseStatus
. - Renamed
ListSharesIncludeType
toListSharesIncludeFlags
. - Renamed
DeleteSnapshotsOptionType
toDeleteSnapshotsOption
. - Renamed
PermissionCopyModeType
toPermissionCopyMode
.
azure-storage-files-datalake_12.0.0-beta.9
12.0.0-beta.9 (2021-03-23)
New Features
- Added support for telemetry options.
- Added
Azure::Storage::Files::DataLake::PackageVersion
.
Breaking Changes
- DataLake client constructors won't automatically convert blob url to dfs url anymore.
- String conversion functions of extensible enums were renamed from
Get()
toToString()
. - Moved
SecondaryHostForRetryReads
out of retry options, now it's underDataLakeClientOptions
. - Changed the return types of the following APIs:
DataLakeServiceClient::GetUserDelegationKey
now returnsUserDelegationKey
.DataLakeFileSystemClient::GetProperties
now returnsFileSystemProperties
.DataLakeFileSystemClient::GetAccessPolicy
now returnsFileSystemAccessPolicy
.DataLakePathClient::GetProperties
now returnsPathProperties
.DataLakePathClient::GetAccessControlList
now returnsPathAccessControlList
.
- Removed
GetUserDelegationKeyResult
. - Removed
DataLake
from the names of return types and option types. - Removed
RequestId
from the return types. - Changed
BodyStream
parameter ofAppend
function from pointer to reference. - Removed
PathRenameMode
,PathGetPropertiesAction
,PathSetAccessControlRecursiveMode
,FileSystemResourceType
,PathExpiryOptions
andFileSystemResourceType
. - Removed
IsAccessTierInferred
andAccessTierChangedOn
fromPathProperties
. - Renamed
LeaseDurationType
toLeaseDuration
,LeaseStateType
toLeaseState
andLeaseStatusType
toLeaseStatus
.
azure-storage-common_12.0.0-beta.9
12.0.0-beta.9 (2021-03-23)
New Features
- Added
Azure::Storage::Common::PackageVersion
.
azure-storage-blobs_12.0.0-beta.9
12.0.0-beta.9 (2021-03-23)
New Features
- Added support for telemetry options.
- Added
Azure::Storage::Blobs::PackageVersion
. - Added
ShareFileClient::GetRangeListDiff
.
Breaking Changes
- Changed the return type of
StartCopyFromUri
andStartCopyIncremental
API from aResponse<T>
to the particularOperation<T>
type calledStartBlobCopyOperation
directly. - String conversion functions of extensible enums were renamed from
Get()
toToString()
. - Moved
SecondaryHostForRetryReads
out of retry options, now it's underBlobClientOptions
. - Changed the return types of the following APIs:
BlobServiceClient::DeleteBlobContainer
now returnsDeleteBlobContainerResult
.BlobServiceClient::GetUserDelegationKey
now returnsUserDelegationKey
.BlobServiceClient::GetProperties
now returnsBlobServiceProperties
.BlobServiceClient::GetAccountInfo
now returnsAccountInfo
.BlobServiceClient::GetStatistics
now returnsServiceStatistics
.BlobContainerClient::DeleteBlob
now returnsDeleteBlobResult
.BlobContainerClient::GetProperties
now returnsBlobContainerProperties
.BlobContainerClient::GetAccessPolicy
now returnsBlobContainerAccessPolicy
.BlobClient::GetProperties
now returnsBlobProperties
.BlobClinet::GetTags
now returnsstd::map<std::string, std::string>
.BlobClient::AbortCopyFromUri
now returnsAbortBlobCopyFromUriResult
.PageBlobClient::UploadPages
now returnsUploadPagesResult
.PageBlobClient::UploadPagesFromUri
now returnsUploadPagesFromUriResult
.PageBlobClient::ClearPages
now returnsClearPagesResult
.PageBlobClient::GetPageRanges
,PageBlobClient::GetPageRangesDiff
andPageBlobClient::GetManagedDiskPageRangesDiff
now returnGetPageRangesResult
.
- Renamed some options:
- Renamed
UploadPageBlobPagesOptions
toUploadPagesOptions
. - Renamed
UploadPageBlobPagesFromUriOptions
toUploadPagesFromUriOptions
. - Renamed
ClearPageBlobPagesOptions
toClearPagesOptions
. - Renamed
GetPageBlobPageRangesOptions
toGetPageRangesOptions
. - Renamed
StartCopyBlobFromUriOptions
toStartBlobCopyFromUriOptions
. - Renamed
StartCopyPageBlobIncrementalOptions
toStartBlobCopyIncrementalOptions
.
- Renamed
- Removed
Blob
from the name of lease options and return types, likeAcquireBlobLeaseOptions
was renamed toAcquireLeaseOptions
. - Removed
Blob
prefix from the name of structsBlobGeoReplication
,BlobLeaseStatus
,BlobLeaseState
,BlobLeaseDurationType
,BlobAnalyticsLogging
,BlobMetrics
,BlobCorsRule
,BlobRetentionPolicy
,BlobStaticWebsite
,BlobArchiveStatus
andBlobGeoReplictionStatus
. - Removed
RequestId
from return types. - Changed
BodyStream
parameter ofUploadBlob
,Upload
,UploadPages
andAppendBlock
functions from pointer to reference. - Renamed access tier members in return types and options from
Tier
toAccessTier
. - Renamed
BlockListTypeOption
toBlockListType
.
azure-identity_1.0.0-beta.4
1.0.0-beta.4 (2021-03-11)
New Features
- Added
Azure::Identity::PackageVersion
.
Breaking Changes
- Removed
TransportPolicyOptions
fromClientSecretCredentialOptions
. Updated the options to derive fromClientOptions
.
azure-core_1.0.0-beta.7
1.0.0-beta.7 (2021-03-11)
New Features
- Added
HttpPolicyOrder
for adding custom Http policies to SDK clients. - Added
Azure::Core::Operation<T>::GetRawResponse()
. - Added
Azure::Core::PackageVersion
. - Added support for logging to console when
AZURE_LOG_LEVEL
environment variable is set.
Breaking Changes
- Changes to
Azure::Core
namespace:- Removed
Response<void>
,ValueBase
, andContextValue
. - Removed
Context::operator[]
,Get()
introduced instead. - Renamed
Uuid::GetUuidString()
toToString()
. - Changed return type of
Operation<T>::Poll()
fromstd::unique_ptr<RawResponse>
toRawResponse const&
. - Moved
GetApplicationContext()
toContext::GetApplicationContext()
- Moved the
Base64Encode()
andBase64Decode()
functions to be static members of aConvert
class. - Moved
Logging
namespace entities toDiagnostics::Logger
class. - Moved
AccessToken
,TokenCredential
, andAuthenticationException
toCredentials
namespace. - Moved
Context
to be the last parameter for consistency, instead of first in various azure-core types. For example:BodyStream::Read(uint8_t* buffer, int64_t count, Context const& context)
BodyStream::ReadToEnd(BodyStream& body, Context const& context)
HttpPolicy::Send(Request& request, NextHttpPolicy policy, Context const& context)
Operation<T>::PollUntilDone(std::chrono::milliseconds period, Context& context)
TokenCredential::GetToken(Http::TokenRequestOptions const& tokenRequestOptions, Context const& context)
- Moved from
Azure::Core
toAzure
namespace:Response<T>
,ETag
, andNullable<T>
.- Split
RequestConditions
intoMatchConditions
andModifiedConditions
. - Renamed
DateTime::GetString()
toToString()
, and removedDateTime::GetRfc3339String()
.
- Removed
- Changes to
Azure::Core::Http
namespace:- Removed
HttpPipeline
,TransportKind
,NullBodyStream
, andLimitBodyStream
. - Removed
Request::StartTry()
. - Removed
InvalidHeaderException
and throwstd::invalid_argument
if the user provides invalid header arguments. - Renamed
CurlTransportSSLOptions::NoRevoke
toEnableCertificateRevocationListCheck
. - Renamed
Range
toHttpRange
. - Renamed
TokenRequestOptions
toTokenRequestContext
, and moved it toAzure::Core::Credentials
namespace. - Moved
Url
toAzure::Core
namespace. Request
andRawResponse
:- Renamed
AddHeader()
toSetHeader()
. - Introduced
Azure::Core::CaseInsensitiveMap
which is now used to store headers.
- Renamed
BodyStream
and the types that derive from it:- Moved to
Azure::Core::IO
namespace. - Changed the static methods
BodyStream::ReadToCount()
andBodyStream::ReadToEnd()
into instance methods. - Changed the constructor of
FileBodyStream
to accept a file name directly and take ownership of opening/closing the file, instead of accepting a file descriptor, offset, and length.
- Moved to
- HTTP policies and their options:
- Moved to
Policies
namespace. - Renamed
TransportPolicyOptions
toTransportOptions
. - Renamed
TelemetryPolicyOptions
toTelemetryOptions
. - Changed type of
RetryOptions::StatusCodes
fromstd::vector
tostd::set
. - Renamed
LoggingPolicy
toLogPolicy
, and introducedLogOptions
as mandatory parameter for the constructor.
- Moved to
- Removed
- Moved header files:
- Renamed
azure/core/credentials.hpp
toazure/core/credentials/credentials.hpp
. - Renamed
azure/core/logger.hpp
toazure/core/diagnostics/logger.hpp
. - Renamed
azure/core/http/body_stream.hpp
toazure/core/io/body_stream.hpp
. - Renamed
azure/core/http/policy.hpp
toazure/core/http/policies/policy.hpp
. - Renamed
azure/core/http/curl/curl.hpp
toazure/core/http/curl_transport.hpp
. - Renamed
azure/core/http/winhttp/win_http_client.hpp
toazure/core/http/win_http_transport.hpp
.
- Renamed
Bug Fixes
- Make sure to rewind the body stream at the start of each request retry attempt, including the first.
- Connection pool resets when all connections are closed.
- Fix
Azure::Context
to supportstd::unique_ptr
. - Throw
std::runtime_error
fromResponse<T>::GetRawResponse()
if the response was already extracted.
azure-storage-files-shares_12.0.0-beta.8
12.0.0-beta.8 (2021-02-12)
New Features
- Changed type of
FileAttributes
to extensible enum.
Breaking Changes
ListSharesSinglePageOptions::ListSharesInclude
was renamed toListSharesSinglePageOptions::ListSharesIncludeFlags
.DeleteShareOptions::IncludeSnapshots
was renamed toDeleteShareOptions::DeleteSnapshots
.FileShareSmbProperties
was renamed toFileSmbProperties
.DownloadShareFileOptions::GetRangeContentMd5
was renamed toDownloadShareFileOptions::RangeHashAlgorithm
.UploadFileRangeFromUriOptions::SourceContentHash
was renamed toUploadFileRangeFromUriOptions::TransactionalContentHash
.GetShareFileRangeListOptions::PrevShareSnapshot
was renamed toGetShareFileRangeListOptions::PreviousShareSnapshot
.- Refined
CreateShareDirectoryResult
andCreateShareFileResult
. - Removed
DownloadShareFileDetails::AcceptRanges
. - Removed
GetShareFilePropertiesResult::FileType
. - Added
RequestId
inForceCloseShareDirectoryHandleResult
. - Removed
TransactionalContentHash
fromClearShareFileRangeResult
. - Changed API signature of
ShareFileClient::UploadRangeFromUri
. - Renamed
ForceCloseAllHandles
toForceCloseAllHandlesSinglePage
and all related structs. - Made all
ContinuationToken
in return types nullable. - Renamed
ShareFileHttpHeaders
toFileHttpHeaders
. - Renamed
ShareGetPropertiesResult::AccessTierChangeTime
toAccessTierChangedOn
. - Renamed
ShareGetStatisticsResult::ShareUsageBytes
toShareUsageInBytes
. - Renamed
ShareGetPermissionResult::Permission
toFilePermission
. - Grouped all file SMB properties into a struct and refined the APIs that return these properties.
- Renamed
numberOfHandlesClosed
toNumberOfHandlesClosed
andnumberOfHandlesFailedToClose
toNumberOfHandlesFailedToClose
. - Renamed
FileGetRangeListResult::FileContentLength
toFileSize
. - Renamed
StorageServiceProperties
toFileServiceProperties
. - Removed
LeaseTime
in results returned by lease operations. Also removedLeaseId
inShareBreakLeaseResult
. - Moved
Azure::Core::Context
out of options bag of each API, and make it the last optional parameter.
azure-storage-files-datalake_12.0.0-beta.8
12.0.0-beta.8 (2021-02-12)
Breaking Changes
- Removed
DataLakeFileSystemClient::GetPathClient
. - Renamed
SetDataLakePathAccessControlRecursiveListSinglePageOptions::MaxEntries
toPageSizeHint
. GetDataLakePathPropertiesResult::ServerEncrypted
was renamed toIsServerEncrypted
.GetDataLakePathPropertiesResult::AccessTierInferred
was renamed toIsAccessTierInferred
.HttpHeaders
ofDownloadDataLakeFileResult
andDownloadDataLakeFileToResult
was moved intoDetails
, to align with Blob service.- Removed
BreakDataLakeLeaseResult::LeaseTime
. - Renamed APIs for modifying access list recursively. Used to be with pattern
AccessControlRecursiveList
, now is with patternAccessControlListRecursive
. - Refined options for
ScheduleDeletion
, to be consistent with other APIs. - Renamed
ContentLength
inPathItem
toFileSize
. - In
PathSetAccessControlRecursiveResult
,DirectoriesSuccessful
is renamed toNumberOfSuccessfulDirectories
,FilesSuccessful
is renamed toNumberOfSuccessfulFiles
,FailureCount
is renamed toNumberOfFailures
. - Moved
Azure::Core::Context
out of options bag of each API, and make it the last optional parameter.
azure-storage-common_12.0.0-beta.8
12.0.0-beta.8 (2021-02-12)
Breaking Changes
- Removed the
Azure::Storage::Md5
class fromcrypt.hpp
. Use the type fromAzure::Core::Cryptography
namespace instead, fromazure/core/cryptography/hash.hpp
. - Renamed
Crc64
toCrc64Hash
and change it to derive from theAzure::Core::Cryptography::Hash
class.