Skip to content

Commit

Permalink
feat: add fields and the BackupType proto for Hot Backups (#2300)
Browse files Browse the repository at this point in the history
* chore: add grpc-java dependencies to WORKSPACE and update gapic-generator-java to 2.43.0

PiperOrigin-RevId: 656487430

Source-Link: googleapis/googleapis@cf16946

Source-Link: https://github.com/googleapis/googleapis-gen/commit/4b4c8ab484b34251b142ad17d14e25a33f32c1b0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGI0YzhhYjQ4NGIzNDI1MWIxNDJhZDE3ZDE0ZTI1YTMzZjMyYzFiMCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add fields and the BackupType proto for Hot Backups
docs: clarify comments and fix typos

PiperOrigin-RevId: 658791576

Source-Link: googleapis/googleapis@c93b54f

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e52ba38a95a82f7588d0dd3a2284c98850dab9e1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTUyYmEzOGE5NWE4MmY3NTg4ZDBkZDNhMjI4NGM5ODg1MGRhYjllMSJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 12, 2024
1 parent 715b7d0 commit acaa3ff
Show file tree
Hide file tree
Showing 16 changed files with 1,011 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4068,7 +4068,7 @@ public final UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsC
* Create a new table by restoring from a completed backup. The returned table [long-running
* operation][google.longrunning.Operation] can be used to track the progress of the operation,
* and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
*
Expand Down Expand Up @@ -4104,7 +4104,7 @@ public final OperationFuture<Table, RestoreTableMetadata> restoreTableAsync(
* Create a new table by restoring from a completed backup. The returned table [long-running
* operation][google.longrunning.Operation] can be used to track the progress of the operation,
* and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
*
Expand Down Expand Up @@ -4140,7 +4140,7 @@ public final OperationFuture<Table, RestoreTableMetadata> restoreTableAsync(
* Create a new table by restoring from a completed backup. The returned table [long-running
* operation][google.longrunning.Operation] can be used to track the progress of the operation,
* and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
*
Expand Down Expand Up @@ -4197,7 +4197,7 @@ public final UnaryCallable<RestoreTableRequest, Operation> restoreTableCallable(
* }</pre>
*
* @param parent Required. The name of the destination cluster that will contain the backup copy.
* The cluster must already exists. Values are of the form:
* The cluster must already exist. Values are of the form:
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are
* combined as {parent}/backups/{backup_id} to create the full backup name, of the form:
Expand Down Expand Up @@ -4255,7 +4255,7 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* }</pre>
*
* @param parent Required. The name of the destination cluster that will contain the backup copy.
* The cluster must already exists. Values are of the form:
* The cluster must already exist. Values are of the form:
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are
* combined as {parent}/backups/{backup_id} to create the full backup name, of the form:
Expand Down Expand Up @@ -4312,7 +4312,7 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* }</pre>
*
* @param parent Required. The name of the destination cluster that will contain the backup copy.
* The cluster must already exists. Values are of the form:
* The cluster must already exist. Values are of the form:
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are
* combined as {parent}/backups/{backup_id} to create the full backup name, of the form:
Expand Down Expand Up @@ -4370,7 +4370,7 @@ public final OperationFuture<Backup, CopyBackupMetadata> copyBackupAsync(
* }</pre>
*
* @param parent Required. The name of the destination cluster that will contain the backup copy.
* The cluster must already exists. Values are of the form:
* The cluster must already exist. Values are of the form:
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are
* combined as {parent}/backups/{backup_id} to create the full backup name, of the form:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -467,6 +468,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "bigtableadmin.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -683,6 +684,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "bigtableadmin.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.InternalApi;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -180,6 +181,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
}

/** Returns the default service endpoint. */
@ObsoleteApi("Use getEndpoint() instead")
public static String getDefaultEndpoint() {
return "bigtable.googleapis.com:443";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.bigtable.admin.v2.Backup$BackupType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.bigtable.admin.v2.Backup$Builder",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,7 @@ public void createBackupTest() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -2155,6 +2156,7 @@ public void createBackupTest2() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -2214,6 +2216,7 @@ public void getBackupTest() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);

Expand Down Expand Up @@ -2259,6 +2262,7 @@ public void getBackupTest2() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);

Expand Down Expand Up @@ -2304,6 +2308,7 @@ public void updateBackupTest() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
mockBigtableTableAdmin.addResponse(expectedResponse);

Expand Down Expand Up @@ -2569,6 +2574,7 @@ public void copyBackupTest() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -2632,6 +2638,7 @@ public void copyBackupTest2() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -2695,6 +2702,7 @@ public void copyBackupTest3() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -2758,6 +2766,7 @@ public void copyBackupTest4() throws Exception {
.setEndTime(Timestamp.newBuilder().build())
.setSizeBytes(-1796325715)
.setEncryptionInfo(EncryptionInfo.newBuilder().build())
.setHotToStandardTime(Timestamp.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ default void listBackups(
* returned table [long-running operation][google.longrunning.Operation] can
* be used to track the progress of the operation, and to cancel it. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
* </pre>
Expand Down Expand Up @@ -2402,7 +2402,7 @@ public void listBackups(
* returned table [long-running operation][google.longrunning.Operation] can
* be used to track the progress of the operation, and to cancel it. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
* </pre>
Expand Down Expand Up @@ -2887,7 +2887,7 @@ public com.google.bigtable.admin.v2.ListBackupsResponse listBackups(
* returned table [long-running operation][google.longrunning.Operation] can
* be used to track the progress of the operation, and to cancel it. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
* </pre>
Expand Down Expand Up @@ -3364,7 +3364,7 @@ protected BigtableTableAdminFutureStub build(
* returned table [long-running operation][google.longrunning.Operation] can
* be used to track the progress of the operation, and to cancel it. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
* [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The
* [response][google.longrunning.Operation.response] type is
* [Table][google.bigtable.admin.v2.Table], if successful.
* </pre>
Expand Down
Loading

0 comments on commit acaa3ff

Please sign in to comment.