Skip to content

Commit 1b92e37

Browse files
Dhriti07Dhriti Chopra
andauthored
chore: remove @BetaApi tag from MPU APIs (#3471)
Co-authored-by: Dhriti Chopra <dhritichopra@google.com>
1 parent a76f166 commit 1b92e37

3 files changed

Lines changed: 8 additions & 28 deletions

File tree

google-cloud-storage/src/main/java/com/google/cloud/storage/MultipartUploadClient.java

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.storage;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.core.InternalExtensionOnly;
2120
import com.google.cloud.storage.multipartupload.model.AbortMultipartUploadRequest;
2221
import com.google.cloud.storage.multipartupload.model.AbortMultipartUploadResponse;
@@ -38,9 +37,8 @@
3837
* low-level interface for creating and managing multipart uploads.
3938
*
4039
* @see <a href="https://cloud.google.com/storage/docs/multipart-uploads">Multipart Uploads</a>
41-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
40+
* @since 2.60.0
4241
*/
43-
@BetaApi
4442
@InternalExtensionOnly
4543
public abstract class MultipartUploadClient {
4644

@@ -51,9 +49,8 @@ public abstract class MultipartUploadClient {
5149
*
5250
* @param request The request object containing the details for creating the multipart upload.
5351
* @return A {@link CreateMultipartUploadResponse} object containing the upload ID.
54-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
52+
* @since 2.60.0
5553
*/
56-
@BetaApi
5754
public abstract CreateMultipartUploadResponse createMultipartUpload(
5855
CreateMultipartUploadRequest request);
5956

@@ -62,19 +59,17 @@ public abstract CreateMultipartUploadResponse createMultipartUpload(
6259
*
6360
* @param listPartsRequest The request object containing the details for listing the parts.
6461
* @return A {@link ListPartsResponse} object containing the list of parts.
65-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
62+
* @since 2.60.0
6663
*/
67-
@BetaApi
6864
public abstract ListPartsResponse listParts(ListPartsRequest listPartsRequest);
6965

7066
/**
7167
* Aborts a multipart upload.
7268
*
7369
* @param request The request object containing the details for aborting the multipart upload.
7470
* @return An {@link AbortMultipartUploadResponse} object.
75-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
71+
* @since 2.60.0
7672
*/
77-
@BetaApi
7873
public abstract AbortMultipartUploadResponse abortMultipartUpload(
7974
AbortMultipartUploadRequest request);
8075

@@ -84,9 +79,8 @@ public abstract AbortMultipartUploadResponse abortMultipartUpload(
8479
* @param request The request object containing the details for completing the multipart upload.
8580
* @return A {@link CompleteMultipartUploadResponse} object containing information about the
8681
* completed upload.
87-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
82+
* @since 2.60.0
8883
*/
89-
@BetaApi
9084
public abstract CompleteMultipartUploadResponse completeMultipartUpload(
9185
CompleteMultipartUploadRequest request);
9286

@@ -96,19 +90,17 @@ public abstract CompleteMultipartUploadResponse completeMultipartUpload(
9690
* @param request The request object containing the details for uploading the part.
9791
* @param requestBody The content of the part to upload.
9892
* @return An {@link UploadPartResponse} object containing the ETag of the uploaded part.
99-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
93+
* @since 2.60.0
10094
*/
101-
@BetaApi
10295
public abstract UploadPartResponse uploadPart(UploadPartRequest request, RequestBody requestBody);
10396

10497
/**
10598
* Lists all multipart uploads in a bucket.
10699
*
107100
* @param request The request object containing the details for listing the multipart uploads.
108101
* @return A {@link ListMultipartUploadsResponse} object containing the list of multipart uploads.
109-
* @since 2.61.0 This new api is in preview and is subject to breaking changes.
102+
* @since 2.61.0
110103
*/
111-
@BetaApi
112104
public abstract ListMultipartUploadsResponse listMultipartUploads(
113105
ListMultipartUploadsRequest request);
114106

@@ -117,9 +109,8 @@ public abstract ListMultipartUploadsResponse listMultipartUploads(
117109
*
118110
* @param config The configuration for the client.
119111
* @return A new {@link MultipartUploadClient} instance.
120-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
112+
* @since 2.60.0
121113
*/
122-
@BetaApi
123114
public static MultipartUploadClient create(MultipartUploadSettings config) {
124115
HttpStorageOptions options = config.getOptions();
125116
return new MultipartUploadClientImpl(

google-cloud-storage/src/main/java/com/google/cloud/storage/MultipartUploadSettings.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@
1515
*/
1616
package com.google.cloud.storage;
1717

18-
import com.google.api.core.BetaApi;
19-
2018
/**
2119
* Settings for configuring the {@link MultipartUploadClient}.
2220
*
2321
* <p>This class is for internal use only and is not intended for public consumption.
2422
*/
25-
@BetaApi
2623
public final class MultipartUploadSettings {
2724
private final HttpStorageOptions options;
2825

@@ -35,7 +32,6 @@ private MultipartUploadSettings(HttpStorageOptions options) {
3532
*
3633
* @return The {@link HttpStorageOptions}.
3734
*/
38-
@BetaApi
3935
public HttpStorageOptions getOptions() {
4036
return options;
4137
}
@@ -47,7 +43,6 @@ public HttpStorageOptions getOptions() {
4743
* @param options The {@link HttpStorageOptions} to use.
4844
* @return A new {@code MultipartUploadSettings} instance.
4945
*/
50-
@BetaApi
5146
public static MultipartUploadSettings of(HttpStorageOptions options) {
5247
return new MultipartUploadSettings(options);
5348
}

google-cloud-storage/src/main/java/com/google/cloud/storage/RequestBody.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.storage;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.core.InternalExtensionOnly;
2120
import java.io.IOException;
2221
import java.nio.ByteBuffer;
@@ -30,7 +29,6 @@
3029
* @see <a
3130
* href="https://cloud.google.com/storage/docs/multipart-uploads#upload_parts">https://cloud.google.com/storage/docs/multipart-uploads#upload_parts</a>
3231
*/
33-
@BetaApi
3432
@InternalExtensionOnly
3533
public final class RequestBody {
3634

@@ -45,25 +43,21 @@ RewindableContent getContent() {
4543
}
4644

4745
/** Create a new empty RequestBody. */
48-
@BetaApi
4946
public static RequestBody empty() {
5047
return new RequestBody(RewindableContent.empty());
5148
}
5249

5350
/** Create a new RequestBody from the given {@link ByteBuffer}s. */
54-
@BetaApi
5551
public static RequestBody of(ByteBuffer... buffers) {
5652
return new RequestBody(RewindableContent.of(buffers));
5753
}
5854

5955
/** Create a new RequestBody from the given {@link ByteBuffer}s. */
60-
@BetaApi
6156
public static RequestBody of(ByteBuffer[] srcs, int srcsOffset, int srcsLength) {
6257
return new RequestBody(RewindableContent.of(srcs, srcsOffset, srcsLength));
6358
}
6459

6560
/** Create a new RequestBody from the given {@link Path}. */
66-
@BetaApi
6761
public static RequestBody of(Path path) throws IOException {
6862
return new RequestBody(RewindableContent.of(path));
6963
}

0 commit comments

Comments
 (0)