Skip to content

Commit

Permalink
chore: regenerate spanner client (#23698)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Oct 24, 2024
1 parent 2ec9928 commit 4c9db4d
Show file tree
Hide file tree
Showing 11 changed files with 287 additions and 26 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-spanner/v1/2.0.0/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-spanner</artifactId>
<version>v1-rev20241010-2.0.0</version>
<version>v1-rev20241015-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241010-2.0.0'
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241015-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5229,7 +5229,8 @@ public Get set(String parameterName, Object value) {
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
* database or backup exists but does not have a policy set. Authorization requires
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
* `spanner.backups.getIamPolicy` permission on resource.
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
*
* Create a request for the method "backups.getIamPolicy".
*
Expand Down Expand Up @@ -5259,7 +5260,8 @@ public class GetIamPolicy extends SpannerRequest<com.google.api.services.spanner
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
* database or backup exists but does not have a policy set. Authorization requires
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
* `spanner.backups.getIamPolicy` permission on resource.
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
*
* Create a request for the method "backups.getIamPolicy".
*
Expand Down Expand Up @@ -5833,7 +5835,8 @@ public Patch set(String parameterName, Object value) {
/**
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
*
* Create a request for the method "backups.setIamPolicy".
*
Expand Down Expand Up @@ -5862,7 +5865,9 @@ public class SetIamPolicy extends SpannerRequest<com.google.api.services.spanner
/**
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on
* resource.
*
* Create a request for the method "backups.setIamPolicy".
*
Expand Down Expand Up @@ -5985,7 +5990,8 @@ public SetIamPolicy set(String parameterName, Object value) {
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
* returns an empty set of permissions. Calling this method on a backup that does not exist will
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
* instance.
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
*
* Create a request for the method "backups.testIamPermissions".
*
Expand Down Expand Up @@ -6017,7 +6023,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
* containing instance.
* containing instance. Calling this method on a backup schedule that does not exist will result
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
* containing database.
*
* Create a request for the method "backups.testIamPermissions".
*
Expand Down Expand Up @@ -7808,7 +7816,8 @@ public GetDdl set(String parameterName, Object value) {
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
* database or backup exists but does not have a policy set. Authorization requires
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
* `spanner.backups.getIamPolicy` permission on resource.
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
*
* Create a request for the method "databases.getIamPolicy".
*
Expand Down Expand Up @@ -7838,7 +7847,8 @@ public class GetIamPolicy extends SpannerRequest<com.google.api.services.spanner
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
* database or backup exists but does not have a policy set. Authorization requires
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
* `spanner.backups.getIamPolicy` permission on resource.
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
*
* Create a request for the method "databases.getIamPolicy".
*
Expand Down Expand Up @@ -8717,7 +8727,8 @@ public Restore set(String parameterName, Object value) {
/**
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
*
* Create a request for the method "databases.setIamPolicy".
*
Expand Down Expand Up @@ -8746,7 +8757,9 @@ public class SetIamPolicy extends SpannerRequest<com.google.api.services.spanner
/**
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on
* resource.
*
* Create a request for the method "databases.setIamPolicy".
*
Expand Down Expand Up @@ -8869,7 +8882,8 @@ public SetIamPolicy set(String parameterName, Object value) {
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
* returns an empty set of permissions. Calling this method on a backup that does not exist will
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
* instance.
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
*
* Create a request for the method "databases.testIamPermissions".
*
Expand Down Expand Up @@ -8901,7 +8915,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
* containing instance.
* containing instance. Calling this method on a backup schedule that does not exist will result
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
* containing database.
*
* Create a request for the method "databases.testIamPermissions".
*
Expand Down Expand Up @@ -9619,7 +9635,8 @@ public Get set(String parameterName, Object value) {
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
* database or backup exists but does not have a policy set. Authorization requires
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
* `spanner.backups.getIamPolicy` permission on resource.
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
*
* Create a request for the method "backupSchedules.getIamPolicy".
*
Expand Down Expand Up @@ -9649,7 +9666,8 @@ public class GetIamPolicy extends SpannerRequest<com.google.api.services.spanner
* Gets the access control policy for a database or backup resource. Returns an empty policy if a
* database or backup exists but does not have a policy set. Authorization requires
* `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires
* `spanner.backups.getIamPolicy` permission on resource.
* `spanner.backups.getIamPolicy` permission on resource. For backup schedules, authorization
* requires `spanner.backupSchedules.getIamPolicy` permission on resource.
*
* Create a request for the method "backupSchedules.getIamPolicy".
*
Expand Down Expand Up @@ -10143,7 +10161,8 @@ public Patch set(String parameterName, Object value) {
/**
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
*
* Create a request for the method "backupSchedules.setIamPolicy".
*
Expand Down Expand Up @@ -10172,7 +10191,9 @@ public class SetIamPolicy extends SpannerRequest<com.google.api.services.spanner
/**
* Sets the access control policy on a database or backup resource. Replaces any existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups,
* authorization requires `spanner.backups.setIamPolicy` permission on resource.
* authorization requires `spanner.backups.setIamPolicy` permission on resource. For backup
* schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on
* resource.
*
* Create a request for the method "backupSchedules.setIamPolicy".
*
Expand Down Expand Up @@ -10295,7 +10316,8 @@ public SetIamPolicy set(String parameterName, Object value) {
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
* returns an empty set of permissions. Calling this method on a backup that does not exist will
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
* instance.
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
*
* Create a request for the method "backupSchedules.testIamPermissions".
*
Expand Down Expand Up @@ -10327,7 +10349,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
* containing instance.
* containing instance. Calling this method on a backup schedule that does not exist will result
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
* containing database.
*
* Create a request for the method "backupSchedules.testIamPermissions".
*
Expand Down Expand Up @@ -10665,7 +10689,8 @@ public List set(String parameterName, Object value) {
* has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise
* returns an empty set of permissions. Calling this method on a backup that does not exist will
* result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing
* instance.
* instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND
* error if the user has `spanner.backupSchedules.list` permission on the containing database.
*
* Create a request for the method "databaseRoles.testIamPermissions".
*
Expand Down Expand Up @@ -10697,7 +10722,9 @@ public class TestIamPermissions extends SpannerRequest<com.google.api.services.s
* if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance.
* Otherwise returns an empty set of permissions. Calling this method on a backup that does not
* exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the
* containing instance.
* containing instance. Calling this method on a backup schedule that does not exist will result
* in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the
* containing database.
*
* Create a request for the method "databaseRoles.testIamPermissions".
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
@SuppressWarnings("javadoc")
public final class BeginTransactionRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. Required for read-write transactions on a multiplexed session that commit mutations
* but do not perform any reads or queries. Clients should randomly select one of the mutations
* from the mutation set and send it as a part of this request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Mutation mutationKey;

/**
* Required. Options for the new transaction.
* The value may be {@code null}.
Expand All @@ -45,6 +54,27 @@ public final class BeginTransactionRequest extends com.google.api.client.json.Ge
@com.google.api.client.util.Key
private RequestOptions requestOptions;

/**
* Optional. Required for read-write transactions on a multiplexed session that commit mutations
* but do not perform any reads or queries. Clients should randomly select one of the mutations
* from the mutation set and send it as a part of this request.
* @return value or {@code null} for none
*/
public Mutation getMutationKey() {
return mutationKey;
}

/**
* Optional. Required for read-write transactions on a multiplexed session that commit mutations
* but do not perform any reads or queries. Clients should randomly select one of the mutations
* from the mutation set and send it as a part of this request.
* @param mutationKey mutationKey or {@code null} for none
*/
public BeginTransactionRequest setMutationKey(Mutation mutationKey) {
this.mutationKey = mutationKey;
return this;
}

/**
* Required. Options for the new transaction.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ public final class CommitRequest extends com.google.api.client.json.GenericJson
@com.google.api.client.util.Key
private java.util.List<Mutation> mutations;

/**
* Optional. If the read-write transaction was executed on a multiplexed session, the precommit
* token with the highest sequence number received in this transaction attempt, should be included
* here. Failing to do so will result in a FailedPrecondition error.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MultiplexedSessionPrecommitToken precommitToken;

/**
* Common options for this request.
* The value may be {@code null}.
Expand Down Expand Up @@ -122,6 +131,27 @@ public CommitRequest setMutations(java.util.List<Mutation> mutations) {
return this;
}

/**
* Optional. If the read-write transaction was executed on a multiplexed session, the precommit
* token with the highest sequence number received in this transaction attempt, should be included
* here. Failing to do so will result in a FailedPrecondition error.
* @return value or {@code null} for none
*/
public MultiplexedSessionPrecommitToken getPrecommitToken() {
return precommitToken;
}

/**
* Optional. If the read-write transaction was executed on a multiplexed session, the precommit
* token with the highest sequence number received in this transaction attempt, should be included
* here. Failing to do so will result in a FailedPrecondition error.
* @param precommitToken precommitToken or {@code null} for none
*/
public CommitRequest setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken) {
this.precommitToken = precommitToken;
return this;
}

/**
* Common options for this request.
* @return value or {@code null} for none
Expand Down
Loading

0 comments on commit 4c9db4d

Please sign in to comment.