Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-bigtableadmin</artifactId>
<version>v2-rev20260913-2.0.0</version>
<version>v2-rev20261007-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-bigtableadmin:v2-rev20260913-2.0.0'
implementation 'com.google.apis:google-api-services-bigtableadmin:v2-rev20261007-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
@SuppressWarnings("javadoc")
public final class AutomatedBackupPolicy extends com.google.api.client.json.GenericJson {

/**
* Optional. If `true`, automated backups are explicitly disabled on this table. This allows users
* to opt out of default enablement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean disabled;

/**
* How frequently automated backups should occur. The only supported value at this time is 24
* hours. An undefined frequency is treated as 24 hours.
Expand All @@ -38,6 +46,16 @@ public final class AutomatedBackupPolicy extends com.google.api.client.json.Gene
@com.google.api.client.util.Key
private String frequency;

/**
* Optional. The amount of time that the automated backups remain hot. If specified, the backups
* created by this policy are `HOT` backups. If not specified, the backups are `STANDARD` backups.
* The value must be at least 24 hours and at most 10 days, and can't exceed the policy's
* `retention_period`. Only SSD instances support `HOT` automated backups.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String keepHotDuration;

/**
* Optional. A list of Cloud Bigtable zones where automated backups are allowed to be created. If
* empty, automated backups will be created in all zones of the instance. Locations are in the
Expand All @@ -56,6 +74,25 @@ public final class AutomatedBackupPolicy extends com.google.api.client.json.Gene
@com.google.api.client.util.Key
private String retentionPeriod;

/**
* Optional. If `true`, automated backups are explicitly disabled on this table. This allows users
* to opt out of default enablement.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDisabled() {
return disabled;
}

/**
* Optional. If `true`, automated backups are explicitly disabled on this table. This allows users
* to opt out of default enablement.
* @param disabled disabled or {@code null} for none
*/
public AutomatedBackupPolicy setDisabled(java.lang.Boolean disabled) {
this.disabled = disabled;
return this;
}

/**
* How frequently automated backups should occur. The only supported value at this time is 24
* hours. An undefined frequency is treated as 24 hours.
Expand All @@ -75,6 +112,29 @@ public AutomatedBackupPolicy setFrequency(String frequency) {
return this;
}

/**
* Optional. The amount of time that the automated backups remain hot. If specified, the backups
* created by this policy are `HOT` backups. If not specified, the backups are `STANDARD` backups.
* The value must be at least 24 hours and at most 10 days, and can't exceed the policy's
* `retention_period`. Only SSD instances support `HOT` automated backups.
* @return value or {@code null} for none
*/
public String getKeepHotDuration() {
return keepHotDuration;
}

/**
* Optional. The amount of time that the automated backups remain hot. If specified, the backups
* created by this policy are `HOT` backups. If not specified, the backups are `STANDARD` backups.
* The value must be at least 24 hours and at most 10 days, and can't exceed the policy's
* `retention_period`. Only SSD instances support `HOT` automated backups.
* @param keepHotDuration keepHotDuration or {@code null} for none
*/
public AutomatedBackupPolicy setKeepHotDuration(String keepHotDuration) {
this.keepHotDuration = keepHotDuration;
return this;
}

/**
* Optional. A list of Cloud Bigtable zones where automated backups are allowed to be created. If
* empty, automated backups will be created in all zones of the instance. Locations are in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ public final class RestoreTableRequest extends com.google.api.client.json.Generi
@com.google.api.client.util.Key
private java.lang.String backup;

/**
* Optional. Properties of the table to be restored. Only the fields specified in update_mask will
* be used to set the restored table's properties.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Table table;

/**
* Required. The id of the table to create and restore to. This table must not already exist. The
* `table_id` appended to `parent` forms the full table name of the form
Expand All @@ -47,6 +55,19 @@ public final class RestoreTableRequest extends com.google.api.client.json.Generi
@com.google.api.client.util.Key
private java.lang.String tableId;

/**
* Optional. The list of fields to set on the new table. A mask specifying which fields (e.g.
* `deletion_protection`) in the `table` field should be set. This mask is relative to the `table`
* field, not to the request message. The wildcard (*) path is currently not supported. Currently
* RestoreTable only supports the following fields for modification: * `deletion_protection`:
* Defaults to `false` if not set. * `automated_backup_policy`: Defaults to no automated backup
* policy if not set. Output-only fields in the mask will be ignored. If any other field not
* listed above is included in `update_mask`, it will result in an INVALID_ARGUMENT error.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateMask;

/**
* Name of the backup from which to restore. Values are of the form
* `projects//instances//clusters//backups/`.
Expand All @@ -66,6 +87,25 @@ public RestoreTableRequest setBackup(java.lang.String backup) {
return this;
}

/**
* Optional. Properties of the table to be restored. Only the fields specified in update_mask will
* be used to set the restored table's properties.
* @return value or {@code null} for none
*/
public Table getTable() {
return table;
}

/**
* Optional. Properties of the table to be restored. Only the fields specified in update_mask will
* be used to set the restored table's properties.
* @param table table or {@code null} for none
*/
public RestoreTableRequest setTable(Table table) {
this.table = table;
return this;
}

/**
* Required. The id of the table to create and restore to. This table must not already exist. The
* `table_id` appended to `parent` forms the full table name of the form
Expand All @@ -87,6 +127,35 @@ public RestoreTableRequest setTableId(java.lang.String tableId) {
return this;
}

/**
* Optional. The list of fields to set on the new table. A mask specifying which fields (e.g.
* `deletion_protection`) in the `table` field should be set. This mask is relative to the `table`
* field, not to the request message. The wildcard (*) path is currently not supported. Currently
* RestoreTable only supports the following fields for modification: * `deletion_protection`:
* Defaults to `false` if not set. * `automated_backup_policy`: Defaults to no automated backup
* policy if not set. Output-only fields in the mask will be ignored. If any other field not
* listed above is included in `update_mask`, it will result in an INVALID_ARGUMENT error.
* @return value or {@code null} for none
*/
public String getUpdateMask() {
return updateMask;
}

/**
* Optional. The list of fields to set on the new table. A mask specifying which fields (e.g.
* `deletion_protection`) in the `table` field should be set. This mask is relative to the `table`
* field, not to the request message. The wildcard (*) path is currently not supported. Currently
* RestoreTable only supports the following fields for modification: * `deletion_protection`:
* Defaults to `false` if not set. * `automated_backup_policy`: Defaults to no automated backup
* policy if not set. Output-only fields in the mask will be ignored. If any other field not
* listed above is included in `update_mask`, it will result in an INVALID_ARGUMENT error.
* @param updateMask updateMask or {@code null} for none
*/
public RestoreTableRequest setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}

@Override
public RestoreTableRequest set(String fieldName, Object value) {
return (RestoreTableRequest) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ public final class Table extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.Boolean deletionProtection;

/**
* Output only. The effective automated backup policy applied to the table. This represents the
* policy actually in effect, which may be a system-default policy if the user has not explicitly
* configured one. Views: `SCHEMA_VIEW`, `FULL`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private AutomatedBackupPolicy effectiveAutomatedBackupPolicy;

/**
* Immutable. The granularity at which timestamps are stored in this table. Timestamps not
* matching the granularity will be rejected. If unspecified at creation time, the value will be
Expand Down Expand Up @@ -267,6 +276,27 @@ public Table setDeletionProtection(java.lang.Boolean deletionProtection) {
return this;
}

/**
* Output only. The effective automated backup policy applied to the table. This represents the
* policy actually in effect, which may be a system-default policy if the user has not explicitly
* configured one. Views: `SCHEMA_VIEW`, `FULL`.
* @return value or {@code null} for none
*/
public AutomatedBackupPolicy getEffectiveAutomatedBackupPolicy() {
return effectiveAutomatedBackupPolicy;
}

/**
* Output only. The effective automated backup policy applied to the table. This represents the
* policy actually in effect, which may be a system-default policy if the user has not explicitly
* configured one. Views: `SCHEMA_VIEW`, `FULL`.
* @param effectiveAutomatedBackupPolicy effectiveAutomatedBackupPolicy or {@code null} for none
*/
public Table setEffectiveAutomatedBackupPolicy(AutomatedBackupPolicy effectiveAutomatedBackupPolicy) {
this.effectiveAutomatedBackupPolicy = effectiveAutomatedBackupPolicy;
return this;
}

/**
* Immutable. The granularity at which timestamps are stored in this table. Timestamps not
* matching the granularity will be rejected. If unspecified at creation time, the value will be
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-bigtableadmin/v2/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-bigtableadmin</artifactId>
<version>v2-rev20260913-2.0.0</version>
<name>Cloud Bigtable Admin API v2-rev20260913-2.0.0</name>
<version>v2-rev20261007-2.0.0</version>
<name>Cloud Bigtable Admin API v2-rev20261007-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-bigtableadmin/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-bigtableadmin</artifactId>
<version>v2-rev20260913-2.0.0</version>
<version>v2-rev20261007-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-bigtableadmin:v2-rev20260913-2.0.0'
implementation 'com.google.apis:google-api-services-bigtableadmin:v2-rev20261007-2.0.0'
}
```

Expand Down
Loading