Skip to content
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

Share files additional headers #28440

Merged
merged 18 commits into from
Apr 27, 2022

Conversation

rickle-msft
Copy link
Contributor

No description provided.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Apr 21, 2022
@azure-sdk
Copy link
Collaborator

API change check for com.azure:azure-storage-file-share

API changes have been detected in com.azure:azure-storage-file-share. You can review API changes here

Comment on lines +195 to +217
public ShareFileRenameOptions setHeaders(ShareFileHttpHeaders headers) {
if (headers.getCacheControl() != null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("cache control is not supported on this api"));
}
if (headers.getContentDisposition() != null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("content disposition is not supported on this api"));
}
if (headers.getContentEncoding() != null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("content encoding is not supported on this api"));
}
if (headers.getContentLanguage() != null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("content language is not supported on this api"));
}
if (headers.getContentMd5() != null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("content md5 is not supported on this api"));
}
this.headers = headers;
return this;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's merge it. but we should discuss this issue during api review.

Copy link
Member

Choose a reason for hiding this comment

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

I vote we make ContentType a property on ShareFileRenameOptions

@rickle-msft rickle-msft merged commit 3695560 into Azure:main Apr 27, 2022
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.

4 participants