Commit Graph

43 Commits

Author SHA1 Message Date
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
Kan Tang
1564e5106e
Resolved comments and rewrote StorageError. (#199)
* Resolved comments and rewrote StorageError.

* Changed Upn name, removed ';', refined error output, moved local function to unamed namespace.
2020-06-24 08:54:06 -07:00
JinmingHu
f74011a2e0
Add Unittest for Blob Service, other fixes and enhancements found during validation (#181)
* Give AccessTier a default value to eliminate warning

* Add blob clients conversion functions

* Fix bug in shared key authentication

* Add GetUri().

* make lease-status and lease-state optional

* Check duplicates in metadata

* add tests for blob service

* AppendBlocb doesn't support AccessTier

* fix bug in "RangeFromXml"

* redefine PageRange in convenience layer

* suppress warnings from gtest

* add API AppendBlockFromUri

* connection string parsing

* Add memorystream

* Rename connection string constants

* Adapt to new bodystream, this will be rewritten when bosystream is changed to unique_ptr

* fix compiler errors

* Change MemoryStream interface

* samples framework

* Add newline at the end of file

* fix compiler error
2020-06-24 01:17:09 -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
Kan Tang
a8a200ef26
Added convenience layer for datalake service (#178) 2020-06-20 19:55:41 -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
JinmingHu
5758bedc5c
Export symbols when building dll (#177) 2020-06-16 13:28:37 +08:00
JinmingHu
4366159c50
Add more APIs in storage sdk (#169)
* Add xml serializer/deserializer

* Add blob service client, add undelete, set access tier, start copy, abort copy, create snapshot, stage block from uri

* add support for conditional headers

* support range download

* Change the helper functions order to alphabetical

so that we always get the same result in different environemnts.

* use c++ casting

* Add support for append blob and page blob

* remove redundant ; added by auto-generator

* Remove BlobType in BlockBlob::Upload

* Rename blob_client_options.hpp->blob_options.hpp

* Remove API version in request options
2020-06-15 17:31:36 +08:00
Kan Tang
18408f848a
Adding ADLS gen2 protocol layer code. (#153)
* Adding test framework for azure storage.

* Adding ADLS gen2 protocol layer code.
2020-06-09 06:31:12 -07:00
JinmingHu
401298577e
Shared Key Authentication Policy (#160)
* Remove Date in request options, assign x-ms-version a default value

* reformat files with clang-format

* Add shared key policy and basic request policy

* Add openssl dependency for linux and macOS

* add some comments, some slight fixes

* Rename CommonRequestPolicy -> CommonHeaderRequestPolicy
2020-06-09 03:38:35 -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
5fc6fea9f4
Auto-generated protocol layer of Container and BlockBlob (#144)
* add blob service auto generated protocol layer

* Add storage uri builder

* integrate with pipeline

* Add libxml2 dependency

* Fix variables name

* Rename variable and function name

* Move xxx_options.hpp out of internal directory

* Rename FromConnectionString -> CreateFromConnectionString
2020-06-04 13:21:08 +08: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
JinmingHu
39f7c37e90
Discard the space after colon in HTTP respone headers (#143)
* Discard the space after colon in HTTP respone headers

* also discard tab
2020-05-28 09:11:46 -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
Anton Kolesnyk
50d0998a79 Apply style 2020-02-24 17:46:42 -08:00
Anton Kolesnyk
cf249bcc8d Use the same clangformat we ended up using in the Embedded C99 SDK 2020-02-24 17:42:48 -08:00
Rick Winter
eab3352932
Add Core scaffolding 2020-02-20 12:10:01 -08:00