Skip to content

Commit b3ad450

Browse files
committed
Add deprecated annotation to some V1 apis.
1 parent b6a0aea commit b3ad450

File tree

1 file changed

+6
-0
lines changed
  • sdks/java/extensions/google-cloud-platform-core/src/main/java/org/apache/beam/sdk/extensions/gcp/util

1 file changed

+6
-0
lines changed

sdks/java/extensions/google-cloud-platform-core/src/main/java/org/apache/beam/sdk/extensions/gcp/util/GcsUtil.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ public long bucketOwner(GcsPath path) throws IOException {
334334
return delegate.bucketOwner(path);
335335
}
336336

337+
/** @deprecated use {@link #createBucket(BucketInfo)}. */
338+
@Deprecated
337339
public void createBucket(String projectId, Bucket bucket) throws IOException {
338340
delegate.createBucket(projectId, bucket);
339341
}
@@ -346,6 +348,8 @@ public void createBucket(BucketInfo bucketInfo) throws IOException {
346348
}
347349
}
348350

351+
/** @deprecated use {@link #getBucketV2(GcsPath)}. */
352+
@Deprecated
349353
public @Nullable Bucket getBucket(GcsPath path) throws IOException {
350354
return delegate.getBucket(path);
351355
}
@@ -355,6 +359,8 @@ public void createBucket(BucketInfo bucketInfo) throws IOException {
355359
throw new IOException("GcsUtil2 not initialized.");
356360
}
357361

362+
/** @deprecated use {@link #removeBucket(BucketInfo)}. */
363+
@Deprecated
358364
public void removeBucket(Bucket bucket) throws IOException {
359365
delegate.removeBucket(bucket);
360366
}

0 commit comments

Comments
 (0)