Skip to content

Commit 5755881

Browse files
committed
chore: remove @BetaApi tag from MPU
1 parent a2bcea4 commit 5755881

17 files changed

Lines changed: 230 additions & 487 deletions

google-cloud-storage/src/main/java/com/google/cloud/storage/multipartupload/model/AbortMultipartUploadRequest.java

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515
*/
1616
package com.google.cloud.storage.multipartupload.model;
1717

18-
import com.google.api.core.BetaApi;
19-
2018
/**
2119
* Represents a request to abort a multipart upload. This request is used to stop an in-progress
2220
* multipart upload, deleting any previously uploaded parts.
2321
*
24-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
22+
* @since 2.60.0
2523
*/
26-
@BetaApi
2724
public final class AbortMultipartUploadRequest {
2825
private final String bucket;
2926
private final String key;
@@ -41,9 +38,8 @@ private AbortMultipartUploadRequest(Builder builder) {
4138
* Returns the name of the bucket in which the multipart upload is stored.
4239
*
4340
* @return The bucket name.
44-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
41+
* @since 2.60.0
4542
*/
46-
@BetaApi
4743
public String bucket() {
4844
return bucket;
4945
}
@@ -52,9 +48,8 @@ public String bucket() {
5248
* Returns the name of the object that is being uploaded.
5349
*
5450
* @return The object name.
55-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
51+
* @since 2.60.0
5652
*/
57-
@BetaApi
5853
public String key() {
5954
return key;
6055
}
@@ -63,9 +58,8 @@ public String key() {
6358
* Returns the upload ID of the multipart upload to abort.
6459
*
6560
* @return The upload ID.
66-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
61+
* @since 2.60.0
6762
*/
68-
@BetaApi
6963
public String uploadId() {
7064
return uploadId;
7165
}
@@ -76,9 +70,8 @@ public String uploadId() {
7670
* @return the user-project.
7771
* @see <a
7872
* href="https://docs.cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject">x-goog-user-project</a>
79-
* @since 2.61 This new api is in preview and is subject to breaking changes.
73+
* @since 2.61.0
8074
*/
81-
@BetaApi
8275
public String userProject() {
8376
return userProject;
8477
}
@@ -87,19 +80,17 @@ public String userProject() {
8780
* Returns a new builder for creating {@link AbortMultipartUploadRequest} instances.
8881
*
8982
* @return A new {@link Builder}.
90-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
83+
* @since 2.60.0
9184
*/
92-
@BetaApi
9385
public static Builder builder() {
9486
return new Builder();
9587
}
9688

9789
/**
9890
* A builder for creating {@link AbortMultipartUploadRequest} instances.
9991
*
100-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
92+
* @since 2.60.0
10193
*/
102-
@BetaApi
10394
public static class Builder {
10495
private String bucket;
10596
private String key;
@@ -113,9 +104,8 @@ private Builder() {}
113104
*
114105
* @param bucket The bucket name.
115106
* @return This builder.
116-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
107+
* @since 2.60.0
117108
*/
118-
@BetaApi
119109
public Builder bucket(String bucket) {
120110
this.bucket = bucket;
121111
return this;
@@ -126,9 +116,8 @@ public Builder bucket(String bucket) {
126116
*
127117
* @param key The object name.
128118
* @return This builder.
129-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
119+
* @since 2.60.0
130120
*/
131-
@BetaApi
132121
public Builder key(String key) {
133122
this.key = key;
134123
return this;
@@ -139,9 +128,8 @@ public Builder key(String key) {
139128
*
140129
* @param uploadId The upload ID.
141130
* @return This builder.
142-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
131+
* @since 2.60.0
143132
*/
144-
@BetaApi
145133
public Builder uploadId(String uploadId) {
146134
this.uploadId = uploadId;
147135
return this;
@@ -154,9 +142,8 @@ public Builder uploadId(String uploadId) {
154142
* @return This builder.
155143
* @see <a
156144
* href="https://docs.cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject">x-goog-user-project</a>
157-
* @since 2.61 This new api is in preview and is subject to breaking changes.
145+
* @since 2.61.0
158146
*/
159-
@BetaApi
160147
public Builder userProject(String userProject) {
161148
this.userProject = userProject;
162149
return this;
@@ -166,9 +153,8 @@ public Builder userProject(String userProject) {
166153
* Builds a new {@link AbortMultipartUploadRequest} instance.
167154
*
168155
* @return A new {@link AbortMultipartUploadRequest}.
169-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
156+
* @since 2.60.0
170157
*/
171-
@BetaApi
172158
public AbortMultipartUploadRequest build() {
173159
return new AbortMultipartUploadRequest(this);
174160
}

google-cloud-storage/src/main/java/com/google/cloud/storage/multipartupload/model/AbortMultipartUploadResponse.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515
*/
1616
package com.google.cloud.storage.multipartupload.model;
1717

18-
import com.google.api.core.BetaApi;
19-
2018
/**
2119
* Represents a response to an abort multipart upload request. This class is currently empty as the
2220
* abort operation does not return any specific data in its response body.
2321
*
24-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
22+
* @since 2.60.0
2523
*/
26-
@BetaApi
2724
public final class AbortMultipartUploadResponse {}

google-cloud-storage/src/main/java/com/google/cloud/storage/multipartupload/model/CompleteMultipartUploadRequest.java

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@
1616

1717
package com.google.cloud.storage.multipartupload.model;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.common.base.MoreObjects;
2120
import java.util.Objects;
2221

2322
/**
2423
* Represents a request to complete a multipart upload.
2524
*
26-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
25+
* @since 2.60.0
2726
*/
28-
@BetaApi
2927
public final class CompleteMultipartUploadRequest {
3028

3129
private final String bucket;
@@ -46,9 +44,8 @@ private CompleteMultipartUploadRequest(Builder builder) {
4644
* Returns the bucket name.
4745
*
4846
* @return The bucket name.
49-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
47+
* @since 2.60.0
5048
*/
51-
@BetaApi
5249
public String bucket() {
5350
return bucket;
5451
}
@@ -57,9 +54,8 @@ public String bucket() {
5754
* Returns the object name.
5855
*
5956
* @return The object name.
60-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
57+
* @since 2.60.0
6158
*/
62-
@BetaApi
6359
public String key() {
6460
return key;
6561
}
@@ -68,9 +64,8 @@ public String key() {
6864
* Returns the upload ID of the multipart upload.
6965
*
7066
* @return The upload ID.
71-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
67+
* @since 2.60.0
7268
*/
73-
@BetaApi
7469
public String uploadId() {
7570
return uploadId;
7671
}
@@ -79,9 +74,8 @@ public String uploadId() {
7974
* Returns the {@link CompletedMultipartUpload} payload for this request.
8075
*
8176
* @return The {@link CompletedMultipartUpload} payload.
82-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
77+
* @since 2.60.0
8378
*/
84-
@BetaApi
8579
public CompletedMultipartUpload multipartUpload() {
8680
return multipartUpload;
8781
}
@@ -92,9 +86,8 @@ public CompletedMultipartUpload multipartUpload() {
9286
* @return the user-project.
9387
* @see <a
9488
* href="https://docs.cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject">x-goog-user-project</a>
95-
* @since 2.61 This new api is in preview and is subject to breaking changes.
89+
* @since 2.61.0
9690
*/
97-
@BetaApi
9891
public String userProject() {
9992
return userProject;
10093
}
@@ -135,19 +128,17 @@ public String toString() {
135128
* Creates a new builder for {@link CompleteMultipartUploadRequest}.
136129
*
137130
* @return A new builder.
138-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
131+
* @since 2.60.0
139132
*/
140-
@BetaApi
141133
public static Builder builder() {
142134
return new Builder();
143135
}
144136

145137
/**
146138
* Builder for {@link CompleteMultipartUploadRequest}.
147139
*
148-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
140+
* @since 2.60.0
149141
*/
150-
@BetaApi
151142
public static class Builder {
152143
private String bucket;
153144
private String key;
@@ -162,9 +153,8 @@ private Builder() {}
162153
*
163154
* @param bucket The bucket name.
164155
* @return This builder.
165-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
156+
* @since 2.60.0
166157
*/
167-
@BetaApi
168158
public Builder bucket(String bucket) {
169159
this.bucket = bucket;
170160
return this;
@@ -175,9 +165,8 @@ public Builder bucket(String bucket) {
175165
*
176166
* @param key The object name.
177167
* @return This builder.
178-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
168+
* @since 2.60.0
179169
*/
180-
@BetaApi
181170
public Builder key(String key) {
182171
this.key = key;
183172
return this;
@@ -188,9 +177,8 @@ public Builder key(String key) {
188177
*
189178
* @param uploadId The upload ID.
190179
* @return This builder.
191-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
180+
* @since 2.60.0
192181
*/
193-
@BetaApi
194182
public Builder uploadId(String uploadId) {
195183
this.uploadId = uploadId;
196184
return this;
@@ -201,9 +189,8 @@ public Builder uploadId(String uploadId) {
201189
*
202190
* @param completedMultipartUpload The {@link CompletedMultipartUpload} payload.
203191
* @return This builder.
204-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
192+
* @since 2.60.0
205193
*/
206-
@BetaApi
207194
public Builder multipartUpload(CompletedMultipartUpload completedMultipartUpload) {
208195
this.multipartUpload = completedMultipartUpload;
209196
return this;
@@ -216,9 +203,8 @@ public Builder multipartUpload(CompletedMultipartUpload completedMultipartUpload
216203
* @return This builder.
217204
* @see <a
218205
* href="https://docs.cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject">x-goog-user-project</a>
219-
* @since 2.61 This new api is in preview and is subject to breaking changes.
206+
* @since 2.61.0
220207
*/
221-
@BetaApi
222208
public Builder userProject(String userProject) {
223209
this.userProject = userProject;
224210
return this;
@@ -228,9 +214,8 @@ public Builder userProject(String userProject) {
228214
* Builds the {@link CompleteMultipartUploadRequest} object.
229215
*
230216
* @return The new {@link CompleteMultipartUploadRequest} object.
231-
* @since 2.60.0 This new api is in preview and is subject to breaking changes.
217+
* @since 2.60.0
232218
*/
233-
@BetaApi
234219
public CompleteMultipartUploadRequest build() {
235220
return new CompleteMultipartUploadRequest(this);
236221
}

0 commit comments

Comments
 (0)