Skip to content

Commit 9632eaf

Browse files
feat: [storagetransfer] add event driven transfer configuration (#9585)
* feat: add event driven transfer configuration PiperOrigin-RevId: 543540202 Source-Link: googleapis/googleapis@48e47e8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/66b276eda2f701eb12805750c2755163f0bb8c76 Copy-Tag: eyJwIjoiamF2YS1zdG9yYWdlLXRyYW5zZmVyLy5Pd2xCb3QueWFtbCIsImgiOiI2NmIyNzZlZGEyZjcwMWViMTI4MDU3NTBjMjc1NTE2M2YwYmI4Yzc2In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c4e1780 commit 9632eaf

File tree

9 files changed

+4839
-1434
lines changed

9 files changed

+4839
-1434
lines changed

java-storage-transfer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.16.0</version>
23+
<version>26.17.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.19.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.20.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,9 @@ public final void resumeTransferOperation(TransferProto.ResumeTransferOperationR
709709

710710
// AUTO-GENERATED DOCUMENTATION AND METHOD.
711711
/**
712-
* Attempts to start a new TransferOperation for the current TransferJob. A TransferJob has a
713-
* maximum of one active TransferOperation. If this method is called while a TransferOperation is
714-
* active, an error will be returned.
712+
* Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one
713+
* active `TransferOperation`. If this method is called while a `TransferOperation` is active, an
714+
* error is returned.
715715
*
716716
* <p>Sample code:
717717
*
@@ -742,9 +742,9 @@ public final OperationFuture<Empty, TransferTypes.TransferOperation> runTransfer
742742

743743
// AUTO-GENERATED DOCUMENTATION AND METHOD.
744744
/**
745-
* Attempts to start a new TransferOperation for the current TransferJob. A TransferJob has a
746-
* maximum of one active TransferOperation. If this method is called while a TransferOperation is
747-
* active, an error will be returned.
745+
* Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one
746+
* active `TransferOperation`. If this method is called while a `TransferOperation` is active, an
747+
* error is returned.
748748
*
749749
* <p>Sample code:
750750
*
@@ -776,9 +776,9 @@ public final OperationFuture<Empty, TransferTypes.TransferOperation> runTransfer
776776

777777
// AUTO-GENERATED DOCUMENTATION AND METHOD.
778778
/**
779-
* Attempts to start a new TransferOperation for the current TransferJob. A TransferJob has a
780-
* maximum of one active TransferOperation. If this method is called while a TransferOperation is
781-
* active, an error will be returned.
779+
* Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one
780+
* active `TransferOperation`. If this method is called while a `TransferOperation` is active, an
781+
* error is returned.
782782
*
783783
* <p>Sample code:
784784
*

java-storage-transfer/google-cloud-storage-transfer/src/test/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClientHttpJsonTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public void createTransferJobTest() throws Exception {
144144
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
145145
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
146146
.setSchedule(TransferTypes.Schedule.newBuilder().build())
147+
.setEventStream(TransferTypes.EventStream.newBuilder().build())
147148
.setCreationTime(Timestamp.newBuilder().build())
148149
.setLastModificationTime(Timestamp.newBuilder().build())
149150
.setDeletionTime(Timestamp.newBuilder().build())
@@ -204,6 +205,7 @@ public void updateTransferJobTest() throws Exception {
204205
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
205206
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
206207
.setSchedule(TransferTypes.Schedule.newBuilder().build())
208+
.setEventStream(TransferTypes.EventStream.newBuilder().build())
207209
.setCreationTime(Timestamp.newBuilder().build())
208210
.setLastModificationTime(Timestamp.newBuilder().build())
209211
.setDeletionTime(Timestamp.newBuilder().build())
@@ -270,6 +272,7 @@ public void getTransferJobTest() throws Exception {
270272
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
271273
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
272274
.setSchedule(TransferTypes.Schedule.newBuilder().build())
275+
.setEventStream(TransferTypes.EventStream.newBuilder().build())
273276
.setCreationTime(Timestamp.newBuilder().build())
274277
.setLastModificationTime(Timestamp.newBuilder().build())
275278
.setDeletionTime(Timestamp.newBuilder().build())

java-storage-transfer/google-cloud-storage-transfer/src/test/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClientTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public void createTransferJobTest() throws Exception {
144144
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
145145
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
146146
.setSchedule(TransferTypes.Schedule.newBuilder().build())
147+
.setEventStream(TransferTypes.EventStream.newBuilder().build())
147148
.setCreationTime(Timestamp.newBuilder().build())
148149
.setLastModificationTime(Timestamp.newBuilder().build())
149150
.setDeletionTime(Timestamp.newBuilder().build())
@@ -199,6 +200,7 @@ public void updateTransferJobTest() throws Exception {
199200
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
200201
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
201202
.setSchedule(TransferTypes.Schedule.newBuilder().build())
203+
.setEventStream(TransferTypes.EventStream.newBuilder().build())
202204
.setCreationTime(Timestamp.newBuilder().build())
203205
.setLastModificationTime(Timestamp.newBuilder().build())
204206
.setDeletionTime(Timestamp.newBuilder().build())
@@ -264,6 +266,7 @@ public void getTransferJobTest() throws Exception {
264266
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
265267
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
266268
.setSchedule(TransferTypes.Schedule.newBuilder().build())
269+
.setEventStream(TransferTypes.EventStream.newBuilder().build())
267270
.setCreationTime(Timestamp.newBuilder().build())
268271
.setLastModificationTime(Timestamp.newBuilder().build())
269272
.setDeletionTime(Timestamp.newBuilder().build())

java-storage-transfer/grpc-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceGrpc.java

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ default void createTransferJob(
829829
* <pre>
830830
* Updates a transfer job. Updating a job's transfer spec does not affect
831831
* transfer operations that are running already.
832-
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
833-
* using this RPC (for example, to set a job's status to
832+
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
833+
* field can be modified using this RPC (for example, to set a job's status to
834834
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
835835
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
836836
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
@@ -907,9 +907,10 @@ default void resumeTransferOperation(
907907
*
908908
*
909909
* <pre>
910-
* Attempts to start a new TransferOperation for the current TransferJob. A
911-
* TransferJob has a maximum of one active TransferOperation. If this method
912-
* is called while a TransferOperation is active, an error will be returned.
910+
* Starts a new operation for the specified transfer job.
911+
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
912+
* method is called while a `TransferOperation` is active, an error is
913+
* returned.
913914
* </pre>
914915
*/
915916
default void runTransferJob(
@@ -1097,8 +1098,8 @@ public void createTransferJob(
10971098
* <pre>
10981099
* Updates a transfer job. Updating a job's transfer spec does not affect
10991100
* transfer operations that are running already.
1100-
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
1101-
* using this RPC (for example, to set a job's status to
1101+
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
1102+
* field can be modified using this RPC (for example, to set a job's status to
11021103
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
11031104
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
11041105
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
@@ -1185,9 +1186,10 @@ public void resumeTransferOperation(
11851186
*
11861187
*
11871188
* <pre>
1188-
* Attempts to start a new TransferOperation for the current TransferJob. A
1189-
* TransferJob has a maximum of one active TransferOperation. If this method
1190-
* is called while a TransferOperation is active, an error will be returned.
1189+
* Starts a new operation for the specified transfer job.
1190+
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
1191+
* method is called while a `TransferOperation` is active, an error is
1192+
* returned.
11911193
* </pre>
11921194
*/
11931195
public void runTransferJob(
@@ -1365,8 +1367,8 @@ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob createTrans
13651367
* <pre>
13661368
* Updates a transfer job. Updating a job's transfer spec does not affect
13671369
* transfer operations that are running already.
1368-
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
1369-
* using this RPC (for example, to set a job's status to
1370+
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
1371+
* field can be modified using this RPC (for example, to set a job's status to
13701372
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
13711373
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
13721374
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
@@ -1435,9 +1437,10 @@ public com.google.protobuf.Empty resumeTransferOperation(
14351437
*
14361438
*
14371439
* <pre>
1438-
* Attempts to start a new TransferOperation for the current TransferJob. A
1439-
* TransferJob has a maximum of one active TransferOperation. If this method
1440-
* is called while a TransferOperation is active, an error will be returned.
1440+
* Starts a new operation for the specified transfer job.
1441+
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
1442+
* method is called while a `TransferOperation` is active, an error is
1443+
* returned.
14411444
* </pre>
14421445
*/
14431446
public com.google.longrunning.Operation runTransferJob(
@@ -1593,8 +1596,8 @@ protected StorageTransferServiceFutureStub build(
15931596
* <pre>
15941597
* Updates a transfer job. Updating a job's transfer spec does not affect
15951598
* transfer operations that are running already.
1596-
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
1597-
* using this RPC (for example, to set a job's status to
1599+
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
1600+
* field can be modified using this RPC (for example, to set a job's status to
15981601
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
15991602
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
16001603
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
@@ -1672,9 +1675,10 @@ protected StorageTransferServiceFutureStub build(
16721675
*
16731676
*
16741677
* <pre>
1675-
* Attempts to start a new TransferOperation for the current TransferJob. A
1676-
* TransferJob has a maximum of one active TransferOperation. If this method
1677-
* is called while a TransferOperation is active, an error will be returned.
1678+
* Starts a new operation for the specified transfer job.
1679+
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
1680+
* method is called while a `TransferOperation` is active, an error is
1681+
* returned.
16781682
* </pre>
16791683
*/
16801684
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>

0 commit comments

Comments
 (0)