Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [storagetransfer] add event driven transfer configuration #9585

Merged
merged 2 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java-storage-transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.16.0</version>
<version>26.17.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.19.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.20.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ public final void resumeTransferOperation(TransferProto.ResumeTransferOperationR

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

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

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Attempts to start a new TransferOperation for the current TransferJob. A TransferJob has a
* maximum of one active TransferOperation. If this method is called while a TransferOperation is
* active, an error will be returned.
* Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one
* active `TransferOperation`. If this method is called while a `TransferOperation` is active, an
* error is returned.
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public void createTransferJobTest() throws Exception {
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
.setSchedule(TransferTypes.Schedule.newBuilder().build())
.setEventStream(TransferTypes.EventStream.newBuilder().build())
.setCreationTime(Timestamp.newBuilder().build())
.setLastModificationTime(Timestamp.newBuilder().build())
.setDeletionTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -204,6 +205,7 @@ public void updateTransferJobTest() throws Exception {
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
.setSchedule(TransferTypes.Schedule.newBuilder().build())
.setEventStream(TransferTypes.EventStream.newBuilder().build())
.setCreationTime(Timestamp.newBuilder().build())
.setLastModificationTime(Timestamp.newBuilder().build())
.setDeletionTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -270,6 +272,7 @@ public void getTransferJobTest() throws Exception {
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
.setSchedule(TransferTypes.Schedule.newBuilder().build())
.setEventStream(TransferTypes.EventStream.newBuilder().build())
.setCreationTime(Timestamp.newBuilder().build())
.setLastModificationTime(Timestamp.newBuilder().build())
.setDeletionTime(Timestamp.newBuilder().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public void createTransferJobTest() throws Exception {
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
.setSchedule(TransferTypes.Schedule.newBuilder().build())
.setEventStream(TransferTypes.EventStream.newBuilder().build())
.setCreationTime(Timestamp.newBuilder().build())
.setLastModificationTime(Timestamp.newBuilder().build())
.setDeletionTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -199,6 +200,7 @@ public void updateTransferJobTest() throws Exception {
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
.setSchedule(TransferTypes.Schedule.newBuilder().build())
.setEventStream(TransferTypes.EventStream.newBuilder().build())
.setCreationTime(Timestamp.newBuilder().build())
.setLastModificationTime(Timestamp.newBuilder().build())
.setDeletionTime(Timestamp.newBuilder().build())
Expand Down Expand Up @@ -264,6 +266,7 @@ public void getTransferJobTest() throws Exception {
.setNotificationConfig(TransferTypes.NotificationConfig.newBuilder().build())
.setLoggingConfig(TransferTypes.LoggingConfig.newBuilder().build())
.setSchedule(TransferTypes.Schedule.newBuilder().build())
.setEventStream(TransferTypes.EventStream.newBuilder().build())
.setCreationTime(Timestamp.newBuilder().build())
.setLastModificationTime(Timestamp.newBuilder().build())
.setDeletionTime(Timestamp.newBuilder().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,8 @@ default void createTransferJob(
* <pre>
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
* using this RPC (for example, to set a job's status to
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
Expand Down Expand Up @@ -907,9 +907,10 @@ default void resumeTransferOperation(
*
*
* <pre>
* Attempts to start a new TransferOperation for the current TransferJob. A
* TransferJob has a maximum of one active TransferOperation. If this method
* is called while a TransferOperation is active, an error will be returned.
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
* </pre>
*/
default void runTransferJob(
Expand Down Expand Up @@ -1097,8 +1098,8 @@ public void createTransferJob(
* <pre>
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
* using this RPC (for example, to set a job's status to
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
Expand Down Expand Up @@ -1185,9 +1186,10 @@ public void resumeTransferOperation(
*
*
* <pre>
* Attempts to start a new TransferOperation for the current TransferJob. A
* TransferJob has a maximum of one active TransferOperation. If this method
* is called while a TransferOperation is active, an error will be returned.
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
* </pre>
*/
public void runTransferJob(
Expand Down Expand Up @@ -1365,8 +1367,8 @@ public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob createTrans
* <pre>
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
* using this RPC (for example, to set a job's status to
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
Expand Down Expand Up @@ -1435,9 +1437,10 @@ public com.google.protobuf.Empty resumeTransferOperation(
*
*
* <pre>
* Attempts to start a new TransferOperation for the current TransferJob. A
* TransferJob has a maximum of one active TransferOperation. If this method
* is called while a TransferOperation is active, an error will be returned.
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
* </pre>
*/
public com.google.longrunning.Operation runTransferJob(
Expand Down Expand Up @@ -1593,8 +1596,8 @@ protected StorageTransferServiceFutureStub build(
* <pre>
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
* using this RPC (for example, to set a job's status to
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
Expand Down Expand Up @@ -1672,9 +1675,10 @@ protected StorageTransferServiceFutureStub build(
*
*
* <pre>
* Attempts to start a new TransferOperation for the current TransferJob. A
* TransferJob has a maximum of one active TransferOperation. If this method
* is called while a TransferOperation is active, an error will be returned.
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
Expand Down
Loading