Skip to content

[Storage] convert options to take pointer#16978

Merged
seankane-msft merged 4 commits intoAzure:mohsha-msft/fix-listing-metadata-parsingfrom
seankane-msft:storage-nil
Feb 7, 2022
Merged

[Storage] convert options to take pointer#16978
seankane-msft merged 4 commits intoAzure:mohsha-msft/fix-listing-metadata-parsingfrom
seankane-msft:storage-nil

Conversation

@seankane-msft
Copy link
Copy Markdown
Contributor

Converts DownloadResponse.Body to take a pointer to an options struct.

@seankane-msft seankane-msft self-assigned this Feb 4, 2022
@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Feb 4, 2022
@@ -50,11 +50,14 @@ type DownloadResponse struct {
// while reading, it will make additional requests to reestablish a connection and
// continue reading. Specifying a RetryReaderOption's with MaxRetryRequests set to 0
// (the default), returns the original response body and no retries will be performed.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this comment include something about passing in 'nil' to accept the default options?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it should, added!

Copy link
Copy Markdown
Contributor

@mohsha-msft mohsha-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mohsha-msft
Copy link
Copy Markdown
Contributor

I've created a release candidate for azblob 0.3.0 here. You can merge your branch to this one.

@seankane-msft seankane-msft changed the base branch from main to mohsha-msft/fix-listing-metadata-parsing February 7, 2022 15:15
@seankane-msft seankane-msft merged commit d71c9cd into Azure:mohsha-msft/fix-listing-metadata-parsing Feb 7, 2022
@seankane-msft seankane-msft deleted the storage-nil branch February 7, 2022 15:15
mohsha-msft added a commit that referenced this pull request Feb 9, 2022
* Manual fixes in generated models to adapt azcore 0.21

* Fix SAS Creation + other issue (#16901)

* Fix SAS Creation + other issue

* Added README.md + Fix comment

* Removed Specification File.

* Updated CHANGELOG

* Regenerated Recordings + Ran Live Tests (#16990)

* [Storage] convert options to take pointer (#16978)

* convert to nil

* changelog entry

* adding a comment about nil, changing o to options for better clarity

* Bumped up AzCore to the latest version

* azblob: fix ListBlob to preserve prefix while paging (#16992)

* [Storage] improving documentation (#16945)

* improving documentation

* updating changelog

* ctx -> context.TODO(), simplifying comments

* updating a few more examples

* improving docs further

* Update sdk/storage/azblob/zt_examples_test.go

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* Update sdk/storage/azblob/zt_examples_test.go

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* Update sdk/storage/azblob/zt_examples_test.go

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* Update sdk/storage/azblob/zt_examples_test.go

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* Update sdk/storage/azblob/zt_examples_test.go

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* finished doc updates

* Background -> TODO

* valid container name

* updating readme

* Update sdk/storage/azblob/README.md

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* Update sdk/storage/azblob/README.md

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* removing todos

* more comments and additions

* set env vars with bash

* Azure Storage Blob -> Azure Blob Storage

* Update CHANGELOG.md

* forcing a change

Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>

* Added Release Date in CHANGELOG.

Co-authored-by: Sean Kane <68240067+seankane-msft@users.noreply.github.com>
Co-authored-by: Philip Dubé <serprex@users.noreply.github.com>
Co-authored-by: Kim Ying <15070078+kimprice@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants