Skip to content

Commit 841a400

Browse files
1 parent 9be7dbb commit 841a400

File tree

7 files changed

+127
-29
lines changed

7 files changed

+127
-29
lines changed

clients/google-api-services-spanner/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-spanner</artifactId>
25-
<version>v1-rev20250123-2.0.0</version>
25+
<version>v1-rev20250201-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250123-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250201-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Backup.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ public final class Backup extends com.google.api.client.json.GenericJson {
126126
@com.google.api.client.util.Key
127127
private java.lang.String incrementalBackupChainId;
128128

129+
/**
130+
* Output only. The instance partition(s) storing the backup. This is the same as the list of the
131+
* instance partition(s) that the database had footprint in at the backup's `version_time`.
132+
* The value may be {@code null}.
133+
*/
134+
@com.google.api.client.util.Key
135+
private java.util.List<BackupInstancePartition> instancePartitions;
136+
129137
/**
130138
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A
131139
* backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup,
@@ -429,6 +437,25 @@ public Backup setIncrementalBackupChainId(java.lang.String incrementalBackupChai
429437
return this;
430438
}
431439

440+
/**
441+
* Output only. The instance partition(s) storing the backup. This is the same as the list of the
442+
* instance partition(s) that the database had footprint in at the backup's `version_time`.
443+
* @return value or {@code null} for none
444+
*/
445+
public java.util.List<BackupInstancePartition> getInstancePartitions() {
446+
return instancePartitions;
447+
}
448+
449+
/**
450+
* Output only. The instance partition(s) storing the backup. This is the same as the list of the
451+
* instance partition(s) that the database had footprint in at the backup's `version_time`.
452+
* @param instancePartitions instancePartitions or {@code null} for none
453+
*/
454+
public Backup setInstancePartitions(java.util.List<BackupInstancePartition> instancePartitions) {
455+
this.instancePartitions = instancePartitions;
456+
return this;
457+
}
458+
432459
/**
433460
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A
434461
* backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.spanner.v1.model;
18+
19+
/**
20+
* Instance partition information for the backup.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class BackupInstancePartition extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* A unique identifier for the instance partition. Values are of the form
34+
* `projects//instances//instancePartitions/`
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String instancePartition;
39+
40+
/**
41+
* A unique identifier for the instance partition. Values are of the form
42+
* `projects//instances//instancePartitions/`
43+
* @return value or {@code null} for none
44+
*/
45+
public java.lang.String getInstancePartition() {
46+
return instancePartition;
47+
}
48+
49+
/**
50+
* A unique identifier for the instance partition. Values are of the form
51+
* `projects//instances//instancePartitions/`
52+
* @param instancePartition instancePartition or {@code null} for none
53+
*/
54+
public BackupInstancePartition setInstancePartition(java.lang.String instancePartition) {
55+
this.instancePartition = instancePartition;
56+
return this;
57+
}
58+
59+
@Override
60+
public BackupInstancePartition set(String fieldName, Object value) {
61+
return (BackupInstancePartition) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public BackupInstancePartition clone() {
66+
return (BackupInstancePartition) super.clone();
67+
}
68+
69+
}

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/BackupSchedule.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
public final class BackupSchedule extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Optional. The encryption configuration that will be used to encrypt the backup. If this field
34-
* is not specified, the backup will use the same encryption configuration as the database.
33+
* Optional. The encryption configuration that is used to encrypt the backup. If this field is not
34+
* specified, the backup uses the same encryption configuration as the database.
3535
* The value may be {@code null}.
3636
*/
3737
@com.google.api.client.util.Key
@@ -86,17 +86,17 @@ public final class BackupSchedule extends com.google.api.client.json.GenericJson
8686
private String updateTime;
8787

8888
/**
89-
* Optional. The encryption configuration that will be used to encrypt the backup. If this field
90-
* is not specified, the backup will use the same encryption configuration as the database.
89+
* Optional. The encryption configuration that is used to encrypt the backup. If this field is not
90+
* specified, the backup uses the same encryption configuration as the database.
9191
* @return value or {@code null} for none
9292
*/
9393
public CreateBackupEncryptionConfig getEncryptionConfig() {
9494
return encryptionConfig;
9595
}
9696

9797
/**
98-
* Optional. The encryption configuration that will be used to encrypt the backup. If this field
99-
* is not specified, the backup will use the same encryption configuration as the database.
98+
* Optional. The encryption configuration that is used to encrypt the backup. If this field is not
99+
* specified, the backup uses the same encryption configuration as the database.
100100
* @param encryptionConfig encryptionConfig or {@code null} for none
101101
*/
102102
public BackupSchedule setEncryptionConfig(CreateBackupEncryptionConfig encryptionConfig) {

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/CrontabSpec.java

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
package com.google.api.services.spanner.v1.model;
1818

1919
/**
20-
* CrontabSpec can be used to specify the version time and frequency at which the backup should be
21-
* created.
20+
* CrontabSpec can be used to specify the version time and frequency at which the backup is created.
2221
*
2322
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2423
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
@@ -31,9 +30,9 @@
3130
public final class CrontabSpec extends com.google.api.client.json.GenericJson {
3231

3332
/**
34-
* Output only. Schedule backups will contain an externally consistent copy of the database at the
35-
* version time specified in `schedule_spec.cron_spec`. However, Spanner may not initiate the
36-
* creation of the scheduled backups at that version time. Spanner will initiate the creation of
33+
* Output only. Scheduled backups contain an externally consistent copy of the database at the
34+
* version time specified in `schedule_spec.cron_spec`. However, Spanner might not initiate the
35+
* creation of the scheduled backups at that version time. Spanner initiates the creation of
3736
* scheduled backups within the time window bounded by the version_time specified in
3837
* `schedule_spec.cron_spec` and version_time + `creation_window`.
3938
* The value may be {@code null}.
@@ -47,7 +46,7 @@ public final class CrontabSpec extends com.google.api.client.json.GenericJson {
4746
* The backup will contain an externally consistent copy of the database at the version time. Full
4847
* backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled
4948
* a minimum of 4 hours apart. Examples of valid cron specifications: * `0 2/12 * * *` : every 12
50-
* hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every 12 hours at (2,14) hours
49+
* hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every 12 hours at (2, 14) hours
5150
* past midnight in UTC. * `0 4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12,
5251
* 16, 20) hours past midnight in UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0
5352
* 2 * * 0` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a month on
@@ -58,16 +57,17 @@ public final class CrontabSpec extends com.google.api.client.json.GenericJson {
5857
private java.lang.String text;
5958

6059
/**
61-
* Output only. The time zone of the times in `CrontabSpec.text`. Currently only UTC is supported.
60+
* Output only. The time zone of the times in `CrontabSpec.text`. Currently, only UTC is
61+
* supported.
6262
* The value may be {@code null}.
6363
*/
6464
@com.google.api.client.util.Key
6565
private java.lang.String timeZone;
6666

6767
/**
68-
* Output only. Schedule backups will contain an externally consistent copy of the database at the
69-
* version time specified in `schedule_spec.cron_spec`. However, Spanner may not initiate the
70-
* creation of the scheduled backups at that version time. Spanner will initiate the creation of
68+
* Output only. Scheduled backups contain an externally consistent copy of the database at the
69+
* version time specified in `schedule_spec.cron_spec`. However, Spanner might not initiate the
70+
* creation of the scheduled backups at that version time. Spanner initiates the creation of
7171
* scheduled backups within the time window bounded by the version_time specified in
7272
* `schedule_spec.cron_spec` and version_time + `creation_window`.
7373
* @return value or {@code null} for none
@@ -77,9 +77,9 @@ public String getCreationWindow() {
7777
}
7878

7979
/**
80-
* Output only. Schedule backups will contain an externally consistent copy of the database at the
81-
* version time specified in `schedule_spec.cron_spec`. However, Spanner may not initiate the
82-
* creation of the scheduled backups at that version time. Spanner will initiate the creation of
80+
* Output only. Scheduled backups contain an externally consistent copy of the database at the
81+
* version time specified in `schedule_spec.cron_spec`. However, Spanner might not initiate the
82+
* creation of the scheduled backups at that version time. Spanner initiates the creation of
8383
* scheduled backups within the time window bounded by the version_time specified in
8484
* `schedule_spec.cron_spec` and version_time + `creation_window`.
8585
* @param creationWindow creationWindow or {@code null} for none
@@ -95,7 +95,7 @@ public CrontabSpec setCreationWindow(String creationWindow) {
9595
* The backup will contain an externally consistent copy of the database at the version time. Full
9696
* backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled
9797
* a minimum of 4 hours apart. Examples of valid cron specifications: * `0 2/12 * * *` : every 12
98-
* hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every 12 hours at (2,14) hours
98+
* hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every 12 hours at (2, 14) hours
9999
* past midnight in UTC. * `0 4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12,
100100
* 16, 20) hours past midnight in UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0
101101
* 2 * * 0` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a month on
@@ -112,7 +112,7 @@ public java.lang.String getText() {
112112
* The backup will contain an externally consistent copy of the database at the version time. Full
113113
* backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled
114114
* a minimum of 4 hours apart. Examples of valid cron specifications: * `0 2/12 * * *` : every 12
115-
* hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every 12 hours at (2,14) hours
115+
* hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * *` : every 12 hours at (2, 14) hours
116116
* past midnight in UTC. * `0 4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12,
117117
* 16, 20) hours past midnight in UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0
118118
* 2 * * 0` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a month on
@@ -125,15 +125,17 @@ public CrontabSpec setText(java.lang.String text) {
125125
}
126126

127127
/**
128-
* Output only. The time zone of the times in `CrontabSpec.text`. Currently only UTC is supported.
128+
* Output only. The time zone of the times in `CrontabSpec.text`. Currently, only UTC is
129+
* supported.
129130
* @return value or {@code null} for none
130131
*/
131132
public java.lang.String getTimeZone() {
132133
return timeZone;
133134
}
134135

135136
/**
136-
* Output only. The time zone of the times in `CrontabSpec.text`. Currently only UTC is supported.
137+
* Output only. The time zone of the times in `CrontabSpec.text`. Currently, only UTC is
138+
* supported.
137139
* @param timeZone timeZone or {@code null} for none
138140
*/
139141
public CrontabSpec setTimeZone(java.lang.String timeZone) {

clients/google-api-services-spanner/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-spanner</artifactId>
11-
<version>v1-rev20250123-2.0.0</version>
12-
<name>Cloud Spanner API v1-rev20250123-2.0.0</name>
11+
<version>v1-rev20250201-2.0.0</version>
12+
<name>Cloud Spanner API v1-rev20250201-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-spanner/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-spanner</artifactId>
25-
<version>v1-rev20250123-2.0.0</version>
25+
<version>v1-rev20250201-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250123-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250201-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)