Skip to content

Commit c441b6c

Browse files
1 parent 601c4c9 commit c441b6c

File tree

9 files changed

+244
-11
lines changed

9 files changed

+244
-11
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-rev20240418-2.0.0</version>
25+
<version>v1-rev20240423-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-rev20240418-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20240423-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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4890,6 +4890,52 @@ public Create setEncryptionConfigKmsKeyName(java.lang.String encryptionConfigKms
48904890
return this;
48914891
}
48924892

4893+
/**
4894+
* Optional. Specifies the KMS configuration for the one or more keys used to protect the
4895+
* backup. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys
4896+
* referenced by kms_key_names must fully cover all regions of the backup's instance
4897+
* configuration. Some examples: * For single region instance configs, specify a single
4898+
* regional location KMS key. * For multi-regional instance configs of type
4899+
* GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional
4900+
* location KMS keys that cover all regions in the instance config. * For an instance
4901+
* config of type USER_MANAGED, please specify only regional location KMS keys to cover
4902+
* each region in the instance config. Multi-regional location KMS keys are not supported
4903+
* for USER_MANAGED instance configs.
4904+
*/
4905+
@com.google.api.client.util.Key("encryptionConfig.kmsKeyNames")
4906+
private java.util.List<java.lang.String> encryptionConfigKmsKeyNames;
4907+
4908+
/** Optional. Specifies the KMS configuration for the one or more keys used to protect the backup.
4909+
Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
4910+
kms_key_names must fully cover all regions of the backup's instance configuration. Some examples: *
4911+
For single region instance configs, specify a single regional location KMS key. * For multi-
4912+
regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional location KMS key
4913+
or multiple regional location KMS keys that cover all regions in the instance config. * For an
4914+
instance config of type USER_MANAGED, please specify only regional location KMS keys to cover each
4915+
region in the instance config. Multi-regional location KMS keys are not supported for USER_MANAGED
4916+
instance configs.
4917+
*/
4918+
public java.util.List<java.lang.String> getEncryptionConfigKmsKeyNames() {
4919+
return encryptionConfigKmsKeyNames;
4920+
}
4921+
4922+
/**
4923+
* Optional. Specifies the KMS configuration for the one or more keys used to protect the
4924+
* backup. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys
4925+
* referenced by kms_key_names must fully cover all regions of the backup's instance
4926+
* configuration. Some examples: * For single region instance configs, specify a single
4927+
* regional location KMS key. * For multi-regional instance configs of type
4928+
* GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional
4929+
* location KMS keys that cover all regions in the instance config. * For an instance
4930+
* config of type USER_MANAGED, please specify only regional location KMS keys to cover
4931+
* each region in the instance config. Multi-regional location KMS keys are not supported
4932+
* for USER_MANAGED instance configs.
4933+
*/
4934+
public Create setEncryptionConfigKmsKeyNames(java.util.List<java.lang.String> encryptionConfigKmsKeyNames) {
4935+
this.encryptionConfigKmsKeyNames = encryptionConfigKmsKeyNames;
4936+
return this;
4937+
}
4938+
48934939
@Override
48944940
public Create set(String parameterName, Object value) {
48954941
return (Create) super.set(parameterName, value);

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ public final class Backup extends com.google.api.client.json.GenericJson {
6060
@com.google.api.client.util.Key
6161
private EncryptionInfo encryptionInfo;
6262

63+
/**
64+
* Output only. The encryption information for the backup, whether it is protected by one or more
65+
* KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The
66+
* `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the
67+
* key versions must be available for the backup to be restored. If a key version is revoked in
68+
* the middle of a restore, the restore behavior is undefined.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private java.util.List<EncryptionInfo> encryptionInformation;
73+
6374
/**
6475
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds
6576
* granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup
@@ -211,6 +222,31 @@ public Backup setEncryptionInfo(EncryptionInfo encryptionInfo) {
211222
return this;
212223
}
213224

225+
/**
226+
* Output only. The encryption information for the backup, whether it is protected by one or more
227+
* KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The
228+
* `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the
229+
* key versions must be available for the backup to be restored. If a key version is revoked in
230+
* the middle of a restore, the restore behavior is undefined.
231+
* @return value or {@code null} for none
232+
*/
233+
public java.util.List<EncryptionInfo> getEncryptionInformation() {
234+
return encryptionInformation;
235+
}
236+
237+
/**
238+
* Output only. The encryption information for the backup, whether it is protected by one or more
239+
* KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The
240+
* `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the
241+
* key versions must be available for the backup to be restored. If a key version is revoked in
242+
* the middle of a restore, the restore behavior is undefined.
243+
* @param encryptionInformation encryptionInformation or {@code null} for none
244+
*/
245+
public Backup setEncryptionInformation(java.util.List<EncryptionInfo> encryptionInformation) {
246+
this.encryptionInformation = encryptionInformation;
247+
return this;
248+
}
249+
214250
/**
215251
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds
216252
* granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,21 @@ public final class CopyBackupEncryptionConfig extends com.google.api.client.json
4545
@com.google.api.client.util.Key
4646
private java.lang.String kmsKeyName;
4747

48+
/**
49+
* 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.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private java.util.List<java.lang.String> kmsKeyNames;
62+
4863
/**
4964
* Required. The encryption type of the backup.
5065
* @return value or {@code null} for none
@@ -83,6 +98,39 @@ public CopyBackupEncryptionConfig setKmsKeyName(java.lang.String kmsKeyName) {
8398
return this;
8499
}
85100

101+
/**
102+
* 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.
111+
* @return value or {@code null} for none
112+
*/
113+
public java.util.List<java.lang.String> getKmsKeyNames() {
114+
return kmsKeyNames;
115+
}
116+
117+
/**
118+
* 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.
127+
* @param kmsKeyNames kmsKeyNames or {@code null} for none
128+
*/
129+
public CopyBackupEncryptionConfig setKmsKeyNames(java.util.List<java.lang.String> kmsKeyNames) {
130+
this.kmsKeyNames = kmsKeyNames;
131+
return this;
132+
}
133+
86134
@Override
87135
public CopyBackupEncryptionConfig set(String fieldName, Object value) {
88136
return (CopyBackupEncryptionConfig) super.set(fieldName, value);

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ public final class EncryptionConfig extends com.google.api.client.json.GenericJs
3737
@com.google.api.client.util.Key
3838
private java.lang.String kmsKeyName;
3939

40+
/**
41+
* Specifies the KMS configuration for the one or more keys used to encrypt the database. Values
42+
* are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
43+
* kms_key_names must fully cover all regions of the database instance configuration. Some
44+
* examples: * For single region database instance configs, specify a single regional location KMS
45+
* key. * For multi-regional database instance configs of type GOOGLE_MANAGED, either specify a
46+
* multi-regional location KMS key or multiple regional location KMS keys that cover all regions
47+
* in the instance config. * For a database instance config of type USER_MANAGED, please specify
48+
* only regional location KMS keys to cover each region in the instance config. Multi-regional
49+
* location KMS keys are not supported for USER_MANAGED instance configs.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.util.List<java.lang.String> kmsKeyNames;
54+
4055
/**
4156
* The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form
4257
* `projects//locations//keyRings//cryptoKeys/`.
@@ -56,6 +71,39 @@ public EncryptionConfig setKmsKeyName(java.lang.String kmsKeyName) {
5671
return this;
5772
}
5873

74+
/**
75+
* Specifies the KMS configuration for the one or more keys used to encrypt the database. Values
76+
* are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
77+
* kms_key_names must fully cover all regions of the database instance configuration. Some
78+
* examples: * For single region database instance configs, specify a single regional location KMS
79+
* key. * For multi-regional database instance configs of type GOOGLE_MANAGED, either specify a
80+
* multi-regional location KMS key or multiple regional location KMS keys that cover all regions
81+
* in the instance config. * For a database instance config of type USER_MANAGED, please specify
82+
* only regional location KMS keys to cover each region in the instance config. Multi-regional
83+
* location KMS keys are not supported for USER_MANAGED instance configs.
84+
* @return value or {@code null} for none
85+
*/
86+
public java.util.List<java.lang.String> getKmsKeyNames() {
87+
return kmsKeyNames;
88+
}
89+
90+
/**
91+
* Specifies the KMS configuration for the one or more keys used to encrypt the database. Values
92+
* are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by
93+
* kms_key_names must fully cover all regions of the database instance configuration. Some
94+
* examples: * For single region database instance configs, specify a single regional location KMS
95+
* key. * For multi-regional database instance configs of type GOOGLE_MANAGED, either specify a
96+
* multi-regional location KMS key or multiple regional location KMS keys that cover all regions
97+
* in the instance config. * For a database instance config of type USER_MANAGED, please specify
98+
* only regional location KMS keys to cover each region in the instance config. Multi-regional
99+
* location KMS keys are not supported for USER_MANAGED instance configs.
100+
* @param kmsKeyNames kmsKeyNames or {@code null} for none
101+
*/
102+
public EncryptionConfig setKmsKeyNames(java.util.List<java.lang.String> kmsKeyNames) {
103+
this.kmsKeyNames = kmsKeyNames;
104+
return this;
105+
}
106+
59107
@Override
60108
public EncryptionConfig set(String fieldName, Object value) {
61109
return (EncryptionConfig) super.set(fieldName, value);

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ public final class RestoreDatabaseEncryptionConfig extends com.google.api.client
4545
@com.google.api.client.util.Key
4646
private java.lang.String kmsKeyName;
4747

48+
/**
49+
* Optional. Specifies the KMS configuration for the one or more keys used to encrypt the
50+
* database. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys
51+
* referenced by kms_key_names must fully cover all regions of the database instance
52+
* configuration. Some examples: * For single region database instance configs, specify a single
53+
* regional location KMS key. * For multi-regional database instance configs of type
54+
* GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location
55+
* KMS keys that cover all regions in the instance config. * For a database instance config of
56+
* type USER_MANAGED, please specify only regional location KMS keys to cover each region in the
57+
* instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance
58+
* configs.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.util.List<java.lang.String> kmsKeyNames;
63+
4864
/**
4965
* Required. The encryption type of the restored database.
5066
* @return value or {@code null} for none
@@ -83,6 +99,41 @@ public RestoreDatabaseEncryptionConfig setKmsKeyName(java.lang.String kmsKeyName
8399
return this;
84100
}
85101

102+
/**
103+
* Optional. Specifies the KMS configuration for the one or more keys used to encrypt the
104+
* database. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys
105+
* referenced by kms_key_names must fully cover all regions of the database instance
106+
* configuration. Some examples: * For single region database instance configs, specify a single
107+
* regional location KMS key. * For multi-regional database instance configs of type
108+
* GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location
109+
* KMS keys that cover all regions in the instance config. * For a database instance config of
110+
* type USER_MANAGED, please specify only regional location KMS keys to cover each region in the
111+
* instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance
112+
* configs.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.util.List<java.lang.String> getKmsKeyNames() {
116+
return kmsKeyNames;
117+
}
118+
119+
/**
120+
* Optional. Specifies the KMS configuration for the one or more keys used to encrypt the
121+
* database. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys
122+
* referenced by kms_key_names must fully cover all regions of the database instance
123+
* configuration. Some examples: * For single region database instance configs, specify a single
124+
* regional location KMS key. * For multi-regional database instance configs of type
125+
* GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location
126+
* KMS keys that cover all regions in the instance config. * For a database instance config of
127+
* type USER_MANAGED, please specify only regional location KMS keys to cover each region in the
128+
* instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance
129+
* configs.
130+
* @param kmsKeyNames kmsKeyNames or {@code null} for none
131+
*/
132+
public RestoreDatabaseEncryptionConfig setKmsKeyNames(java.util.List<java.lang.String> kmsKeyNames) {
133+
this.kmsKeyNames = kmsKeyNames;
134+
return this;
135+
}
136+
86137
@Override
87138
public RestoreDatabaseEncryptionConfig set(String fieldName, Object value) {
88139
return (RestoreDatabaseEncryptionConfig) super.set(fieldName, value);

0 commit comments

Comments
 (0)