Commit 2cecd0c
feat(storage): Implement deleteSourceObjects for Compose Operation (#12873)
Implemented the `deleteSourceObjects` feature for the `compose`
operation in the Google Cloud Storage Java client.
Changes:
1. **Storage.java**: Added `deleteSourceObjects` field to
`ComposeRequest` and its `Builder`.
2. **StorageRpc.java**: Added `DELETE_SOURCE_OBJECTS` option.
3. **StorageImpl.java**: Updated `compose` to propagate the new option.
4. **GrpcStorageImpl.java**: Mapped the option to the gRPC
`ComposeObjectRequest` proto.
5. **HttpStorageRpc.java**: Mapped the option to the JSON
`ComposeRequest` model.
6. **StorageImplMockitoTest.java**: Added unit test for option
propagation.
7. **ITObjectTest.java**: Added integration test for the full feature
workflow.
---
*PR created automatically by Jules for task
[10602500430278326901](https://jules.google.com/task/10602500430278326901)
started by @nidhiii-27*
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: nidhiii-27 <224584462+nidhiii-27@users.noreply.github.com>
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
Co-authored-by: Dhriti07 <56169283+Dhriti07@users.noreply.github.com>1 parent 0bca75c commit 2cecd0c
7 files changed
Lines changed: 88 additions & 1 deletion
File tree
- java-storage/google-cloud-storage/src
- main/java/com/google/cloud/storage
- spi/v1
- test/java/com/google/cloud/storage
- it
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3185 | 3185 | | |
3186 | 3186 | | |
3187 | 3187 | | |
| 3188 | + | |
3188 | 3189 | | |
3189 | 3190 | | |
3190 | 3191 | | |
| |||
3222 | 3223 | | |
3223 | 3224 | | |
3224 | 3225 | | |
| 3226 | + | |
3225 | 3227 | | |
3226 | 3228 | | |
3227 | 3229 | | |
| |||
3265 | 3267 | | |
3266 | 3268 | | |
3267 | 3269 | | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
3268 | 3280 | | |
3269 | 3281 | | |
3270 | 3282 | | |
| |||
3280 | 3292 | | |
3281 | 3293 | | |
3282 | 3294 | | |
| 3295 | + | |
3283 | 3296 | | |
3284 | 3297 | | |
3285 | 3298 | | |
| |||
3297 | 3310 | | |
3298 | 3311 | | |
3299 | 3312 | | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3300 | 3318 | | |
3301 | 3319 | | |
3302 | 3320 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
655 | 658 | | |
656 | 659 | | |
657 | 660 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
| 820 | + | |
820 | 821 | | |
821 | 822 | | |
822 | 823 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1041 | 1076 | | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
815 | 843 | | |
816 | 844 | | |
817 | 845 | | |
| |||
0 commit comments