Skip to content

Conversation

@BenWhitehead
Copy link
Collaborator

The value provided in CreateMultipartUploadRequest is set to the x-goog-object-lock-mode header, this change simply ensures that if the request is serialized/deserialized using our mapper it will work as expected.

@BenWhitehead BenWhitehead requested a review from a team as a code owner November 4, 2025 00:23
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/java-storage API. labels Nov 4, 2025
ImmutableList.of(new StringEnumValueSerializer<>(StorageClass.class))));
ImmutableList.of(
new StringEnumValueSerializer<>(StorageClass.class),
new StringEnumValueSerializer<>(ObjectLockMode.class))));
Copy link
Contributor

Choose a reason for hiding this comment

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

Is something similar required for PredefinedAcl?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PredefinedAcl is a java enum, not a StringEnumValue, for that we would need to add both a new serializer and deserializer, which would be more appropriate for a separate PR.

@BenWhitehead BenWhitehead merged commit 10b1849 into main Nov 19, 2025
25 checks passed
@BenWhitehead BenWhitehead deleted the chore/object-lock-mode-xml branch November 19, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants