Commit Graph

101 Commits

Author SHA1 Message Date
Casey Carter
21d4e4c5b4
Response<T> stores Nullable<T> (#654)
* Response<T> stores Nullable<T>

Drive-by: Replace `Nullable(const T&)` with `Nullable(T)` to avoid extra copy when initialized with an rvalue.

* Update sdk/core/azure-core/inc/azure/core/response.hpp

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2020-09-29 10:01:00 -07:00
Rick Winter
8b22d3f478
Add Notice and cgmanifest for Core (#687)
* Add Notice and cgmanifest for Core
2020-09-25 10:57:06 -07:00
Rick Winter
d867d7e8ad
Standardize header includes (#685)
* Standardize header includes

Update sources to match guidelines

- `#include ""` when file is relative to the project
- `#include <>` when file is external to the project

Updated tests to mirror how a customer will include the header

- `#include <>`
2020-09-25 10:56:06 -07:00
Victor Vazquez
fdcb150621
Replace select for epoll (#676)
* adding poll instead of select

* Windows support for polling

* fix for define check
2020-09-22 16:24:26 -07:00
Sima Zhu
8fed524b96
Replaced relative link with absolute links and remove locale (#668) 2020-09-17 22:28:36 -07:00
Victor Vazquez
9c9b2c242a
throw transport exception when getting new connection fails (#640)
* throw transport exception when getting new connection fails

* use function instead of macro

* Update function to PascalCase
2020-09-14 13:44:04 -07:00
Azure SDK Bot
9fa18c4174
Increment package version after release of azure-core (#630) 2020-09-09 21:41:10 -07:00
Rick Winter
6b1043fc3f
Update the repo readmes and changelog (#627)
* Update the repo readmes and changelog

* Lowercase beta

* Fix a couple instances of `preview`
2020-09-09 16:55:57 -07:00
Victor Vazquez
db4f318ffa
throw transport error when write error (#623) 2020-09-09 09:26:34 -07:00
Anton Kolesnyk
949d143284
Add doxygen comments (#611) 2020-09-08 11:00:06 -07:00
Ahson Khan
40121dd78a
Fix typo in comment. (#610) 2020-09-04 17:55:15 -07:00
Victor Vazquez
864582b10e
fix the url init in credentials (#599)
* fix the url init in credentials

* do not encode tenantId
2020-09-04 16:13:17 -07:00
Victor Vazquez
0dce4de5a1
throw runtime error if response is shorter than expected or gets closed (#577)
* throw runtime error if response is shorter than expected or gets closed

* trhow Azure::Core::Http::TransportException
2020-09-04 14:51:12 -07:00
Victor Vazquez
9eb4d41bfc
fix format and remove inline (#601) 2020-09-04 14:21:44 -07:00
Victor Vazquez
68ee875fca
Legal/adding notice for libcurl sample (#372)
* Adding libcurl sample usage to Notice
2020-09-04 14:15:35 -07:00
Victor Vazquez
caf705c863
reuse code from tolower char (#583)
* reuse code from tolower char

* c_LocaleInvariant table to do tolower instead of toUpper
2020-09-03 22:46:28 -07:00
Victor Vazquez
38d90d62f3
URL encode and URL Unification (#561)
* Update URL from CORE with uri builder from storage and make Request to take URL to be created
2020-09-02 23:57:03 -07:00
Daniel Jurek
919610f429
Use version.hpp for package versions (#572)
* Add version.txt
* Add doc generation for template
* Add version.hpp parsing and update capabilities to cmake and engsys
* Get-SdkVersion -> Get-PkgVersion
* Move Update-PkgVersion.ps1 under eng/scripts
* Get-PackageVersion -> Get-PkgVersion
* Update paths, params, verbosity
* Couple fixes to output and make use of new SemVer version
* Add fallback support for verison.txt in cases where we still use it to unblock release artifact generation
* Use version information in release pipeline
* Add workaround to generate storage pipeline artifacts
* eng/scripts/
* Write warning
* Haven't released storage-file-shares yet according to releases on GitHub
* Set release date on changelog.md
* Update CHANGELOG.md to indicate this is a test release
* Remove fallback exception for storage
* Re-add Rick's suggestions
* Revert "Remove fallback exception for storage"
2020-09-02 18:53:46 -07:00
Victor Vazquez
b46a544a7b
fix for unit tests for cleanner (#558)
* fix for unit tests for cleanner
2020-08-28 16:17:16 -07:00
Victor Vazquez
6e33262be5
Fix for connection re-use on response error (#548)
* Fix for connection re-use on response error
2020-08-27 22:45:33 -07:00
Victor Vazquez
e782efbb47
perf stress basic struct folder and no op herarchy structure (#390)
* perf stress basic struct folder and no op herarchy structure
2020-08-27 15:27:31 -07:00
Victor Vazquez
1f0da6fcc4
Clean routine (#530)
* adding cleaner routine
2020-08-26 16:51:24 -07:00
Rick Winter
c5438d623b
Restructure the azure inc folder (#514)
* Restructure the azure inc folder
2020-08-25 20:08:34 -07:00
Victor Vazquez
760c645af0
remove double checking mutex (#528) 2020-08-25 15:52:02 -07:00
Victor Vazquez
80f2c2f407
Reuse connection when calling ReadToCount() (#518)
* change EOF for IsEOF function to avoid setting EOF after checking read everytime

* fix setting size to read

* move IsEOF to be private

* Update comment about not moving a connection back to the pool
2020-08-25 10:06:47 -07:00
Victor Vazquez
70eeec5984
Connection pool for keep alive (#500)
* keep-alive. reuse same connection based on host
2020-08-21 15:41:45 -07:00
Victor Vazquez
67abbb3728
fix clang warnings on e2e tests (#495) 2020-08-20 00:07:44 -07:00
Mitch Denny
420a72a9d5
Adjust CI YAML headers (#448) 2020-08-19 13:49:45 +10:00
Victor Vazquez
5cb3a644a4
Thow runtime error if reading fails at FileStream (#481)
* Handle non eof errors on Windows

* trhow on pread error for linux

* adding errno.h to fix macOS
2020-08-18 15:16:47 -07:00
Rick Winter
0b2b688e72
Context improvements (#457)
* Expose the ContextValueType so callers can use it to get at key values.

* Add a const char * overload for construction

* Remove explicit conversion which adds an extra move construction.
const char* implicitly converts to std::string
2020-08-14 13:02:16 -07:00
Victor Vazquez
e031696bce
handle size 0 chunked response (#451) 2020-08-14 09:57:42 -07:00
Victor Vazquez
311902fe25
Fix waitforsocket usage when receiving from socket (#453) 2020-08-14 09:03:54 -07:00
Anton Kolesnyk
cc78776bcb
EnvironmentCredential with ClientSecretCredential support (#442) 2020-08-13 14:28:08 -07:00
Rick Winter
e3394ec3f5
Null out the union for the Undefined type (#444) 2020-08-13 13:11:17 -07:00
Rick Winter
1a32179fec
Create template project (#443)
* Create template project
Support retrieving version from code
2020-08-12 15:08:46 -07:00
Anton Kolesnyk
83174eeec3
Context tweaks (#378) 2020-08-11 17:11:27 -07:00
Rick Winter
8821aadb80
Rename UUID -> Uuid (#436)
* Rename UUID -> Uuid
Update header references
2020-08-11 13:23:14 -07:00
Anton Kolesnyk
302bbf251e
Add authority URL support for ClientSecretCredential (#424) 2020-08-11 11:22:09 -07:00
KarishmaGhiya
3060f7341c
clean up links and add link verification (#410) 2020-08-07 11:55:11 -07:00
Rick Winter
75590c6d96
Add requestId policy implementation (#239)
* Add requestId policy implementation
Includes uuid class
2020-08-06 15:38:53 -07:00
Victor Vazquez
a5c3f10b7d
204 http client support (#408)
* 204 http client support

* adding test for 204 response
2020-08-06 09:00:09 -07:00
Victor Vazquez
eeffd6248f
update context to const ref (#389) 2020-08-04 09:45:13 -07:00
Victor Vazquez
5426cf7a07
Retriable stream (#369)
* Adding retriable_stream
2020-08-03 10:09:12 -07:00
Victor Vazquez
fb729fcf10
Http/download on error (#376)
* Download body on error response codes from request

* Adding test case for downloading body
2020-07-31 22:11:31 -07:00
Anton Kolesnyk
4bf1f62ba8
Core logging infrastructure + logging policy + retry logging (#330) 2020-07-31 16:43:47 -07:00
Victor Vazquez
6e3c3d9acf
avoid making a copy from vectorBody (#364) 2020-07-29 00:50:55 -07:00
Victor Vazquez
9563d9dd3c
Http/making upload chunk size overridle with Request option (#342)
* adding http request option to customize the upload chunk size for bodyStream
2020-07-29 00:16:36 -07:00
Victor Vazquez
d9e39a0e6e
Http/moving DownloadViaStream option to request (#362)
* move DownloadViaStream option to Request

* Fix credentials request

* Fix unit tests

* use constructor instead of set method

* fix tests
2020-07-28 14:10:26 -07:00
Victor Vazquez
ef0c530ee0
Pipeline/download content on pipeline to let Retry policy to handle read/get issues (#323)
make upload chunk size custumizable
2020-07-27 11:40:40 -07:00
Kan Tang
b0b348e9cb
Resolved API review comments and added FileClient and DirectoryClient… (#308)
* Added API to extract raw response.

* Resolved API review comments and added FileClient and DirectoryClient for DataLake.

* Added some blob/adls Gen2 interop functionality.

* Resolved some issues/comments

* Adds more interop, support retry and concurrent upload/download.

* Added support for Azure Core's token credential to support bearer token credential.

* Added integration on RawResponse/Response<T> and resolved some test issues.

* Added validation for Client secret authentication.

* Resolved some review comments and resolved CI issue.

* Resolved a UT failure in Azure Core.

* Resolved some further comments.
2020-07-22 16:03:44 +08:00