Skip to content

Commit 4c9db4d

Browse files
1 parent 2ec9928 commit 4c9db4d

File tree

11 files changed

+287
-26
lines changed

11 files changed

+287
-26
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-rev20241010-2.0.0</version>
25+
<version>v1-rev20241015-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-rev20241010-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241015-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: 47 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5229,7 +5229,8 @@ public Get set(String parameterName, Object value) {
52295229
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
52305230
* database or backup exists but does not have a policy set. Authorization requires
52315231
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
5232-
* `spanner.backups.getIamPolicy` permission on resource.
5232+
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
5233+
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
52335234
*
52345235
* Create a request for the method "backups.getIamPolicy".
52355236
*
@@ -5259,7 +5260,8 @@ public class GetIamPolicy extends SpannerRequest<com.google.api.services.spanner
52595260
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
52605261
* database or backup exists but does not have a policy set. Authorization requires
52615262
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
5262-
* `spanner.backups.getIamPolicy` permission on resource.
5263+
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
5264+
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
52635265
*
52645266
* Create a request for the method "backups.getIamPolicy".
52655267
*
@@ -5833,7 +5835,8 @@ public Patch set(String parameterName, Object value) {
58335835
/**
58345836
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
58355837
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
5836-
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
5838+
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
5839+
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
58375840
*
58385841
* Create a request for the method "backups.setIamPolicy".
58395842
*
@@ -5862,7 +5865,9 @@ public class SetIamPolicy extends SpannerRequest<com.google.api.services.spanner
58625865
/**
58635866
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
58645867
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
5865-
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
5868+
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
5869+
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on
5870+
* resource.
58665871
*
58675872
* Create a request for the method "backups.setIamPolicy".
58685873
*
@@ -5985,7 +5990,8 @@ public SetIamPolicy set(String parameterName, Object value) {
59855990
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
59865991
* returns an empty set of permissions. Calling this method on a backup that does not exist will
59875992
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
5988-
* instance.
5993+
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
5994+
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
59895995
*
59905996
* Create a request for the method "backups.testIamPermissions".
59915997
*
@@ -6017,7 +6023,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
60176023
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
60186024
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
60196025
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
6020-
* containing instance.
6026+
* containing instance. Calling this method on a backup schedule that does not exist will result
6027+
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
6028+
* containing database.
60216029
*
60226030
* Create a request for the method "backups.testIamPermissions".
60236031
*
@@ -7808,7 +7816,8 @@ public GetDdl set(String parameterName, Object value) {
78087816
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
78097817
* database or backup exists but does not have a policy set. Authorization requires
78107818
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
7811-
* `spanner.backups.getIamPolicy` permission on resource.
7819+
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
7820+
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
78127821
*
78137822
* Create a request for the method "databases.getIamPolicy".
78147823
*
@@ -7838,7 +7847,8 @@ public class GetIamPolicy extends SpannerRequest<com.google.api.services.spanner
78387847
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
78397848
* database or backup exists but does not have a policy set. Authorization requires
78407849
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
7841-
* `spanner.backups.getIamPolicy` permission on resource.
7850+
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
7851+
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
78427852
*
78437853
* Create a request for the method "databases.getIamPolicy".
78447854
*
@@ -8717,7 +8727,8 @@ public Restore set(String parameterName, Object value) {
87178727
/**
87188728
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
87198729
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
8720-
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
8730+
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
8731+
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
87218732
*
87228733
* Create a request for the method "databases.setIamPolicy".
87238734
*
@@ -8746,7 +8757,9 @@ public class SetIamPolicy extends SpannerRequest<com.google.api.services.spanner
87468757
/**
87478758
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
87488759
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
8749-
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
8760+
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
8761+
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on
8762+
* resource.
87508763
*
87518764
* Create a request for the method "databases.setIamPolicy".
87528765
*
@@ -8869,7 +8882,8 @@ public SetIamPolicy set(String parameterName, Object value) {
88698882
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
88708883
* returns an empty set of permissions. Calling this method on a backup that does not exist will
88718884
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
8872-
* instance.
8885+
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
8886+
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
88738887
*
88748888
* Create a request for the method "databases.testIamPermissions".
88758889
*
@@ -8901,7 +8915,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
89018915
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
89028916
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
89038917
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
8904-
* containing instance.
8918+
* containing instance. Calling this method on a backup schedule that does not exist will result
8919+
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
8920+
* containing database.
89058921
*
89068922
* Create a request for the method "databases.testIamPermissions".
89078923
*
@@ -9619,7 +9635,8 @@ public Get set(String parameterName, Object value) {
96199635
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
96209636
* database or backup exists but does not have a policy set. Authorization requires
96219637
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
9622-
* `spanner.backups.getIamPolicy` permission on resource.
9638+
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
9639+
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
96239640
*
96249641
* Create a request for the method "backupSchedules.getIamPolicy".
96259642
*
@@ -9649,7 +9666,8 @@ public class GetIamPolicy extends SpannerRequest<com.google.api.services.spanner
96499666
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
96509667
* database or backup exists but does not have a policy set. Authorization requires
96519668
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
9652-
* `spanner.backups.getIamPolicy` permission on resource.
9669+
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
9670+
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
96539671
*
96549672
* Create a request for the method "backupSchedules.getIamPolicy".
96559673
*
@@ -10143,7 +10161,8 @@ public Patch set(String parameterName, Object value) {
1014310161
/**
1014410162
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
1014510163
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
10146-
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
10164+
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
10165+
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
1014710166
*
1014810167
* Create a request for the method "backupSchedules.setIamPolicy".
1014910168
*
@@ -10172,7 +10191,9 @@ public class SetIamPolicy extends SpannerRequest<com.google.api.services.spanner
1017210191
/**
1017310192
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
1017410193
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
10175-
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
10194+
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
10195+
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on
10196+
* resource.
1017610197
*
1017710198
* Create a request for the method "backupSchedules.setIamPolicy".
1017810199
*
@@ -10295,7 +10316,8 @@ public SetIamPolicy set(String parameterName, Object value) {
1029510316
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
1029610317
* returns an empty set of permissions. Calling this method on a backup that does not exist will
1029710318
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
10298-
* instance.
10319+
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
10320+
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
1029910321
*
1030010322
* Create a request for the method "backupSchedules.testIamPermissions".
1030110323
*
@@ -10327,7 +10349,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
1032710349
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
1032810350
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
1032910351
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
10330-
* containing instance.
10352+
* containing instance. Calling this method on a backup schedule that does not exist will result
10353+
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
10354+
* containing database.
1033110355
*
1033210356
* Create a request for the method "backupSchedules.testIamPermissions".
1033310357
*
@@ -10665,7 +10689,8 @@ public List set(String parameterName, Object value) {
1066510689
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
1066610690
* returns an empty set of permissions. Calling this method on a backup that does not exist will
1066710691
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
10668-
* instance.
10692+
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
10693+
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
1066910694
*
1067010695
* Create a request for the method "databaseRoles.testIamPermissions".
1067110696
*
@@ -10697,7 +10722,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
1069710722
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
1069810723
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
1069910724
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
10700-
* containing instance.
10725+
* containing instance. Calling this method on a backup schedule that does not exist will result
10726+
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
10727+
* containing database.
1070110728
*
1070210729
* Create a request for the method "databaseRoles.testIamPermissions".
1070310730
*

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

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

32+
/**
33+
* Optional. Required for read-write transactions on a multiplexed session that commit mutations
34+
* but do not perform any reads or queries. Clients should randomly select one of the mutations
35+
* from the mutation set and send it as a part of this request.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private Mutation mutationKey;
40+
3241
/**
3342
* Required. Options for the new transaction.
3443
* The value may be {@code null}.
@@ -45,6 +54,27 @@ public final class BeginTransactionRequest extends com.google.api.client.json.Ge
4554
@com.google.api.client.util.Key
4655
private RequestOptions requestOptions;
4756

57+
/**
58+
* Optional. Required for read-write transactions on a multiplexed session that commit mutations
59+
* but do not perform any reads or queries. Clients should randomly select one of the mutations
60+
* from the mutation set and send it as a part of this request.
61+
* @return value or {@code null} for none
62+
*/
63+
public Mutation getMutationKey() {
64+
return mutationKey;
65+
}
66+
67+
/**
68+
* Optional. Required for read-write transactions on a multiplexed session that commit mutations
69+
* but do not perform any reads or queries. Clients should randomly select one of the mutations
70+
* from the mutation set and send it as a part of this request.
71+
* @param mutationKey mutationKey or {@code null} for none
72+
*/
73+
public BeginTransactionRequest setMutationKey(Mutation mutationKey) {
74+
this.mutationKey = mutationKey;
75+
return this;
76+
}
77+
4878
/**
4979
* Required. Options for the new transaction.
5080
* @return value or {@code null} for none

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ public final class CommitRequest extends com.google.api.client.json.GenericJson
4747
@com.google.api.client.util.Key
4848
private java.util.List<Mutation> mutations;
4949

50+
/**
51+
* Optional. If the read-write transaction was executed on a multiplexed session, the precommit
52+
* token with the highest sequence number received in this transaction attempt, should be included
53+
* here. Failing to do so will result in a FailedPrecondition error.
54+
* The value may be {@code null}.
55+
*/
56+
@com.google.api.client.util.Key
57+
private MultiplexedSessionPrecommitToken precommitToken;
58+
5059
/**
5160
* Common options for this request.
5261
* The value may be {@code null}.
@@ -122,6 +131,27 @@ public CommitRequest setMutations(java.util.List<Mutation> mutations) {
122131
return this;
123132
}
124133

134+
/**
135+
* Optional. If the read-write transaction was executed on a multiplexed session, the precommit
136+
* token with the highest sequence number received in this transaction attempt, should be included
137+
* here. Failing to do so will result in a FailedPrecondition error.
138+
* @return value or {@code null} for none
139+
*/
140+
public MultiplexedSessionPrecommitToken getPrecommitToken() {
141+
return precommitToken;
142+
}
143+
144+
/**
145+
* Optional. If the read-write transaction was executed on a multiplexed session, the precommit
146+
* token with the highest sequence number received in this transaction attempt, should be included
147+
* here. Failing to do so will result in a FailedPrecondition error.
148+
* @param precommitToken precommitToken or {@code null} for none
149+
*/
150+
public CommitRequest setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken) {
151+
this.precommitToken = precommitToken;
152+
return this;
153+
}
154+
125155
/**
126156
* Common options for this request.
127157
* @return value or {@code null} for none

0 commit comments

Comments
 (0)