Commit Graph

299 Commits

Author SHA1 Message Date
Kan Tang
a0a3c6d5c5
Changed ContentRange from std::string to Azure::Core::Http::Range. (#1415)
* Changed ContentRange from std::string to Azure::Core::Http::Range.

* Resolved further comments.

* Resolved test issues
2021-01-21 21:37:03 -08:00
JinmingHu
d5a53423bd
replace GetRawResponse with ExtractRawResponse (#1430) 2021-01-22 11:53:10 +08:00
JinmingHu
76db013528
blob lease client (#1424)
* blob lease client

* changelog

* Apply suggestions from code review
2021-01-22 10:24:10 +08:00
Anton Kolesnyk
15182d5a34
Fix link errors when producing a DLL, add UWP compilation support (#1346) 2021-01-21 16:52:07 -08:00
Kan Tang
13afe30353
Added support for Set/GetAccessPolicy in DataLakeFileSystemClient (#1411)
* Added support for Set/GetAccessPolicy in FileSystemClient

* Address review comments

* Changed Private to None.
2021-01-21 19:55:48 +08:00
Kan Tang
bbbf8bff39
Remove Data suffix according to review comments. (#1397)
* Remove Data suffix according to review comments.

* Update readme.
2021-01-20 19:37:51 +08:00
Kan Tang
e2a49a127b
Renamed GetUri to GetUrl. (#1414) 2021-01-20 16:53:52 +08:00
JinmingHu
66538df833
AccountSasResource::BlobContainer was renamed to AccountSasResource::Container (#1410)
* Rename AccountSasResource::BlobContainer to AccountSasResource::Container

* changelog
2021-01-20 16:39:34 +08:00
JinmingHu
4c322f3b7e
AccessType and ListType should be non-nullable (#1408)
* access type and block list type is not nullable

* access type is optional in protocol layer

* changelog
2021-01-20 14:29:13 +08:00
Kan Tang
ffd79fcc74
Refined the ACL/Permission APIs according to review comments. (#1399)
* Refined the ACL/Permission APIs according to review comments.

* Update CHANGELOG.md

* Update datalake_options.hpp
2021-01-20 12:08:49 +08:00
Kan Tang
d0abaa1076
Use path/directory/file name instead of path. (#1398)
* Use path/directory/file name instead of path.

* Resolved review comments and refined docs.
2021-01-20 12:08:42 +08:00
Kan Tang
6bd4ded77f
Revert adding the datalake prefix for list path API in protocol layer's options. (#1400) 2021-01-20 11:02:45 +08:00
Victor Vazquez
f285aaead9
Make CI fail if there are clang format errors (#1328)
Won't pass until #1330 is merged first

fixes: #1329
2021-01-20 01:09:29 +00:00
Kan Tang
a726e81fa4
Use name for directory/file initializing and removed unwanted funcion… (#1401)
…ality.

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

# 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?
2021-01-19 08:42:25 +00:00
JinmingHu
c2d26ddb35
add request id in return types (#1395)
* add request id in return types

* changelog

* fix bug
2021-01-19 10:54:38 +08:00
Kan Tang
57e6e8dbba
Removed GetDfsUri. (#1394)
# 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?
2021-01-18 06:15:00 +00:00
JinmingHu
d51d034b5b
Increase storage version manually (#1381) 2021-01-16 10:41:50 +08:00
Ahson Khan
c564c02544
Move APIs from Azure::Core::Strings to Azure::Core::Internal since they aren't meant for end users to call. (#1337)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/1319

See https://github.com/Azure/azure-sdk-for-cpp/pull/1297#discussion_r554458422 for context.

~There is an open question whether this should be in the Jan or Feb milestone.~ Moved to Feb
2021-01-15 22:02:40 +00:00
Ahson Khan
07c5cba59f
Fix storage changelog entries for older releases for consistency (preview1, beta1) matching what shipped and add dates. (#1375)
Hopefully, after this, we will get correct auto-version-increment PRs. See the following for more context:
https://github.com/Azure/azure-sdk-for-cpp/pull/1373#issuecomment-760018037

We also need to split up the storage release pipeline to be one per package and run them sequentially.
2021-01-14 21:08:50 +00:00
Ahson Khan
1157382efe
Update storage changelog to be consistent on section order, use past tense, and make it a bit more brief. (#1374)
Also fixes a couple of typos and added back-ticks that were missing.
2021-01-14 09:24:49 +00:00
Kan Tang
d63b1610e4
Changelog for beta.6 release for file/datalake (#1371)
# 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?
2021-01-14 06:52:54 +00:00
JinmingHu
63b6474cfe
Update blob changelog (#1372) 2021-01-14 14:37:46 +08:00
JinmingHu
e9463d5389
Partial changelog update for beta6 release (#1370)
* Partial changelog update

* fix

* Update sdk/storage/azure-storage-blobs/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* add new line

* fix

* Update sdk/storage/azure-storage-common/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* Update sdk/storage/azure-storage-files-datalake/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* Update sdk/storage/azure-storage-files-shares/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2021-01-14 14:03:03 +08:00
JinmingHu
6ff2f57b47
Revert "Service version const strings (#1349)" (#1369)
This reverts commit e97349cd7d.
2021-01-14 13:33:33 +08:00
Daniel Jurek
f15c823e79
Automate publishing to vcpkg (#1283)
* Disable dependency on azure-core until azure-core releases to vcpkg.

* Remove release artifact creation script and pipeline step

* Copy items from root cmake generate outputs (no need to do individual project preparation)

* Space

* Add VcpkgPortName (package port names may change in the future to include non v1 version numbers like azure-template-cpp-v2)

* Destination should be artifact name, not vcpkg port name

* Disable PR steps

* SHA512 1 -> SHA512 %SHA512%

* New release procedure

* Unblock publishing process

* Increment azure-template version

* Update branch strategy, uncomment final release of template

* Increment version to test release

* Fix remote branch checkout logic

* Increment version

* Exit successfully

* Increment version

* Increment Version

* Version Increment

* Add a difference in the output file to validate multiple runs against a target PR branch

* Enable existing PR branches in create-pull-request.yml

* Increment version

* Fix archetype-cpp-release.yml syntax

* Skip checkout instead

* Increment version

* Fix automated version incrementing

* Increment version

* Update CHANGELOG.md

* Update CHANGELOG.md date

* Revert CONTROL file

* Remove Build-Depends

* Increment version

* Output commands

* Check out branch in either branch scenario

* Increment version

* Fetch the .tar.gz file using convention, the REST API does not give the location of the .tar.gz

* Increment Version

* ToLower

* Increment

* Increment version

* Version updater should not append a new line to the end of the file contents (existing new line at the end of the file will remain, if present)

* Add azure-template2 to validate base case of shipping different packages instead of file replacement validation from previous runs

* Remove extra backtick

* Add template2 to root CMakeLists.txt

* Review feedback: Support main scenario with packages coming from different location (no new file conflicts)

* Remove file blocking link check step. This is ok because the whole azure-template2 folder will be removed after this verification is complete

* Version increment

* Make template2 install in different locations

* Increment version

* Remove azure-template2 that was used for validating publishing multiple packages

* Remove template2 from ci.yml

* Use "SHA512 1" syntax as proposed by vcpkg documentation and regex replacement

* Review feedback

* Increment version

* Quotes

* Review feedback and re-add New-ReleaseAsset.ps1
2021-01-13 14:35:18 -08:00
Kan Tang
21ed9e3376
Refined list related API names. (#1350)
# 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?
2021-01-13 08:51:53 +00:00
JinmingHu
e97349cd7d
Service version const strings (#1349)
closes https://github.com/Azure/azure-sdk-for-cpp/issues/1056

# 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?
2021-01-13 06:46:12 +00:00
JinmingHu
0a4924393c
Rename Enabled to IsEnabled (#1348)
closes https://github.com/Azure/azure-sdk-for-cpp/issues/1129

# 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?
2021-01-13 06:27:22 +00:00
Kan Tang
c750289f90
Refined prefix for File/Path/Directory/FileSystems in Datalake/File (#1310)
* Refined prefix for File/Path/Directory/FileSystems.

* Remove service prefix in method names.

* Remove service prefix in method names.
2021-01-13 14:19:21 +08:00
JinmingHu
e0e04cfee0
BlobServiceClient::CreateBlobContainer/DeleteBlobContainer/UndeleteBl… (#1324)
* BlobServiceClient::CreateBlobContainer/DeleteBlobContainer/UndeleteBlobContainer

* add test

* BlobContainerClient::DeleteBlob

* changelog

* fix build error

* fix build errors

* use response<void>

* fix ut
2021-01-13 13:51:28 +08:00
JinmingHu
4f1c0850fb
remove batch (#1344) 2021-01-13 12:31:13 +08:00
JinmingHu
8778089305
parse Content-Range in blob service (#1345)
* parse Content-Range

* changelog
2021-01-13 12:30:07 +08:00
Ahson Khan
5de2ca7b3c
Update notice.txt files for storage and move nlohmann json notice content to azure-core. (#1339)
* Update notice.txt files for storage and move nlohmann json notice
content to azure-core.

* Add a new line.
2021-01-12 17:20:40 -08:00
JinmingHu
0643eeba5d
add a bool indicating whether the opration succeeds for CreateIfNotExists/DeleteIfExists (#1313) 2021-01-12 15:36:57 +08:00
JinmingHu
91f95dc19d
Remove batch options (#1325) 2021-01-12 15:35:12 +08:00
JinmingHu
7d377f5290
change protected to private (#1315) 2021-01-12 11:35:45 +08:00
Anton Kolesnyk
99a6ec5395
DateTime: better integration with chrono, support year 0001+ (#1320) 2021-01-11 17:40:16 -08:00
JinmingHu
4527798bd1
Remove blob batch (#1309) 2021-01-11 15:13:49 +08:00
JinmingHu
967ccae1ff
add "Azure::Core::" prefix for Base64 functions in auto-generator. (#1306) 2021-01-11 14:57:05 +08:00
JinmingHu
abc2ec2943
remove Base64EncodeText (#1307) 2021-01-11 14:34:29 +08:00
JinmingHu
f935477e66
also swallow exception when container doesn't exist for DeleteIfExists (#1304) 2021-01-11 13:10:35 +08:00
Kan Tang
7615a9ee9b
Added support for CreateIfNotExists and DeleteIfExists (#1282)
* Added support for CreateIfNotExists and DeleteIfExists

* Added DataLake

* Refined test cases.

* Resolve review comments.

* Resolve more review comments.
2021-01-11 13:10:17 +08:00
JinmingHu
dc8c9182e1
fix build error introduced in PR #1297 and #1298 (#1303)
# 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?
2021-01-11 03:40:48 +00:00
Ahson Khan
fb33402844
Remove Base64 encode and decode methods from Azure::Storage and move the string-based helper to Internal. Update storage call sites. (#1298)
Follow up from https://github.com/Azure/azure-sdk-for-cpp/pull/1297 as the second step to fix #1020
2021-01-09 08:12:06 +00:00
Ahson Khan
4753cf64e3
Update cg manifest files and move the declaration of the nlohmann json dependency to core. (#1295) 2021-01-08 19:31:15 -08:00
Anton Kolesnyk
9e94941250
Add copyright and license comments to CONTROL files (#1296)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-01-08 18:15:42 -08:00
Kan Tang
6b6df8fbdc
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?
2021-01-08 04:10:44 +00:00
JinmingHu
280bad5b42
Fix ut crash issue introduced in PR#1274 (#1286)
# 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?
2021-01-08 04:03:11 +00:00
JinmingHu
0ab1785881
make continuation token nullable (#1274)
* make continuation token nullable

* changelog

* fix
2021-01-07 22:00:00 +08:00
JinmingHu
d6c838e9e0
rename delete blob snapshot options, add delete blob snapshot test cases (#1272)
* rename delete blob snapshot options, add delete blob snapshot test cases

* changelog

* Apply suggestions from code review

* Update sdk/storage/azure-storage-blobs/test/block_blob_client_test.cpp

* Update sdk/storage/azure-storage-blobs/test/block_blob_client_test.cpp
2021-01-07 21:26:12 +08:00