Skip to content

Commit b2f831e

Browse files
1 parent f0666fb commit b2f831e

File tree

9 files changed

+150
-58
lines changed

9 files changed

+150
-58
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-rev20241218-2.0.0</version>
25+
<version>v1-rev20241220-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-rev20241218-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241220-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: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12471,7 +12471,8 @@ public ExecuteBatchDml set(String parameterName, Object value) {
1247112471
* with a `FAILED_PRECONDITION` error. Operations inside read-write transactions might return
1247212472
* `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See
1247312473
* Transaction for more details. Larger result sets can be fetched in streaming fashion by calling
12474-
* ExecuteStreamingSql instead.
12474+
* ExecuteStreamingSql instead. The query string can be SQL or [Graph Query Language
12475+
* (GQL)](https://cloud.google.com/spanner/docs/reference/standard-sql/graph-intro).
1247512476
*
1247612477
* Create a request for the method "sessions.executeSql".
1247712478
*
@@ -12501,7 +12502,8 @@ public class ExecuteSql extends SpannerRequest<com.google.api.services.spanner.v
1250112502
* fails with a `FAILED_PRECONDITION` error. Operations inside read-write transactions might
1250212503
* return `ABORTED`. If this occurs, the application should restart the transaction from the
1250312504
* beginning. See Transaction for more details. Larger result sets can be fetched in streaming
12504-
* fashion by calling ExecuteStreamingSql instead.
12505+
* fashion by calling ExecuteStreamingSql instead. The query string can be SQL or [Graph Query
12506+
* Language (GQL)](https://cloud.google.com/spanner/docs/reference/standard-sql/graph-intro).
1250512507
*
1250612508
* Create a request for the method "sessions.executeSql".
1250712509
*
@@ -12609,7 +12611,8 @@ public ExecuteSql set(String parameterName, Object value) {
1260912611
/**
1261012612
* Like ExecuteSql, except returns the result set as a stream. Unlike ExecuteSql, there is no limit
1261112613
* on the size of the returned result set. However, no individual row in the result set can exceed
12612-
* 100 MiB, and no column value can exceed 10 MiB.
12614+
* 100 MiB, and no column value can exceed 10 MiB. The query string can be SQL or [Graph Query
12615+
* Language (GQL)](https://cloud.google.com/spanner/docs/reference/standard-sql/graph-intro).
1261312616
*
1261412617
* Create a request for the method "sessions.executeStreamingSql".
1261512618
*
@@ -12636,7 +12639,9 @@ public class ExecuteStreamingSql extends SpannerRequest<com.google.api.services.
1263612639
/**
1263712640
* Like ExecuteSql, except returns the result set as a stream. Unlike ExecuteSql, there is no
1263812641
* limit on the size of the returned result set. However, no individual row in the result set can
12639-
* exceed 100 MiB, and no column value can exceed 10 MiB.
12642+
* exceed 100 MiB, and no column value can exceed 10 MiB. The query string can be SQL or [Graph
12643+
* Query Language (GQL)](https://cloud.google.com/spanner/docs/reference/standard-sql/graph-
12644+
* intro).
1264012645
*
1264112646
* Create a request for the method "sessions.executeStreamingSql".
1264212647
*

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

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ public final class CrontabSpec extends com.google.api.client.json.GenericJson {
4343

4444
/**
4545
* Required. Textual representation of the crontab. User can customize the backup frequency and
46-
* the backup version time using the cron expression. The version time must be in UTC timzeone.
47-
* The backup will contain an externally consistent copy of the database at the version time.
48-
* Allowed frequencies are 12 hour, 1 day, 1 week and 1 month. Examples of valid cron
49-
* specifications: * `0 2/12 * * * ` : every 12 hours at (2, 14) hours past midnight in UTC. * `0
50-
* 2,14 * * * ` : every 12 hours at (2,14) hours past midnight in UTC. * `0 2 * * * ` : once a day
51-
* at 2 past midnight in UTC. * `0 2 * * 0 ` : once a week every Sunday at 2 past midnight in UTC.
52-
* * `0 2 8 * * ` : once a month on 8th day at 2 past midnight in UTC.
46+
* the backup version time using the cron expression. The version time must be in UTC timezone.
47+
* The backup will contain an externally consistent copy of the database at the version time. Full
48+
* backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled
49+
* 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
51+
* past midnight in UTC. * `0 4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12,
52+
* 16, 20) hours past midnight in UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0
53+
* 2 * * 0` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a month on
54+
* 8th day at 2 past midnight in UTC.
5355
* The value may be {@code null}.
5456
*/
5557
@com.google.api.client.util.Key
@@ -89,13 +91,15 @@ public CrontabSpec setCreationWindow(String creationWindow) {
8991

9092
/**
9193
* Required. Textual representation of the crontab. User can customize the backup frequency and
92-
* the backup version time using the cron expression. The version time must be in UTC timzeone.
93-
* The backup will contain an externally consistent copy of the database at the version time.
94-
* Allowed frequencies are 12 hour, 1 day, 1 week and 1 month. Examples of valid cron
95-
* specifications: * `0 2/12 * * * ` : every 12 hours at (2, 14) hours past midnight in UTC. * `0
96-
* 2,14 * * * ` : every 12 hours at (2,14) hours past midnight in UTC. * `0 2 * * * ` : once a day
97-
* at 2 past midnight in UTC. * `0 2 * * 0 ` : once a week every Sunday at 2 past midnight in UTC.
98-
* * `0 2 8 * * ` : once a month on 8th day at 2 past midnight in UTC.
94+
* the backup version time using the cron expression. The version time must be in UTC timezone.
95+
* The backup will contain an externally consistent copy of the database at the version time. Full
96+
* backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled
97+
* 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
99+
* past midnight in UTC. * `0 4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12,
100+
* 16, 20) hours past midnight in UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0
101+
* 2 * * 0` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a month on
102+
* 8th day at 2 past midnight in UTC.
99103
* @return value or {@code null} for none
100104
*/
101105
public java.lang.String getText() {
@@ -104,13 +108,15 @@ public java.lang.String getText() {
104108

105109
/**
106110
* Required. Textual representation of the crontab. User can customize the backup frequency and
107-
* the backup version time using the cron expression. The version time must be in UTC timzeone.
108-
* The backup will contain an externally consistent copy of the database at the version time.
109-
* Allowed frequencies are 12 hour, 1 day, 1 week and 1 month. Examples of valid cron
110-
* specifications: * `0 2/12 * * * ` : every 12 hours at (2, 14) hours past midnight in UTC. * `0
111-
* 2,14 * * * ` : every 12 hours at (2,14) hours past midnight in UTC. * `0 2 * * * ` : once a day
112-
* at 2 past midnight in UTC. * `0 2 * * 0 ` : once a week every Sunday at 2 past midnight in UTC.
113-
* * `0 2 8 * * ` : once a month on 8th day at 2 past midnight in UTC.
111+
* the backup version time using the cron expression. The version time must be in UTC timezone.
112+
* The backup will contain an externally consistent copy of the database at the version time. Full
113+
* backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled
114+
* 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
116+
* past midnight in UTC. * `0 4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12,
117+
* 16, 20) hours past midnight in UTC. * `0 2 * * *` : once a day at 2 past midnight in UTC. * `0
118+
* 2 * * 0` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * *` : once a month on
119+
* 8th day at 2 past midnight in UTC.
114120
* @param text text or {@code null} for none
115121
*/
116122
public CrontabSpec setText(java.lang.String text) {

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
@SuppressWarnings("javadoc")
3030
public final class ExecuteBatchDmlRequest extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. If set to true, this request marks the end of the transaction. The transaction should
34+
* be committed or aborted after these statements execute, and attempts to execute any other
35+
* requests against this transaction (including reads and queries) will be rejected. Setting this
36+
* option may cause some error reporting to be deferred until commit time (e.g. validation of
37+
* unique constraints). Given this, successful execution of statements should not be assumed until
38+
* a subsequent Commit call completes successfully.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.lang.Boolean lastStatements;
43+
3244
/**
3345
* Common options for this request.
3446
* The value may be {@code null}.
@@ -67,6 +79,33 @@ public final class ExecuteBatchDmlRequest extends com.google.api.client.json.Gen
6779
@com.google.api.client.util.Key
6880
private TransactionSelector transaction;
6981

82+
/**
83+
* Optional. If set to true, this request marks the end of the transaction. The transaction should
84+
* be committed or aborted after these statements execute, and attempts to execute any other
85+
* requests against this transaction (including reads and queries) will be rejected. Setting this
86+
* option may cause some error reporting to be deferred until commit time (e.g. validation of
87+
* unique constraints). Given this, successful execution of statements should not be assumed until
88+
* a subsequent Commit call completes successfully.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.Boolean getLastStatements() {
92+
return lastStatements;
93+
}
94+
95+
/**
96+
* Optional. If set to true, this request marks the end of the transaction. The transaction should
97+
* be committed or aborted after these statements execute, and attempts to execute any other
98+
* requests against this transaction (including reads and queries) will be rejected. Setting this
99+
* option may cause some error reporting to be deferred until commit time (e.g. validation of
100+
* unique constraints). Given this, successful execution of statements should not be assumed until
101+
* a subsequent Commit call completes successfully.
102+
* @param lastStatements lastStatements or {@code null} for none
103+
*/
104+
public ExecuteBatchDmlRequest setLastStatements(java.lang.Boolean lastStatements) {
105+
this.lastStatements = lastStatements;
106+
return this;
107+
}
108+
70109
/**
71110
* Common options for this request.
72111
* @return value or {@code null} for none

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ public final class ExecuteSqlRequest extends com.google.api.client.json.GenericJ
4545
@com.google.api.client.util.Key
4646
private DirectedReadOptions directedReadOptions;
4747

48+
/**
49+
* Optional. If set to true, this statement marks the end of the transaction. The transaction
50+
* should be committed or aborted after this statement executes, and attempts to execute any other
51+
* requests against this transaction (including reads and queries) will be rejected. For DML
52+
* statements, setting this option may cause some error reporting to be deferred until commit time
53+
* (e.g. validation of unique constraints). Given this, successful execution of a DML statement
54+
* should not be assumed until a subsequent Commit call completes successfully.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.Boolean lastStatement;
59+
4860
/**
4961
* It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For
5062
* example, values of type `BYTES` and values of type `STRING` both appear in params as JSON
@@ -178,6 +190,33 @@ public ExecuteSqlRequest setDirectedReadOptions(DirectedReadOptions directedRead
178190
return this;
179191
}
180192

193+
/**
194+
* Optional. If set to true, this statement marks the end of the transaction. The transaction
195+
* should be committed or aborted after this statement executes, and attempts to execute any other
196+
* requests against this transaction (including reads and queries) will be rejected. For DML
197+
* statements, setting this option may cause some error reporting to be deferred until commit time
198+
* (e.g. validation of unique constraints). Given this, successful execution of a DML statement
199+
* should not be assumed until a subsequent Commit call completes successfully.
200+
* @return value or {@code null} for none
201+
*/
202+
public java.lang.Boolean getLastStatement() {
203+
return lastStatement;
204+
}
205+
206+
/**
207+
* Optional. If set to true, this statement marks the end of the transaction. The transaction
208+
* should be committed or aborted after this statement executes, and attempts to execute any other
209+
* requests against this transaction (including reads and queries) will be rejected. For DML
210+
* statements, setting this option may cause some error reporting to be deferred until commit time
211+
* (e.g. validation of unique constraints). Given this, successful execution of a DML statement
212+
* should not be assumed until a subsequent Commit call completes successfully.
213+
* @param lastStatement lastStatement or {@code null} for none
214+
*/
215+
public ExecuteSqlRequest setLastStatement(java.lang.Boolean lastStatement) {
216+
this.lastStatement = lastStatement;
217+
return this;
218+
}
219+
181220
/**
182221
* It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For
183222
* example, values of type `BYTES` and values of type `STRING` both appear in params as JSON

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ public final class Instance extends com.google.api.client.json.GenericJson {
5454
private String createTime;
5555

5656
/**
57-
* Optional. Controls the default backup behavior for new databases within the instance. Note that
58-
* `AUTOMATIC` is not permitted for free instances, as backups and backup schedules are not
59-
* allowed for free instances. In the `GetInstance` or `ListInstances` response, if the value of
60-
* default_backup_schedule_type is unset or NONE, no default backup schedule will be created for
61-
* new databases within the instance.
57+
* Optional. Controls the default backup schedule behavior for new databases within the instance.
58+
* By default, a backup schedule is created automatically when a new database is created in a new
59+
* instance. Note that the `AUTOMATIC` value isn't permitted for free instances, as backups and
60+
* backup schedules aren't supported for free instances. In the `GetInstance` or `ListInstances`
61+
* response, if the value of `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner
62+
* doesn't create a default backup schedule for new databases in the instance.
6263
* The value may be {@code null}.
6364
*/
6465
@com.google.api.client.util.Key
@@ -237,23 +238,25 @@ public Instance setCreateTime(String createTime) {
237238
}
238239

239240
/**
240-
* Optional. Controls the default backup behavior for new databases within the instance. Note that
241-
* `AUTOMATIC` is not permitted for free instances, as backups and backup schedules are not
242-
* allowed for free instances. In the `GetInstance` or `ListInstances` response, if the value of
243-
* default_backup_schedule_type is unset or NONE, no default backup schedule will be created for
244-
* new databases within the instance.
241+
* Optional. Controls the default backup schedule behavior for new databases within the instance.
242+
* By default, a backup schedule is created automatically when a new database is created in a new
243+
* instance. Note that the `AUTOMATIC` value isn't permitted for free instances, as backups and
244+
* backup schedules aren't supported for free instances. In the `GetInstance` or `ListInstances`
245+
* response, if the value of `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner
246+
* doesn't create a default backup schedule for new databases in the instance.
245247
* @return value or {@code null} for none
246248
*/
247249
public java.lang.String getDefaultBackupScheduleType() {
248250
return defaultBackupScheduleType;
249251
}
250252

251253
/**
252-
* Optional. Controls the default backup behavior for new databases within the instance. Note that
253-
* `AUTOMATIC` is not permitted for free instances, as backups and backup schedules are not
254-
* allowed for free instances. In the `GetInstance` or `ListInstances` response, if the value of
255-
* default_backup_schedule_type is unset or NONE, no default backup schedule will be created for
256-
* new databases within the instance.
254+
* Optional. Controls the default backup schedule behavior for new databases within the instance.
255+
* By default, a backup schedule is created automatically when a new database is created in a new
256+
* instance. Note that the `AUTOMATIC` value isn't permitted for free instances, as backups and
257+
* backup schedules aren't supported for free instances. In the `GetInstance` or `ListInstances`
258+
* response, if the value of `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner
259+
* doesn't create a default backup schedule for new databases in the instance.
257260
* @param defaultBackupScheduleType defaultBackupScheduleType or {@code null} for none
258261
*/
259262
public Instance setDefaultBackupScheduleType(java.lang.String defaultBackupScheduleType) {

0 commit comments

Comments
 (0)