-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage][Blob] Flatten and simplify access conditions #5672
Conversation
I didn't replace the usage of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
95b8325
to
3382142
Compare
Use a flattened conditions type `BlobRequestConditions` instead of current nested one. It replaces `ContainerAccessConditions` and `BlobAccessConditions`. In addition, various conditions fields are renamed into simply `conditions`. This makes it more convenient to pass in conditional request options. the example ```js { blobAccessConditions: { modifiedAccessConditions: { ifMatch: uploadResponse.eTag } } ``` after this change becomes ```js { conditions: { ifMatch: uploadResponse.eTag } ```
3382142
to
862f930
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed commits to resolve merge conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for consistency with Blob. In PR Azure#5672 we adopted the field names `conditions` and `sourceConditions`. This change fixes the only place in File where `SourceModifiedAccessConditions` is used in public API to be consistent.
for consistency with Blob. In PR Azure#5672 we adopted the field names `conditions` and `sourceConditions`. This change fixes the only place in File where `SourceModifiedAccessConditions` is used in public API to be consistent.
for consistency with Blob. In PR Azure#5672 we adopted the field names `conditions` and `sourceConditions`. This change fixes the only place in File where `SourceModifiedAccessConditions` is used in public API to be consistent.
for consistency with Blob. In PR #5672 we adopted the field names `conditions` and `sourceConditions`. This change fixes the only place in File where `SourceModifiedAccessConditions` is used in public API to be consistent.
Per feedback from the api review.
Use a flattened conditions type
BlobRequestConditions
instead of currentnested one. It replaces
ContainerAccessConditions
andBlobAccessConditions
.In addition, various conditions fields are renamed into simply
conditions
except
sourceModifiedAccessConditions
which is renamed tosourceConditions
.This makes it more convenient to pass in conditional request options.
One example:
after this change becomes
Resolves #5466