Skip to content

Commit 98d793c

Browse files
1 parent a86d8ce commit 98d793c

File tree

12 files changed

+407
-162
lines changed

12 files changed

+407
-162
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-rev20240731-2.0.0</version>
25+
<version>v1-rev20240807-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-rev20240731-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20240807-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 116 additions & 114 deletions
Large diffs are not rendered by default.

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

Lines changed: 150 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ public final class Backup extends com.google.api.client.json.GenericJson {
8383
@com.google.api.client.util.Key
8484
private java.util.List<EncryptionInfo> encryptionInformation;
8585

86+
/**
87+
* Output only. For a backup in an incremental backup chain, this is the storage space needed to
88+
* keep the data that has changed since the previous backup. For all other backups, this is always
89+
* the size of the backup. This value may change if backups on the same chain get deleted or
90+
* expired. This field can be used to calculate the total storage space used by a set of backups.
91+
* For example, the total space used by all backups of a database can be computed by summing up
92+
* this field.
93+
* The value may be {@code null}.
94+
*/
95+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
96+
private java.lang.Long exclusiveSizeBytes;
97+
8698
/**
8799
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds
88100
* granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup
@@ -93,6 +105,27 @@ public final class Backup extends com.google.api.client.json.GenericJson {
93105
@com.google.api.client.util.Key
94106
private String expireTime;
95107

108+
/**
109+
* Output only. The number of bytes that will be freed by deleting this backup. This value will be
110+
* zero if, for example, this backup is part of an incremental backup chain and younger backups in
111+
* the chain require that we keep its data. For backups not in an incremental backup chain, this
112+
* is always the size of the backup. This value may change if backups on the same chain get
113+
* created, deleted or expired.
114+
* The value may be {@code null}.
115+
*/
116+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
117+
private java.lang.Long freeableSizeBytes;
118+
119+
/**
120+
* Output only. Populated only for backups in an incremental backup chain. Backups share the same
121+
* chain id if and only if they belong to the same incremental backup chain. Use this field to
122+
* determine which backups are part of the same incremental backup chain. The ordering of backups
123+
* in the chain can be determined by ordering the backup `version_time`.
124+
* The value may be {@code null}.
125+
*/
126+
@com.google.api.client.util.Key
127+
private java.lang.String incrementalBackupChainId;
128+
96129
/**
97130
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A
98131
* backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup,
@@ -115,6 +148,17 @@ public final class Backup extends com.google.api.client.json.GenericJson {
115148
@com.google.api.client.util.Key
116149
private java.lang.String name;
117150

151+
/**
152+
* Output only. Data deleted at a time older than this is guaranteed not to be retained in order
153+
* to support this backup. For a backup in an incremental backup chain, this is the version time
154+
* of the oldest backup that exists or ever existed in the chain. For all other backups, this is
155+
* the version time of the backup. This field can be used to understand what data is being
156+
* retained by the backup system.
157+
* The value may be {@code null}.
158+
*/
159+
@com.google.api.client.util.Key
160+
private String oldestVersionTime;
161+
118162
/**
119163
* Output only. The names of the destination backups being created by copying this source backup.
120164
* The backup names are of the form `projects//instances//backups/`. Referencing backups may exist
@@ -138,7 +182,8 @@ public final class Backup extends com.google.api.client.json.GenericJson {
138182
private java.util.List<java.lang.String> referencingDatabases;
139183

140184
/**
141-
* Output only. Size of the backup in bytes.
185+
* Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is
186+
* the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
142187
* The value may be {@code null}.
143188
*/
144189
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
@@ -286,6 +331,33 @@ public Backup setEncryptionInformation(java.util.List<EncryptionInfo> encryption
286331
return this;
287332
}
288333

334+
/**
335+
* Output only. For a backup in an incremental backup chain, this is the storage space needed to
336+
* keep the data that has changed since the previous backup. For all other backups, this is always
337+
* the size of the backup. This value may change if backups on the same chain get deleted or
338+
* expired. This field can be used to calculate the total storage space used by a set of backups.
339+
* For example, the total space used by all backups of a database can be computed by summing up
340+
* this field.
341+
* @return value or {@code null} for none
342+
*/
343+
public java.lang.Long getExclusiveSizeBytes() {
344+
return exclusiveSizeBytes;
345+
}
346+
347+
/**
348+
* Output only. For a backup in an incremental backup chain, this is the storage space needed to
349+
* keep the data that has changed since the previous backup. For all other backups, this is always
350+
* the size of the backup. This value may change if backups on the same chain get deleted or
351+
* expired. This field can be used to calculate the total storage space used by a set of backups.
352+
* For example, the total space used by all backups of a database can be computed by summing up
353+
* this field.
354+
* @param exclusiveSizeBytes exclusiveSizeBytes or {@code null} for none
355+
*/
356+
public Backup setExclusiveSizeBytes(java.lang.Long exclusiveSizeBytes) {
357+
this.exclusiveSizeBytes = exclusiveSizeBytes;
358+
return this;
359+
}
360+
289361
/**
290362
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds
291363
* granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup
@@ -309,6 +381,54 @@ public Backup setExpireTime(String expireTime) {
309381
return this;
310382
}
311383

384+
/**
385+
* Output only. The number of bytes that will be freed by deleting this backup. This value will be
386+
* zero if, for example, this backup is part of an incremental backup chain and younger backups in
387+
* the chain require that we keep its data. For backups not in an incremental backup chain, this
388+
* is always the size of the backup. This value may change if backups on the same chain get
389+
* created, deleted or expired.
390+
* @return value or {@code null} for none
391+
*/
392+
public java.lang.Long getFreeableSizeBytes() {
393+
return freeableSizeBytes;
394+
}
395+
396+
/**
397+
* Output only. The number of bytes that will be freed by deleting this backup. This value will be
398+
* zero if, for example, this backup is part of an incremental backup chain and younger backups in
399+
* the chain require that we keep its data. For backups not in an incremental backup chain, this
400+
* is always the size of the backup. This value may change if backups on the same chain get
401+
* created, deleted or expired.
402+
* @param freeableSizeBytes freeableSizeBytes or {@code null} for none
403+
*/
404+
public Backup setFreeableSizeBytes(java.lang.Long freeableSizeBytes) {
405+
this.freeableSizeBytes = freeableSizeBytes;
406+
return this;
407+
}
408+
409+
/**
410+
* Output only. Populated only for backups in an incremental backup chain. Backups share the same
411+
* chain id if and only if they belong to the same incremental backup chain. Use this field to
412+
* determine which backups are part of the same incremental backup chain. The ordering of backups
413+
* in the chain can be determined by ordering the backup `version_time`.
414+
* @return value or {@code null} for none
415+
*/
416+
public java.lang.String getIncrementalBackupChainId() {
417+
return incrementalBackupChainId;
418+
}
419+
420+
/**
421+
* Output only. Populated only for backups in an incremental backup chain. Backups share the same
422+
* chain id if and only if they belong to the same incremental backup chain. Use this field to
423+
* determine which backups are part of the same incremental backup chain. The ordering of backups
424+
* in the chain can be determined by ordering the backup `version_time`.
425+
* @param incrementalBackupChainId incrementalBackupChainId or {@code null} for none
426+
*/
427+
public Backup setIncrementalBackupChainId(java.lang.String incrementalBackupChainId) {
428+
this.incrementalBackupChainId = incrementalBackupChainId;
429+
return this;
430+
}
431+
312432
/**
313433
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A
314434
* backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup,
@@ -359,6 +479,31 @@ public Backup setName(java.lang.String name) {
359479
return this;
360480
}
361481

482+
/**
483+
* Output only. Data deleted at a time older than this is guaranteed not to be retained in order
484+
* to support this backup. For a backup in an incremental backup chain, this is the version time
485+
* of the oldest backup that exists or ever existed in the chain. For all other backups, this is
486+
* the version time of the backup. This field can be used to understand what data is being
487+
* retained by the backup system.
488+
* @return value or {@code null} for none
489+
*/
490+
public String getOldestVersionTime() {
491+
return oldestVersionTime;
492+
}
493+
494+
/**
495+
* Output only. Data deleted at a time older than this is guaranteed not to be retained in order
496+
* to support this backup. For a backup in an incremental backup chain, this is the version time
497+
* of the oldest backup that exists or ever existed in the chain. For all other backups, this is
498+
* the version time of the backup. This field can be used to understand what data is being
499+
* retained by the backup system.
500+
* @param oldestVersionTime oldestVersionTime or {@code null} for none
501+
*/
502+
public Backup setOldestVersionTime(String oldestVersionTime) {
503+
this.oldestVersionTime = oldestVersionTime;
504+
return this;
505+
}
506+
362507
/**
363508
* Output only. The names of the destination backups being created by copying this source backup.
364509
* The backup names are of the form `projects//instances//backups/`. Referencing backups may exist
@@ -410,15 +555,17 @@ public Backup setReferencingDatabases(java.util.List<java.lang.String> referenci
410555
}
411556

412557
/**
413-
* Output only. Size of the backup in bytes.
558+
* Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is
559+
* the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
414560
* @return value or {@code null} for none
415561
*/
416562
public java.lang.Long getSizeBytes() {
417563
return sizeBytes;
418564
}
419565

420566
/**
421-
* Output only. Size of the backup in bytes.
567+
* Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is
568+
* the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
422569
* @param sizeBytes sizeBytes or {@code null} for none
423570
*/
424571
public Backup setSizeBytes(java.lang.Long sizeBytes) {

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public final class BackupSchedule extends com.google.api.client.json.GenericJson
4545
@com.google.api.client.util.Key
4646
private FullBackupSpec fullBackupSpec;
4747

48+
/**
49+
* The schedule creates incremental backup chains.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private IncrementalBackupSpec incrementalBackupSpec;
54+
4855
/**
4956
* Identifier. Output only for the CreateBackupSchedule operation. Required for the
5057
* UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which
@@ -115,6 +122,23 @@ public BackupSchedule setFullBackupSpec(FullBackupSpec fullBackupSpec) {
115122
return this;
116123
}
117124

125+
/**
126+
* The schedule creates incremental backup chains.
127+
* @return value or {@code null} for none
128+
*/
129+
public IncrementalBackupSpec getIncrementalBackupSpec() {
130+
return incrementalBackupSpec;
131+
}
132+
133+
/**
134+
* The schedule creates incremental backup chains.
135+
* @param incrementalBackupSpec incrementalBackupSpec or {@code null} for none
136+
*/
137+
public BackupSchedule setIncrementalBackupSpec(IncrementalBackupSpec incrementalBackupSpec) {
138+
this.incrementalBackupSpec = incrementalBackupSpec;
139+
return this;
140+
}
141+
118142
/**
119143
* Identifier. Output only for the CreateBackupSchedule operation. Required for the
120144
* UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which

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

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

3232
/**
33-
* Required. The InstanceConfig proto of the configuration to create. instance_config.name must be
34-
* `/instanceConfigs/`. instance_config.base_config must be a Google-managed configuration name,
35-
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
33+
* Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name`
34+
* must be `/instanceConfigs/`. `instance_config.base_config` must be a Google-managed
35+
* configuration name, e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
3636
* The value may be {@code null}.
3737
*/
3838
@com.google.api.client.util.Key
@@ -55,19 +55,19 @@ public final class CreateInstanceConfigRequest extends com.google.api.client.jso
5555
private java.lang.Boolean validateOnly;
5656

5757
/**
58-
* Required. The InstanceConfig proto of the configuration to create. instance_config.name must be
59-
* `/instanceConfigs/`. instance_config.base_config must be a Google-managed configuration name,
60-
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
58+
* Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name`
59+
* must be `/instanceConfigs/`. `instance_config.base_config` must be a Google-managed
60+
* configuration name, e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
6161
* @return value or {@code null} for none
6262
*/
6363
public InstanceConfig getInstanceConfig() {
6464
return instanceConfig;
6565
}
6666

6767
/**
68-
* Required. The InstanceConfig proto of the configuration to create. instance_config.name must be
69-
* `/instanceConfigs/`. instance_config.base_config must be a Google-managed configuration name,
70-
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
68+
* Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name`
69+
* must be `/instanceConfigs/`. `instance_config.base_config` must be a Google-managed
70+
* configuration name, e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
7171
* @param instanceConfig instanceConfig or {@code null} for none
7272
*/
7373
public CreateInstanceConfigRequest setInstanceConfig(InstanceConfig instanceConfig) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
* The specification for incremental backup chains. An incremental backup stores the delta of
21+
* changes between a previous backup and the database contents at a given version time. An
22+
* incremental backup chain consists of a full backup and zero or more successive incremental
23+
* backups. The first backup created for an incremental backup chain is always a full backup.
24+
*
25+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
26+
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see:
27+
* <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>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class IncrementalBackupSpec extends com.google.api.client.json.GenericJson {
34+
35+
@Override
36+
public IncrementalBackupSpec set(String fieldName, Object value) {
37+
return (IncrementalBackupSpec) super.set(fieldName, value);
38+
}
39+
40+
@Override
41+
public IncrementalBackupSpec clone() {
42+
return (IncrementalBackupSpec) super.clone();
43+
}
44+
45+
}

0 commit comments

Comments
 (0)