Commit Graph

53 Commits

Author SHA1 Message Date
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
JinmingHu
4d19f3b078
Integrate Response<T> into Storage Blobs Service (#327)
* Revert changes to storage code

* adapt to breaking changes in Azure::Core, Response->RawResponse, pipeline clone returns unique_ptr

* just to make build pass, remove this commit after https://github.com/Azure/azure-sdk-for-cpp/pull/326 is merged

* adapt to Response<T>

* concurrent upload/download also return Response<T>

* add BlobInfo and BlobContainerInfo
2020-07-21 10:31:00 +08:00
Daniel Jurek
1a9918c4db
add CMakeLists.txt and eng to CI and PR triggers (#314) 2020-07-20 10:09:50 -07:00
Anton Kolesnyk
b259db5a3b
Telemetry policy (#264) 2020-07-17 17:03:47 -07:00
Victor Vazquez
6122529bac
Core/response t (#316)
* rename http response to RawResponse

* Adding Response T
2020-07-17 14:43:17 -07:00
Rick Winter
bbbaa06b5c
Exception objects should be thrown and not the pointer to the exception object. (#322)
Exception objects should be thrown and not the pointer to the exception object. 
   https://azure.github.io/azure-sdk/cpp_design.html#c-exceptions
The pattern for the catch expects a reference to the exception and not the pointer.

Example:
try{
   throw Myxception();
}
catch (MyException const& e) {  //process  }
2020-07-16 15:44:34 -07:00
Victor Vazquez
12b389a579
Http/throw on read error (#274)
* throw exception on Read from wire Error instead of returning -1

* throw exception if read from socket is not CURLE_OK

* missing header for Win

* fix header on windows

* Add more description to transport errors
2020-07-15 10:27:38 -07:00
Victor Vazquez
0eacb230cb
Http/fix reading more than content (#311)
* Fix reading more data than content length

* fix for head request
2020-07-14 16:38:20 -07:00
Victor Vazquez
c0faea5f90
Http transport adapter - read all chunks from server until chunkSize is zero (#273)
* fix for getting all chunks from a chunked response until chuksize is zero

* fix for pulling from wire when inner buffer is empty
2020-07-13 23:00:23 -07:00
Victor Vazquez
05c91d6002
Http/missing change for to lower (#279)
* throw exception on Read from wire Error instead of returning -1

* missing change for tolower
2020-07-13 22:02:32 -07:00
Victor Vazquez
57bdc0f6d6
Adding toLower for header names and unit testd (#270) 2020-07-13 17:21:08 -07:00
Victor Vazquez
59d7ebabe1
Http/fix gcc 8 build (#275)
* throw exception on Read from wire Error instead of returning -1
2020-07-13 17:20:44 -07:00
Victor Vazquez
c699888daa
Make sure Read will always start on body start. (#256)
* make stream use int64_t instead of uint64_t
2020-07-10 23:02:18 -07:00
Anton Kolesnyk
43dcc6c495
Retry policy (#241) 2020-07-10 00:23:40 -07:00
Billy O'Neal
f6defdf25a
Add tests and locale invariant string equal function in support of the 'extensible enum' guideline. (#197)
* Add locale invariant string equal function in support of the 'extensible enum' guideline.

* Resolve gcc narrowing warning.

* Fix case flipping table to go the correct direction 😳

* organize tests and add one test for invariant locale compare as exaple

* Add more test cases.

* Move to Details namespace.
2020-07-08 22:34:29 -07:00
JinmingHu
90d4ee3203
Add constructor for HttpPipeline which accepts rvalue (#165) 2020-07-08 09:18:33 -07:00
Victor Vazquez
9fb4119ccb
Memory Stream - File Stream (win/lin) - HTTP Request / Response - Updates (#236)
* make stream use int64_t instead of uint64_t
2020-07-03 22:22:16 -07:00
Chidozie Ononiwu
c22e4f8386
Clean up azure-sdk-tools and reduce dependency on external resources (#228) 2020-07-02 14:20:12 -07:00
Victor Vazquez
d58cbad14d
Unique ptr for body stream (#214)
* change bodyStream to unique ptr
2020-06-29 10:33:31 -07:00
Anton Kolesnyk
ad2e63afe1
Remake ClientSecretCredential (#212) 2020-06-27 15:27:11 -07:00
Daniel Jurek
0cfcdca725
Unified Pipelines for storage (#184)
* Add ci.yml for storage

* OSVmImage

* Use correct name for storage

* Update ci.ymls

* Documentation generation

* Fix tabbing

* More tabbing

* Use correct service directory for storage ci.yml

* Add docs assets

* Use cpp for dropdown generation

* Use cmake to generate documentation

* Use CMake to generate doxygen docs

* BuildArgs -> GenerateArgs

* Correct template path

* More CURL options

* Install curl to satisfy minimum build requirements

* use dependency variable name

* Add VCPKG_DEFAULT_TRIPLET

* Always generate documentaion when -DBUILD_DOCUMENTATION=YES

* Build docs at top level

* Change variable names, simplify cmake-build.yml

* -DBUILD_DOCUMENTATION

* Try using MathJax for formula rendering instead of Latex

* Add version.txt for storage

* artifact.Name -> artifact.Path

* Build docs by target

* Remove Doxyfile

* Remove Doxyfile.template

* Remove generate_docs.py, we are using cmake

* Pass CtestRegex to archetype-sdk-client job template)
2020-06-26 10:42:48 -07:00
Rick Winter
078cbc2205
Fix for non-msvc std lib (#222) 2020-06-26 09:45:29 -07:00
Rick Winter
692cab5651
Nullable type (#204)
* Nullable type
Add Nullable type and tests
2020-06-25 13:58:27 -07:00
Victor Vazquez
e1e88b3984
Support for requests with no body (#202)
* avoid fail if no body in request

* request with no body

* fix for win86

* Update sdk/samples/http_client/curl/src/azure_core_with_curl_bodyBuffer.cpp

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

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2020-06-22 18:38:35 -07:00
Victor Vazquez
90345e090c
fix the number of bytes that are read by stream (#203) 2020-06-22 18:24:09 -07:00
Victor Vazquez
e5e063f88c
support no path request (#201) 2020-06-22 18:23:42 -07:00
Victor Vazquez
614fa143ba
adding host header automatically if missing for libcurl transport (#200) 2020-06-22 18:23:30 -07:00
Victor Vazquez
90e57362bf
Victor/http/add streams (#183)
* Adding body Stream for HTTP
* Adding libcurl session with custom send and receive
2020-06-18 21:43:00 -07:00
Kan Tang
6e01498038
Adding test framework for azure storage. (#152) 2020-06-09 02:45:11 -07:00
JinmingHu
11f842bfbe
Add support for HTTP methods to unblock storage team (#158)
* Support all HTTP methods

* Add const qualifier

* fix compiler error on some platforms
2020-06-04 09:44:40 -07:00
JinmingHu
502d3f15a9
Use move to initialize the body buffer (#150) 2020-06-03 10:13:26 -07:00
Rick Winter
602f75744a
HttpPipeline and HttpPolicies (#63)
* HttpPipeline
2020-05-29 10:57:10 -07:00
Kan Tang
0b1eb288db
Use move to initialize the body buffer (#148) 2020-05-28 09:18:54 -07:00
Victor Vazquez
c19f9e2b05
Adding writing response from curl to buffer (#64)
* write headers and response code to Response
2020-05-20 14:48:26 -07:00
Rick Winter
5350d1dbf8
Fix namespace case and file formating (#98) 2020-05-12 11:04:59 -07:00
Rick Winter
6b7b428e71
Fix casing on enum (#94)
* Fix casing on enum
* Update tests
2020-05-08 10:49:30 -07:00
Anton Kolesnyk
55deee50ec
Move scopes to ClientSecret credential, fix multi threading, 'CoW' token that is shared between copies (#62) 2020-04-06 11:08:53 -07:00
Victor Vazquez
61b8cdc3d4
Adding curl and nohttp transport options (#54)
* http client
2020-04-02 11:05:26 -07:00
Anton Kolesnyk
9631e5978a
Add credential classes (#42) 2020-04-01 15:51:24 -07:00
Danny Amirault
a6bb11ed01
Remove dependancy on azure-sdk-build-tools (#58) 2020-04-01 09:01:40 -07:00
Danny Amirault
00b8ba52b3
Auto update package versions upon release generation (#52)
* Auto update package versions upon release generation
- Adapted from .Net package incrementing
 - https://github.com/Azure/azure-sdk-for-net/blob/master/eng/Update-PkgVersion.ps1
- Seed Changelog file to allow updates to happen

* Spelling fix
2020-03-31 09:58:06 -07:00
Victor Vazquez
9f1493af27
Adding http request (#41)
* adding gtest framework

* http request
2020-03-26 11:38:07 -07:00
Danny Amirault
2708ca8f11
Specify artifact path in YML to locate artifact files correctly (#45)
* Specify artifact path in YML to locate artifact files correctly

* Remove doc generation for now
2020-03-25 12:41:15 -07:00
Victor Vazquez
7971d525df
Victor/core/basic structure for cmake to work (#37)
* moving files and updating cmake to make it compilable
2020-03-18 15:39:36 -07:00
Danny Amirault
5dff0dad92
Initial CI pipeline work (#36)
* Replicate C pipeline files to CPP

* Adjust to build CPP

* Remove pipeline pieces copied from C that are not needed for C++ build.

* Remove extraneous debugging step.
2020-03-18 13:32:30 -07:00
Victor Vazquez
010038a342
moving files and updating cmake to make it compilable (#35)
* moving files and updating cmake to make it compilable

* Adding http namespace
2020-03-18 10:58:28 -07:00
Rick Winter
5ee2b47171
Add simple contract implementation 2020-03-17 11:44:40 -07:00
Rick Winter
5fb8226875
Core namespace casing (#12) 2020-02-25 09:01:21 -08:00
Anton Kolesnyk
67a110a055 End namespace comment 2020-02-24 17:53:51 -08:00