Skip to content

Commit 6870817

Browse files
1 parent 0f2a7be commit 6870817

19 files changed

+472
-187
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-rev20241018-2.0.0</version>
25+
<version>v1-rev20241020-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-rev20241018-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20241020-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: 73 additions & 46 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public final class Backup extends com.google.api.client.json.GenericJson {
7575
/**
7676
* Output only. The encryption information for the backup, whether it is protected by one or more
7777
* KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The
78-
* `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the
78+
* `encryption_status` field inside of each `EncryptionInfo` is not populated. At least one of the
7979
* key versions must be available for the backup to be restored. If a key version is revoked in
8080
* the middle of a restore, the restore behavior is undefined.
8181
* The value may be {@code null}.
@@ -309,7 +309,7 @@ public Backup setEncryptionInfo(EncryptionInfo encryptionInfo) {
309309
/**
310310
* Output only. The encryption information for the backup, whether it is protected by one or more
311311
* KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The
312-
* `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the
312+
* `encryption_status` field inside of each `EncryptionInfo` is not populated. At least one of the
313313
* key versions must be available for the backup to be restored. If a key version is revoked in
314314
* the middle of a restore, the restore behavior is undefined.
315315
* @return value or {@code null} for none
@@ -321,7 +321,7 @@ public java.util.List<EncryptionInfo> getEncryptionInformation() {
321321
/**
322322
* Output only. The encryption information for the backup, whether it is protected by one or more
323323
* KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The
324-
* `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the
324+
* `encryption_status` field inside of each `EncryptionInfo` is not populated. At least one of the
325325
* key versions must be available for the backup to be restored. If a key version is revoked in
326326
* the middle of a restore, the restore behavior is undefined.
327327
* @param encryptionInformation encryptionInformation or {@code null} for none

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

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ public final class CommitResponse extends com.google.api.client.json.GenericJson
4444
@com.google.api.client.util.Key
4545
private String commitTimestamp;
4646

47+
/**
48+
* If specified, transaction has not committed yet. Clients must retry the commit with the new
49+
* precommit token.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private MultiplexedSessionPrecommitToken precommitToken;
54+
4755
/**
4856
* The statistics about this Commit. Not returned by default. For more information, see
4957
* CommitRequest.return_commit_stats.
@@ -80,6 +88,25 @@ public CommitResponse setCommitTimestamp(String commitTimestamp) {
8088
return this;
8189
}
8290

91+
/**
92+
* If specified, transaction has not committed yet. Clients must retry the commit with the new
93+
* precommit token.
94+
* @return value or {@code null} for none
95+
*/
96+
public MultiplexedSessionPrecommitToken getPrecommitToken() {
97+
return precommitToken;
98+
}
99+
100+
/**
101+
* If specified, transaction has not committed yet. Clients must retry the commit with the new
102+
* precommit token.
103+
* @param precommitToken precommitToken or {@code null} for none
104+
*/
105+
public CommitResponse setPrecommitToken(MultiplexedSessionPrecommitToken precommitToken) {
106+
this.precommitToken = precommitToken;
107+
return this;
108+
}
109+
83110
@Override
84111
public CommitResponse set(String fieldName, Object value) {
85112
return (CommitResponse) super.set(fieldName, value);

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

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ public final class CopyBackupEncryptionConfig extends com.google.api.client.json
4747

4848
/**
4949
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
50-
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. Kms keys specified can be
51-
* in any order. The keys referenced by kms_key_names must fully cover all regions of the backup's
52-
* instance configuration. Some examples: * For single region instance configs, specify a single
53-
* regional location KMS key. * For multi-regional instance configs of type GOOGLE_MANAGED, either
54-
* specify a multi-regional location KMS key or multiple regional location KMS keys that cover all
55-
* regions in the instance config. * For an instance config of type USER_MANAGED, please specify
56-
* only regional location KMS keys to cover each region in the instance config. Multi-regional
57-
* location KMS keys are not supported for USER_MANAGED instance configs.
50+
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. KMS keys specified can be
51+
* in any order. The keys referenced by `kms_key_names` must fully cover all regions of the
52+
* backup's instance configuration. Some examples: * For regional (single-region) instance
53+
* configurations, specify a regional location KMS key. * For multi-region instance configurations
54+
* of type `GOOGLE_MANAGED`, either specify a multi-region location KMS key or multiple regional
55+
* location KMS keys that cover all regions in the instance configuration. * For an instance
56+
* configuration of type `USER_MANAGED`, specify only regional location KMS keys to cover each
57+
* region in the instance configuration. Multi-region location KMS keys aren't supported for
58+
* `USER_MANAGED` type instance configurations.
5859
* The value may be {@code null}.
5960
*/
6061
@com.google.api.client.util.Key
@@ -100,14 +101,15 @@ public CopyBackupEncryptionConfig setKmsKeyName(java.lang.String kmsKeyName) {
100101

101102
/**
102103
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
103-
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. Kms keys specified can be
104-
* in any order. The keys referenced by kms_key_names must fully cover all regions of the backup's
105-
* instance configuration. Some examples: * For single region instance configs, specify a single
106-
* regional location KMS key. * For multi-regional instance configs of type GOOGLE_MANAGED, either
107-
* specify a multi-regional location KMS key or multiple regional location KMS keys that cover all
108-
* regions in the instance config. * For an instance config of type USER_MANAGED, please specify
109-
* only regional location KMS keys to cover each region in the instance config. Multi-regional
110-
* location KMS keys are not supported for USER_MANAGED instance configs.
104+
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. KMS keys specified can be
105+
* in any order. The keys referenced by `kms_key_names` must fully cover all regions of the
106+
* backup's instance configuration. Some examples: * For regional (single-region) instance
107+
* configurations, specify a regional location KMS key. * For multi-region instance configurations
108+
* of type `GOOGLE_MANAGED`, either specify a multi-region location KMS key or multiple regional
109+
* location KMS keys that cover all regions in the instance configuration. * For an instance
110+
* configuration of type `USER_MANAGED`, specify only regional location KMS keys to cover each
111+
* region in the instance configuration. Multi-region location KMS keys aren't supported for
112+
* `USER_MANAGED` type instance configurations.
111113
* @return value or {@code null} for none
112114
*/
113115
public java.util.List<java.lang.String> getKmsKeyNames() {
@@ -116,14 +118,15 @@ public java.util.List<java.lang.String> getKmsKeyNames() {
116118

117119
/**
118120
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
119-
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. Kms keys specified can be
120-
* in any order. The keys referenced by kms_key_names must fully cover all regions of the backup's
121-
* instance configuration. Some examples: * For single region instance configs, specify a single
122-
* regional location KMS key. * For multi-regional instance configs of type GOOGLE_MANAGED, either
123-
* specify a multi-regional location KMS key or multiple regional location KMS keys that cover all
124-
* regions in the instance config. * For an instance config of type USER_MANAGED, please specify
125-
* only regional location KMS keys to cover each region in the instance config. Multi-regional
126-
* location KMS keys are not supported for USER_MANAGED instance configs.
121+
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. KMS keys specified can be
122+
* in any order. The keys referenced by `kms_key_names` must fully cover all regions of the
123+
* backup's instance configuration. Some examples: * For regional (single-region) instance
124+
* configurations, specify a regional location KMS key. * For multi-region instance configurations
125+
* of type `GOOGLE_MANAGED`, either specify a multi-region location KMS key or multiple regional
126+
* location KMS keys that cover all regions in the instance configuration. * For an instance
127+
* configuration of type `USER_MANAGED`, specify only regional location KMS keys to cover each
128+
* region in the instance configuration. Multi-region location KMS keys aren't supported for
129+
* `USER_MANAGED` type instance configurations.
127130
* @param kmsKeyNames kmsKeyNames or {@code null} for none
128131
*/
129132
public CopyBackupEncryptionConfig setKmsKeyNames(java.util.List<java.lang.String> kmsKeyNames) {

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ public final class CreateBackupEncryptionConfig extends com.google.api.client.js
4848
/**
4949
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
5050
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
51-
* kms_key_names must fully cover all regions of the backup's instance configuration. Some
52-
* examples: * For single region instance configs, specify a single regional location KMS key. *
53-
* For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional
54-
* location KMS key or multiple regional location KMS keys that cover all regions in the instance
55-
* config. * For an instance config of type USER_MANAGED, please specify only regional location
56-
* KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not
57-
* supported for USER_MANAGED instance configs.
51+
* `kms_key_names` must fully cover all regions of the backup's instance configuration. Some
52+
* examples: * For regional (single-region) instance configurations, specify a regional location
53+
* KMS key. * For multi-region instance configurations of type `GOOGLE_MANAGED`, either specify a
54+
* multi-region location KMS key or multiple regional location KMS keys that cover all regions in
55+
* the instance configuration. * For an instance configuration of type `USER_MANAGED`, specify
56+
* only regional location KMS keys to cover each region in the instance configuration. Multi-
57+
* region location KMS keys aren't supported for `USER_MANAGED` type instance configurations.
5858
* The value may be {@code null}.
5959
*/
6060
@com.google.api.client.util.Key
@@ -101,13 +101,13 @@ public CreateBackupEncryptionConfig setKmsKeyName(java.lang.String kmsKeyName) {
101101
/**
102102
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
103103
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
104-
* kms_key_names must fully cover all regions of the backup's instance configuration. Some
105-
* examples: * For single region instance configs, specify a single regional location KMS key. *
106-
* For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional
107-
* location KMS key or multiple regional location KMS keys that cover all regions in the instance
108-
* config. * For an instance config of type USER_MANAGED, please specify only regional location
109-
* KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not
110-
* supported for USER_MANAGED instance configs.
104+
* `kms_key_names` must fully cover all regions of the backup's instance configuration. Some
105+
* examples: * For regional (single-region) instance configurations, specify a regional location
106+
* KMS key. * For multi-region instance configurations of type `GOOGLE_MANAGED`, either specify a
107+
* multi-region location KMS key or multiple regional location KMS keys that cover all regions in
108+
* the instance configuration. * For an instance configuration of type `USER_MANAGED`, specify
109+
* only regional location KMS keys to cover each region in the instance configuration. Multi-
110+
* region location KMS keys aren't supported for `USER_MANAGED` type instance configurations.
111111
* @return value or {@code null} for none
112112
*/
113113
public java.util.List<java.lang.String> getKmsKeyNames() {
@@ -117,13 +117,13 @@ public java.util.List<java.lang.String> getKmsKeyNames() {
117117
/**
118118
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
119119
* Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
120-
* kms_key_names must fully cover all regions of the backup's instance configuration. Some
121-
* examples: * For single region instance configs, specify a single regional location KMS key. *
122-
* For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional
123-
* location KMS key or multiple regional location KMS keys that cover all regions in the instance
124-
* config. * For an instance config of type USER_MANAGED, please specify only regional location
125-
* KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not
126-
* supported for USER_MANAGED instance configs.
120+
* `kms_key_names` must fully cover all regions of the backup's instance configuration. Some
121+
* examples: * For regional (single-region) instance configurations, specify a regional location
122+
* KMS key. * For multi-region instance configurations of type `GOOGLE_MANAGED`, either specify a
123+
* multi-region location KMS key or multiple regional location KMS keys that cover all regions in
124+
* the instance configuration. * For an instance configuration of type `USER_MANAGED`, specify
125+
* only regional location KMS keys to cover each region in the instance configuration. Multi-
126+
* region location KMS keys aren't supported for `USER_MANAGED` type instance configurations.
127127
* @param kmsKeyNames kmsKeyNames or {@code null} for none
128128
*/
129129
public CreateBackupEncryptionConfig setKmsKeyNames(java.util.List<java.lang.String> kmsKeyNames) {

0 commit comments

Comments
 (0)