Commit Graph

495 Commits

Author SHA1 Message Date
Victor Vazquez
e4a18b5eb3
Fault injection test (#2265)
* missing line for single docs

* format

* fault injection test

* winHttp

* storage blobs client with fault injector
2021-05-17 10:34:50 -07:00
JinmingHu
af936e052f
use AZURE_ASSERT in storage code (#2262)
* use AZURE_ASSERT in storage code

* fix build

* clang-format

* fix
2021-05-17 10:06:26 +08:00
Anton Kolesnyk
efe4772acb
Update upper/lower/other casing (#2267)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-14 12:54:16 -07:00
Anton Kolesnyk
00c47e8ec3
Delete vcpkg readme (#2268)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-14 12:53:59 -07:00
JinmingHu
8cc98320d5
- BlobServiceClient::UndeleteBlobContainer doesn't support restoring a deleted container under a different name anymore. (#2263) 2021-05-14 09:31:49 +08:00
Ahson Khan
743399eca4
Disable BlobServiceClientTest::UndeleteBlobContainer to keep CI and live tests green (#2259) 2021-05-12 13:40:34 -07:00
Ahson Khan
579a58b250
Fix typo in share_responses docs (#2258) 2021-05-12 19:26:13 +00:00
Anton Kolesnyk
530e49b217
Document final/virtual destructor changes (#2256) 2021-05-12 11:38:17 -07:00
JinmingHu
b4fa6b835a
Fix stream leak issue (#2257)
* Fix stream leak issue

* cl
2021-05-12 09:05:03 +00:00
Anton Kolesnyk
ebb112f682
Add final specifier in Storage code (#2238)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-11 17:02:52 -07:00
JinmingHu
11d3a3f286
add namespace explicit qualifier for friend classes (#2236) 2021-05-08 13:49:09 +08:00
JinmingHu
273d411838
add some coments (#2235) 2021-05-08 04:02:23 +00:00
JinmingHu
2b169ca777
Removed GetBlockListResult::ContentType, moved GetPageRangesResult to detail (#2234) 2021-05-08 11:16:30 +08:00
Ahson Khan
fd9c3e5ebb
Fix true spelling errors across all source and header files within the SDK and add exceptions for false positives. (#2209)
Part of https://github.com/Azure/azure-sdk-for-cpp/issues/1277, checking what types of warnings the CI emits.

Verified all SDK product `.cpp`, `.hpp`, `.txt`, and `.md` files, primarily focused on azure-core. They are all clean now. There are some exceptions that needs to be added for keyvault and storage, but they are false positives, so not a concern.

> `cspell lint --config .vscode/cspell.json *.hpp */**/*.hpp`

CSpell: Files checked: 188, Issues found: 0 in 0 files

> `cspell lint --config .vscode/cspell.json *.cpp */**/*.cpp`

CSpell: Files checked: 186, Issues found: 88 in 15 files (keyvault and storage false positives, or tests)

> `cspell lint --config .vscode/cspell.json *.md */**/*.md`

CSpell: Files checked: 45, Issues found: 5 in 2 files (eng/common)

> `cspell lint --config .vscode/cspell.json *.txt */**/*.txt`

CSpell: Files checked: 44, Issues found: 0 in 0 files

> `cspell lint --config .vscode/cspell.json *.* */**/*`

CSpell: Files checked: 646, Issues found: 328 in 69 files (most of these are in eng\docs\api\assets\style.css or eng/common)

Deprioritize and ignored the errors from the test files (including test resource json files), and `eng/common` since those need to be centrally fixed.
2021-05-07 21:04:58 +00:00
Kan Tang
941b67178e
File/datalake service doxygen comments and detail struct name refine. (#2207)
# 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
  - [] 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-07 07:47:35 +00:00
JinmingHu
3c04ad93a1
Add some comments to common package (#2216) 2021-05-07 13:01:26 +08:00
JinmingHu
8d5ea9e279
Add doxygen doc to blob generated code (#2206) 2021-05-07 03:41:32 +00:00
Ahson Khan
9e7b61538e
Remove exposing windows.h header from our public headers within storage. (#2201)
* Remove exposing windows.h header from our public headers within storage.

* Revert "Remove exposing windows.h header from our public headers within storage."

This reverts commit 537d7dd64f65fd5d4b079e793334e840d9b40e70.

* Actually remove exposing windows.h header from the public header in storage.
2021-05-06 11:16:24 -07:00
JinmingHu
2901dbcab9
fix user agent for blob service (#2203) 2021-05-06 20:32:17 +08:00
Victor Vazquez
8e4a1ae59b
Rename download via stream (#2196)
rename parameter for download stream
2021-05-06 02:42:38 +00:00
Ahson Khan
a77686938a
Remove exposing windows.h header from our public headers and reduce risk of introducing it in non-public headers (#2188)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/1853
2021-05-05 23:49:18 +00:00
Anton Kolesnyk
d69742ae10
Context::GetApplicationContext() => Context::ApplicationContext (#2178) 2021-05-04 15:26:33 -07:00
JinmingHu
61e3dae352
reorder model types (#2174) 2021-04-29 09:08:24 +00:00
JinmingHu
2aaceb0d3c
SetPathAccessControlListRecursive and ForceCloseAllHandles (#2173)
* SetPathAccessControlListRecursive

* ForceCloseAllHandles

* CL
2021-04-29 15:11:09 +08:00
JinmingHu
cc1c071c97
Change lease mutates LeaseClient (#2163)
* Change lease mutates LeaseClient
2021-04-29 02:33:06 +00:00
Anton Kolesnyk
cd36753d76
PackageVersion made constexpr and moved to src/package_version.hpp (#2166) 2021-04-28 17:34:24 -07:00
JinmingHu
c1b958a598
FIX BUG: cannot upload 5000MiB blob (#2165) 2021-04-28 06:14:41 +00:00
JinmingHu
0cc4f0a34b
default chunk size for concurrent upload is nullable (#2162) 2021-04-28 04:17:07 +00:00
JinmingHu
ff10813ba0
Add docs for return types and options (#2159)
* Add docs for return type

* datalake options

* share options

* transfer options
2021-04-28 10:42:58 +08:00
JinmingHu
8a369f5e27
use Core::PagedResponse (#2158)
* use Core::PagedResponse

* null if continuation token is empty
2021-04-27 13:32:57 +08:00
Anton Kolesnyk
698e9965c5
VcPkg: format json manifest files (#2151) 2021-04-22 17:37:44 -07:00
Anton Kolesnyk
fdfc915565
VcPkg manifest tweaks (#2149) 2021-04-22 12:27:56 -07:00
Anton Kolesnyk
23f98744ba
VcPkg: use version-semver (#2138) 2021-04-20 11:41:19 -07:00
Anton Kolesnyk
ba714bebd1
VcPkg files: Simplify header comment handling (#2135) 2021-04-20 01:01:16 +00:00
Ahson Khan
d452e94337
Update vcpkg ports to use a manifest json file instead of a CONTROL file. (#2132)
* Update vcpkg ports to use a manifest json file instead of a CONTROL file.

* Update vcpkg ports to use a manifest json file instead of a CONTROL file
for remaining packages.

* Add the new vcpkg manifet json files and also update the template
package.

* Update paths in the cmake and eng scripts to find the right file now
that CONTROL is gone.
2021-04-19 12:50:50 -07:00
Azure SDK Bot
95051bd19c
Increment version for storage releases (#2131)
* 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

Co-authored-by: JinmingHu <jinmhu@microsoft.com>
2021-04-16 10:05:13 +00:00
Ahson Khan
0b7201d6cc
Fix minor nit to storage common change log by specifying full namespace (#2130)
We don't have to block the beta.10 release for this change, it can be merged and fixed up after the release.

That is, this can be merged **after** https://dev.azure.com/azure-sdk/internal/_build/results?buildId=846565&view=results is successful.
2021-04-16 09:20:26 +00:00
JinmingHu
cdef9ee418
Mint storage beta.10 (#2129)
* Mint storage beta10

* Update sdk/storage/azure-storage-common/CHANGELOG.md
2021-04-16 15:02:09 +08:00
JinmingHu
38a376dc60
Pageable list functions (#2116)
* Pageable ListBlobs and ListBlobsByHierarchy

* remove extra newline

* ListBlobContainers ListFileSystems

* make constructors private

* Fix bug: continuation token

* FindBlobsByTags

* default constructible

* GetPageRanges

* fix bug of HasMore()

* fix ut bug

* ListFilesAndDirecotories

* fix ut bug

* add "class"

* ForceCloseAllHandles

* ListShares

* ListDirectoryHandles

* ForceCloseAllHandles

* ListHandles

* remove unused responses

* reorder

* changelog

* doc

* fix bug

* make ListFileSystemsPagedResponse constructor public

* NextPage

* explicit private

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

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

* Update sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_service_client.hpp

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

* fix clang-format

* optional context

* bla bla

* remove inlcude header

* bla bla bla

* bla bla bla bla

* bla

* rename Items

* rename Handles

* clang-format

* listPaths

* SetAccessControlListRecursive

* move unused return types to details namespace

* Rename NextPage and HasMore

* clang-format

* Apply suggestions from code review

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

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

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

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

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

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

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

* add comment Execution is never expected to reach here

* FilterBlobItem -> TaggedBlobItem

* Remvoe SetAccessControlListRecursive

* remove ForceCloseAllHandles

* CL for options

* CL

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

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

* move impl to .cpp

* keep current page unchanged on exception from MoveToNextPage()

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

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

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

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

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2021-04-16 06:47:50 +00:00
JinmingHu
0fce2f7d68
Fix typo startsOn -> StartsOn (#2099) 2021-04-10 08:20:01 -07:00
JinmingHu
1408064c7a
Add changelog for #2060 (#2063)
Coauthor: Ahson Khan <ahson_ahmedk@yahoo.com>
2021-04-07 19:17:02 +00:00
JinmingHu
a786595565
move HttpGetter and HttpGetterInfo to internal namespace (#2060)
* move HttpGetter and HttpGetterInfo to internal namespace

* move to _internal
2021-04-07 04:59:31 +00:00
JinmingHu
aa0a388e98
small fix: const Type& to be consistent (#2061) 2021-04-07 04:22:53 +00:00
Ahson Khan
4db9a563e7
Removed Azure::Core::Context::HasKey() and add TryGetValue() instead (#2037)
~@vhvb1989 This change is blocked until after the retry policy implementation has been updated. Let me know once you have that PR available.~

Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/2036
2021-04-07 03:23:34 +00:00
Ahson Khan
bb87bd1f19
Removed Url::AppendQueryParameters() since it is no longer used within the SDK. (#2054)
* Remove  since it is no longer used.

* Update usage in test.

* Update usage of append qp in tests.

* Address PR feedback.
2021-04-07 03:02:22 +00:00
Ahson Khan
38d3535a1e
Changed the Azure::Core::Http::HttpMethod regular enum into an extensible enum class. (#2048)
* Changed the `Azure::Core::Http::HttpMethod` regular enum into an extensible enum class.

* Update CL to mention removal of HttpMethodToString.

* Delete the default http method ctor.
2021-04-06 03:53:05 +00:00
JinmingHu
a930b7a4f1
remove all usage of AppendQueryParameters (#2050) 2021-04-06 03:34:02 +00:00
JinmingHu
fcc6c2024f
server timeout support (#2010) 2021-04-06 03:19:04 +00:00
Victor Vazquez
cb39ec302c
Update RetryPolicy logic to use only one context (#2047)
* progress

* missing

* fix comp errors

* remove comments

* Bad merge with my recent changes to master

* Format

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2021-04-05 19:50:17 -07:00
Ahson Khan
d638d1ff3d
Move package version to details, and rename VersionString() to ToString(). (#2042) 2021-04-06 00:50:25 +00:00