Commit Graph

884 Commits

Author SHA1 Message Date
Victor Vazquez
8f8c4e55ce
update uint64 to int64_t (#2398) 2021-06-03 21:47:37 -07:00
Daniel Jurek
f1426392b4
Set template version 1.0.0 (#2395) 2021-06-03 18:24:24 -07:00
Anton Kolesnyk
75a17b00a6
Doxygen PR follow-up (#2390) 2021-06-03 12:41:05 -07:00
Anton Kolesnyk
cdcdac5c58
Docs: link to root Getting Started section from Key Vault Keys' readme (#2387)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-06-03 10:59:16 -07:00
Anton Kolesnyk
7a4ebdf73d
Docs: link to root Getting Started section from Core's readme (#2386)
* Docs: link to root Getting Started section from Core's readme

* Update sdk/core/azure-core/README.md

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-06-03 10:59:09 -07:00
Anton Kolesnyk
e8f8a01e69
Docs: link to root Getting Started section from Storage's readme (#2388)
* Docs: link to root Getting Started section from Storage's readme

* Move section

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-06-03 10:58:58 -07:00
Anton Kolesnyk
3b9d29c068
Core: Doxygen: Constructors, destructors, operators, and context parameter (#2378)
* Core: Doxygen: Constructors, destructors, operators, and context parameter.

* '; otherwise, `false`.'

* Clang format

* Fix spelling

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-06-03 10:57:37 -07:00
JinmingHu
1b132190ee
unify message format of exception/assertion (#2382)
* unify exception message

* unify format of assertion message
2021-06-03 10:46:28 +08:00
JinmingHu
af52a49bbe
move some headers to internal directory (#2381)
* move some headers to internal

* move some headers to internal

* fix build error

* fix more
2021-06-03 10:42:57 +08:00
JinmingHu
c8a525ec74
update storage samples (#2380)
* update storage samples

* use CreateIfNotExists
2021-06-03 09:39:22 +08:00
JinmingHu
fe7b88194a
remove IfUnmodifiedSince from SetDataLakeFileSystemMetadataOptions (#2383)
* remove IfUnmodifiedSince from SetDataLakeFileSystemMetadataOptions

* cl
2021-06-03 09:36:38 +08:00
JinmingHu
06cc8980f4
Add sample for transactional checksum (#2384) 2021-06-03 09:36:14 +08:00
Anton Kolesnyk
bae5f553a2
Expand docs docs for RetryOptions (#2385)
* Better docs for RetryOptions

* Update sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp

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

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2021-06-02 17:58:29 -07:00
JinmingHu
4b6b2a40fa
use int32_t for retry count (#2377) 2021-06-02 15:48:35 -07:00
Victor Vazquez
9fd5806c14
remove move from const (#2375) 2021-06-02 09:37:35 -07:00
Victor Vazquez
32944b61a7
remove extra const (#2371) 2021-06-01 10:07:18 -07:00
Victor Vazquez
141878670f
update variable to compile (#2373) 2021-06-01 10:03:51 -07:00
Victor Vazquez
da252f76f7
remove duplicated headers and update tests (#2369) 2021-06-01 10:02:55 -07:00
JinmingHu
38bd273d23
fix read consistency issue (#2364) 2021-05-30 10:36:49 +08:00
Anton Kolesnyk
15c525d387
Fix empty rethrows, update some catches to catch all (#2362)
* Fix empty rethrows, update some catches to catch all

* AZURE_UNREACHABLE_CODE()

Co-authored-by: JinmingHu <jinmhu@microsoft.com>

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-05-28 09:24:42 -07:00
Anton Kolesnyk
a742608406
Catch as const whenever possible (#2361)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-28 01:52:59 -07:00
Anton Kolesnyk
78703658a2
Fix throw new (#2360)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-28 01:52:39 -07:00
Anton Kolesnyk
cb862f56b5
Add x-ms-request-id to a default list of unredacted log headers (#2359)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-28 01:51:53 -07:00
Victor Vazquez
9e7fa34c34
Keyvault readme update (#2350)
* progress

* update keyvault keys readme

* 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-05-28 06:52:52 +00:00
JinmingHu
e39d189d30
Use wide-char version of CreateFile API (#2343)
* Use wide-char version of CreateFile API

* fix

* fix
2021-05-28 11:01:26 +08:00
JinmingHu
3f56fac50c
fix a crash issue when copying a RequestFailedException with null RawResponse #2358 2021-05-27 10:33:36 -07:00
Victor Vazquez
3596685e80
disable warning from Functional header (#2352)
* update the correct warning
2021-05-26 22:50:58 +00:00
JinmingHu
8257ce32da
Fix the grammar of storage docs (#2348) 2021-05-26 08:30:37 -07:00
JinmingHu
2787785d0f
use EXPECT_EQ(x, y) instead of EXPECT_TRUE or EXPECT_FALSE (#2347) 2021-05-26 08:29:39 -07:00
Victor Vazquez
73d5ba0d2d
Doc changes for HTTP and removing the "More" link (#2332)
* update docs from classes

* remove more link from classes part II

* http docs

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

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

* Update cmake-modules/AzureDoxygen.cmake

* doc updates

* update RFC

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2021-05-25 14:02:14 -07:00
Victor Vazquez
88dc1ac8cf
adding Test file sufix to all tests (#2337)
* azure core

* perf

* identity

* keyvault

* storage
2021-05-25 11:15:30 -07:00
JinmingHu
0876ff4fd5
Add samples (#2342) 2021-05-25 11:08:17 -07:00
Victor Vazquez
fcf75f80d1
update storage download perf test - Take connection string from env (#2247)
* update storage download perf test

* format

* allow getEnv() for msvc

* Add size option

* format

* Download to buffer

* Apply suggestions from code review

* use member for the buffer

Co-authored-by: Mike Harder <mharder@microsoft.com>
2021-05-21 17:00:38 -07:00
Azure SDK Bot
6012511293
Increment package version after release of azure-core (#2322) 2021-05-21 13:38:07 -07:00
Azure SDK Bot
31c5e7cb72
Increment package version after release of azure-identity (#2323) 2021-05-21 13:37:58 -07:00
Azure SDK Bot
069f753464
Increment version for keyvault releases (#2324)
* Increment package version after release of azure-security-keyvault-common

* Increment package version after release of azure-security-keyvault-keys
2021-05-21 13:37:48 -07:00
Kan Tang
e5a589beec
Fix changelog (#2339)
# 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-05-21 07:47:08 +00:00
Kan Tang
be29d332c2
Change ContentLength to FileSize. (#2338)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/2334

# 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-05-21 07:08:23 +00:00
JinmingHu
ce30cca1cb
use size_t in storage sdk (#2320)
* use size_t instead of std::size_t

* use size_t for file write length

* fix build error

* fix build errors

* fix build error
2021-05-21 13:58:57 +08:00
JinmingHu
f2c0546386
Add explicit assignment and desctructor for RawResponse and RequestFailedException (#2312) 2021-05-21 09:44:34 +08:00
Azure SDK Bot
11a36c98f6
Increment version for storage releases (#2331)
* 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-05-20 11:59:38 +08:00
JinmingHu
d99fcbc9f8
mint storage beta 11 (#2326) 2021-05-20 09:23:39 +08:00
Anton Kolesnyk
dcb2506862
Docs: 'base 64' => Base64 (#2327)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-19 11:08:14 -07:00
JinmingHu
7b3f5d3c96
Changed type of CommitBlockCount to int32_t (#2318) 2021-05-18 23:36:13 -07:00
Ahson Khan
0a0bd6fbc2
Update changelog for the upcoming beta release. (#2309)
Holding off to do a review of the commits.

Area owners, please review yourself as well, and fix what might be missing or needs updating.
2021-05-19 04:31:36 +00:00
Ahson Khan
2a4dfd2f0d
Incorrect use of hashing Final/Append APIs now have an assert failure. (#2317)
Follow up from https://github.com/Azure/azure-sdk-for-cpp/pull/2189
2021-05-19 04:18:16 +00:00
Ahson Khan
75d17550f2
Add argument validation to public APIs. Throw or Precondition/assert failure? (#2189)
* Add argument validation to public APIs.

* Add exception to spell check.

* Revert "Add exception to spell check."

This reverts commit be54b614cc1427ddb2f154f5927f4e612a4a1e28.

* Turn invalid arg excetion to a precondition assert for bodystream read.

* User assert in more places within body_stream.

* Update valiation for hashing and bodystream and update tests.

* Update  precondition test for size_t and add null ptr check

* Fix clang formatting.

* Update changelog and fix up the message for size_t validation in hash.

* Address PR feedback.

* More PR feedback.

* Remove unnecessary comment from test.

* Fix clang format.
2021-05-18 20:10:14 -07:00
Anton Kolesnyk
e5763720d4
Vcpkg fixes (#2311)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-18 19:33:59 -07:00
Ahson Khan
65821ec115
Use size_t for buffers representing data in memory rather than int64_t. (#2285)
* Use size_t for buffers representing data in memory rather than int64_t.

* add a cast from size_t to int64_t

* Address feedback - OnRead return size_t.

* Change Read and ReadToCount to return size_t instead of int64_t.

* Update curl usage and ReadFromSocket.

* Missed one signature.

* Update changelog.

* Update transport layer to use the right size_t size.

* Fix curl use of MBS.

* Cast to size_t since that's all memory stream supprts.

* Add static casts to size_t as temporary workarounds.

* update storage tests.

* More test fixes.
2021-05-18 18:51:20 -07:00
JinmingHu
9261e9ddae
copy constructor for RequestFailedException (#2291)
* copy constructor for RequestFailedException

* Apply suggestions from code review

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

Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2021-05-18 22:58:11 +00:00