Commit Graph

577 Commits

Author SHA1 Message Date
Kan Tang
b2b1bdffd0
Make AccessPolicy::StartsOn and ExpiresOn nullable values. (#2829)
# 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/main/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
- [] Any breaking changes?
2021-09-03 04:57:36 +00:00
JinmingHu
29659f9350
Storage Queue Review Feedback (#2823)
* Remove CreateIfNotExists

* GetServicePropertiesResult/GetServiceStatisticsResult

* GetQueuePropertiesResult/GetQueueAccessPolicyResult

* CL
2021-09-03 09:49:24 +08:00
JinmingHu
bee0dc2654
ignore specific words rather than skip the whole file for spell-checking augo-generated files (#2805) 2021-08-30 15:05:01 +08:00
JinmingHu
b8013185d0
Storage Queue API review feedback (#2801)
* fix

* sample

* CL

* service version

* fix

* ACL
2021-08-27 04:46:51 +00:00
JinmingHu
8cae42999e
cspell for storage (#2800)
* cspell for storage

* aaa
2021-08-27 11:55:07 +08:00
Anton Kolesnyk
7332432efd
Re-add vcpkg version constraints (#2781)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-08-24 16:10:07 -07:00
Anton Kolesnyk
f1ae8a9cdf
Rename exceptions message parameter to whatArg (#2782)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-08-23 18:41:16 -07:00
Victor Vazquez
8fe306e15f
missing include (#2778) 2021-08-20 15:41:48 -07:00
JinmingHu
f72c86cc11
Use std::chrono::seconds for time duration in Queue (#2766)
* Use std::chrono::seconds for time duration in Queue

* add include header

* add const val
2021-08-18 11:50:02 +08:00
JinmingHu
b27cabf20f
queue sample (#2758) 2021-08-18 09:57:47 +08:00
JinmingHu
68100a543c
Disable storage queue vcpkg (#2749) 2021-08-17 09:45:40 +08:00
JinmingHu
4a224e9e8d
Storage Queue Service (#2671)
* Queue clinet interface

* clang-format

* impl

* queue impl

* ut

* fix Create()

* remove unused options

* fix ut

* fix

* more test cases

* fix build errors

* fix build error

* update status code check in generated protocol layer code

* CreateQueueResult.Created should be false on 204

* queue message encoding option

* add some doc

* clang-format

* more doc

* queue sas

* disable some test case

* Revert "queue message encoding option"

This reverts commit a3e6fb1e40e04f4fa3090598066dbb16a4938b85.

* Some API change

* update some docs

* clang-format

* CL

* update vcpkg portfile to be consistent

* queues.hpp

* clang-format

* add file doxygen

* account sas queue ut
2021-08-16 12:25:39 +08:00
JinmingHu
a9507ae88d
Fix build error on some platforms (#2734)
* Move uuid impl to .cpp file

* CL
2021-08-13 07:50:25 +08:00
Azure SDK Bot
e5c60f913c
Increment version for storage releases (#2733)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-files-datalake

* Increment package version after release of azure-storage-files-shares
2021-08-11 01:26:35 +00:00
JinmingHu
8fcc1df085
Update Changelog for storage 12.1.0 release (#2731) 2021-08-10 16:01:00 -07:00
JinmingHu
d65724b6dc
storage 12.1.0 release (#2714)
* storage 12.1.0 release

* a

* Apply suggestions from code review

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2021-08-10 13:05:10 +00:00
Anton Kolesnyk
6bf52bdbde
Update vcpkg version dependencies (#2718) 2021-08-09 13:15:27 -07:00
JinmingHu
9b3b63df47
improve status code check logic in protocol layer (#2703) 2021-08-04 19:53:05 -07:00
JinmingHu
f3f798058e
small fix to blob doc (#2709) 2021-08-04 18:33:50 +08:00
JinmingHu
7a82f92465
remove superfluous (void) (#2693) 2021-08-02 08:46:02 -07:00
JinmingHu
79143d4a1a
Remove BlobItemDetails::TagCount (#2684) 2021-07-29 12:41:11 +08:00
Victor Vazquez
5c14975957
remove prefer ninja (#2675) 2021-07-27 19:26:11 -07:00
JinmingHu
2f9ab65526
Fixed a bug where GetBlockList throws exception if the blob is not committed (#2664)
* Fix a bug where GetBlockList threw exception if the blob is not committed.

* CL

* f
2021-07-27 14:12:43 +08:00
John Heffner
1839061e0d
Avoid time domain casting exception during request cancellation (#2645)
Context::Cancel() sets the deadline to DateTime::min(), which throws a range
exception when cast to system_clock::time_point.  Instead, cast
system_clock::now() to DateTime.
2021-07-22 13:10:37 +08:00
JinmingHu
9806e4692e
move constant definition to bottom to get around a bug in APIView tool (#2648) 2021-07-21 17:51:52 +08:00
Victor Vazquez
41c79fb2c1
adding listBlobs perf test (#2639) 2021-07-20 13:34:15 -07:00
JinmingHu
c4b88f933e
Fixed a bug where sequence number access conditions didn't work for page blob operations (#2643)
* PageBlobClient::Resize doesn't support sequence number access conditions

* PageBlobClient::UpdateSequenceNumber doesn't support seq access conditions

* Fixed a bug where sequence number access conditions didn't work for page blob operations
2021-07-16 07:43:51 +00:00
JinmingHu
b4037ee591
Storage unit test improvements (#2642)
* add test for downloading empty file/blob

* Unit test improvements

* f
2021-07-16 04:34:39 +00:00
JinmingHu
59c46e2ab1
Fixed a bug where unspecified SMB properties got overwritten rather than preserved by SetProperties() (#2632)
* fix bug: Set{File/Directory}Properties overwrites unspecified values

* CL
2021-07-16 10:08:50 +08:00
JinmingHu
5b87554736
PageBlobClient::SetBlobSize doesn't support encryption headers (#2603)
* PageBlobClient::SetBlobSize doesn't support encryption headers

* update ut
2021-07-14 11:01:00 +08:00
JinmingHu
46e333d32d
Remove sha256 hash from storage internal code (#2585) 2021-07-12 10:07:26 +08:00
JinmingHu
ae112cd8a4
UpdateSequenceNumber (#2588) 2021-07-10 02:11:04 +00:00
JinmingHu
da755c9192
Add queue service protocol layer (#2531)
* Add queue service protocol layer

* Update sdk/storage/azure-storage-queues/NOTICE.txt

* fix typo, add comments

* clang-format

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

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Update sdk/storage/azure-storage-queues/CMakeLists.txt

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Update sdk/storage/azure-storage-queues/vcpkg/vcpkg.json

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2021-07-09 06:07:00 +00:00
JinmingHu
186ccc7164
Fix misplaced entry in datalake changelog (#2584) 2021-07-09 04:15:42 +00:00
JinmingHu
bc16d4d812
Some API changes to blob service (#2557) 2021-07-09 11:26:36 +08:00
Azure SDK Bot
1ac0aecd07
Increment version for storage releases (#2565)
Increment package version after release of azure-storage-common
2021-07-08 08:28:28 +00:00
JinmingHu
9e710c2f92
Storage 12.0.1 release (#2562) 2021-07-07 10:25:51 +08:00
JinmingHu
cc1a7d22ce
remove unused headers from blob protocol layer (#2546)
* remove unused headers from blob protocol layer

* fix typo

* Add rehydrated to spell check exception list
2021-07-05 03:00:37 +00:00
JinmingHu
8e6dd37832
fix bug: transactional MD5 hash was treated as blob MD5 hash when downloading a range of blob (#2517)
* fix bug: transactional MD5 hash was treated as blob MD5 hash when downloading a range of blob

* CL

* fix build error

* add test case for 200 download

* f
2021-07-02 10:48:45 +08:00
Anton Kolesnyk
f6765e667e
Put dependency versions (#2518)
* Put dependency versions

* Update version

* Core does not have any 1.1 functionality

* Core 1.1

* 1.1.0

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-06-30 17:05:16 -07:00
Anton Kolesnyk
40ab9315d1
Credit community contributors in changelogs (#2519)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-06-30 15:51:27 -07:00
Wes Haggard
015c34a029
Update links from master to main (#2488)
* Update links from master to main

* Upate other references from master to main
2021-06-24 22:27:14 -07:00
JinmingHu
39c20347f3
storage migration guide (#2451)
* migration guide

* Apply suggestions from code review

* more

* 1

* 2

* Apply suggestions from code review

* Update sdk/storage/MigrationGuide.md

* Update sdk/storage/MigrationGuide.md

* Update sdk/storage/MigrationGuide.md

* Update sdk/storage/MigrationGuide.md

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update sdk/storage/MigrationGuide.md

Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>

* Update sdk/storage/MigrationGuide.md

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>
2021-06-23 15:37:56 +08:00
Victor Vazquez
da1451586a
Upload blob perf test + RandomStream class for utility (#2433)
* random stream

* upload blob perf test

* upload perf blob test

* undo
2021-06-18 10:05:52 -07:00
Daniel Jurek
fda88bf7b8
Update for "master" -> "main" branch rename (#2455)
* vcpkg.json -- update all links to point to "main" .. This is hardcoded and will go out in future releases.
* ci.yml -- add `- main` to trigger criteria near `- master` ... This adds forward compatilbitiy when we rename the branch in the repo
* archetype-cpp-release.yml use a script which evaluates a repo's default branch and sets that in a global variable, then use that variable instead. When vcpkg updates their branch the publishing scripts will work transparently.
* Collect-Changelogs.ps1 -- Add default hardcoded branch name for use with future releases. This can be optionally overridden with a parameter when invoking the script.
* eng/pipelines/client.yml -- Delete this file. It is no longer in use.
2021-06-18 09:09:27 -07:00
Mitch Denny
01ba0b0c9c
Add main to CI files. (#2462) 2021-06-19 01:55:34 +10:00
JinmingHu
c6a00a97b4
Changelog for #2428 (#2442)
* Changelog update for #2428

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

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

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2021-06-11 13:53:05 +08:00
JinmingHu
c5118efd0b
fix memory leak in xml parser (#2428)
* fix memory leak in xml parser

* fix more

* fix bug

* f
2021-06-09 15:43:39 +08:00
Azure SDK Bot
2e72df3cf7
Increment version for storage releases (#2425)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-files-datalake

* Increment package version after release of azure-storage-files-shares
2021-06-09 00:39:00 -07:00
JinmingHu
a0d8668c02
remove extra new line (#2435) 2021-06-09 00:22:49 -07:00