Skip to content

Commit 62c0ccc

Browse files
1 parent 6b4a0c5 commit 62c0ccc

File tree

8 files changed

+245
-6
lines changed

8 files changed

+245
-6
lines changed

clients/google-api-services-backupdr/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-backupdr</artifactId>
25-
<version>v1-rev20251029-2.0.0</version>
25+
<version>v1-rev20251105-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-backupdr:v1-rev20251029-2.0.0'
38+
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20251105-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ public final class Backup extends com.google.api.client.json.GenericJson {
5151
@com.google.api.client.util.Key
5252
private java.util.List<BackupLock> backupApplianceLocks;
5353

54+
/**
55+
* Output only. Setting for how the enforced retention end time is inherited. This value is copied
56+
* from this backup's BackupVault.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String backupRetentionInheritance;
61+
5462
/**
5563
* Output only. Type of the backup, unspecified, scheduled or ondemand.
5664
* The value may be {@code null}.
@@ -135,6 +143,13 @@ public final class Backup extends com.google.api.client.json.GenericJson {
135143
@com.google.api.client.util.Key
136144
private BackupGcpResource gcpResource;
137145

146+
/**
147+
* Optional. Output only. The list of KMS key versions used to encrypt the backup.
148+
* The value may be {@code null}.
149+
*/
150+
@com.google.api.client.util.Key
151+
private java.util.List<java.lang.String> kmsKeyVersions;
152+
138153
/**
139154
* Optional. Resource labels to represent user provided metadata. No labels currently defined.
140155
* The value may be {@code null}.
@@ -246,6 +261,25 @@ public Backup setBackupApplianceLocks(java.util.List<BackupLock> backupAppliance
246261
return this;
247262
}
248263

264+
/**
265+
* Output only. Setting for how the enforced retention end time is inherited. This value is copied
266+
* from this backup's BackupVault.
267+
* @return value or {@code null} for none
268+
*/
269+
public java.lang.String getBackupRetentionInheritance() {
270+
return backupRetentionInheritance;
271+
}
272+
273+
/**
274+
* Output only. Setting for how the enforced retention end time is inherited. This value is copied
275+
* from this backup's BackupVault.
276+
* @param backupRetentionInheritance backupRetentionInheritance or {@code null} for none
277+
*/
278+
public Backup setBackupRetentionInheritance(java.lang.String backupRetentionInheritance) {
279+
this.backupRetentionInheritance = backupRetentionInheritance;
280+
return this;
281+
}
282+
249283
/**
250284
* Output only. Type of the backup, unspecified, scheduled or ondemand.
251285
* @return value or {@code null} for none
@@ -450,6 +484,23 @@ public Backup setGcpResource(BackupGcpResource gcpResource) {
450484
return this;
451485
}
452486

487+
/**
488+
* Optional. Output only. The list of KMS key versions used to encrypt the backup.
489+
* @return value or {@code null} for none
490+
*/
491+
public java.util.List<java.lang.String> getKmsKeyVersions() {
492+
return kmsKeyVersions;
493+
}
494+
495+
/**
496+
* Optional. Output only. The list of KMS key versions used to encrypt the backup.
497+
* @param kmsKeyVersions kmsKeyVersions or {@code null} for none
498+
*/
499+
public Backup setKmsKeyVersions(java.util.List<java.lang.String> kmsKeyVersions) {
500+
this.kmsKeyVersions = kmsKeyVersions;
501+
return this;
502+
}
503+
453504
/**
454505
* Optional. Resource labels to represent user provided metadata. No labels currently defined.
455506
* @return value or {@code null} for none

clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/BackupVault.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ public final class BackupVault extends com.google.api.client.json.GenericJson {
6464
@com.google.api.client.util.Key
6565
private String backupMinimumEnforcedRetentionDuration;
6666

67+
/**
68+
* Optional. Setting for how a backup's enforced retention end time is inherited.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private java.lang.String backupRetentionInheritance;
73+
6774
/**
6875
* Output only. The time when the instance was created.
6976
* The value may be {@code null}.
@@ -92,6 +99,13 @@ public final class BackupVault extends com.google.api.client.json.GenericJson {
9299
@com.google.api.client.util.Key
93100
private String effectiveTime;
94101

102+
/**
103+
* Optional. The encryption config of the backup vault.
104+
* The value may be {@code null}.
105+
*/
106+
@com.google.api.client.util.Key
107+
private EncryptionConfig encryptionConfig;
108+
95109
/**
96110
* Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates
97111
* from overwiting each other.
@@ -234,6 +248,23 @@ public BackupVault setBackupMinimumEnforcedRetentionDuration(String backupMinimu
234248
return this;
235249
}
236250

251+
/**
252+
* Optional. Setting for how a backup's enforced retention end time is inherited.
253+
* @return value or {@code null} for none
254+
*/
255+
public java.lang.String getBackupRetentionInheritance() {
256+
return backupRetentionInheritance;
257+
}
258+
259+
/**
260+
* Optional. Setting for how a backup's enforced retention end time is inherited.
261+
* @param backupRetentionInheritance backupRetentionInheritance or {@code null} for none
262+
*/
263+
public BackupVault setBackupRetentionInheritance(java.lang.String backupRetentionInheritance) {
264+
this.backupRetentionInheritance = backupRetentionInheritance;
265+
return this;
266+
}
267+
237268
/**
238269
* Output only. The time when the instance was created.
239270
* @return value or {@code null} for none
@@ -302,6 +333,23 @@ public BackupVault setEffectiveTime(String effectiveTime) {
302333
return this;
303334
}
304335

336+
/**
337+
* Optional. The encryption config of the backup vault.
338+
* @return value or {@code null} for none
339+
*/
340+
public EncryptionConfig getEncryptionConfig() {
341+
return encryptionConfig;
342+
}
343+
344+
/**
345+
* Optional. The encryption config of the backup vault.
346+
* @param encryptionConfig encryptionConfig or {@code null} for none
347+
*/
348+
public BackupVault setEncryptionConfig(EncryptionConfig encryptionConfig) {
349+
this.encryptionConfig = encryptionConfig;
350+
return this;
351+
}
352+
305353
/**
306354
* Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates
307355
* from overwiting each other.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.backupdr.v1.model;
18+
19+
/**
20+
* Message describing the EncryptionConfig of backup vault. This determines how data within the
21+
* vault is encrypted at rest.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Backup and DR Service API. For a detailed explanation
25+
* see:
26+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class EncryptionConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same
36+
* region as the vault. Some workload backups like compute disk backups may use their inherited
37+
* source key instead. Format:
38+
* projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.lang.String kmsKeyName;
43+
44+
/**
45+
* Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same
46+
* region as the vault. Some workload backups like compute disk backups may use their inherited
47+
* source key instead. Format:
48+
* projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getKmsKeyName() {
52+
return kmsKeyName;
53+
}
54+
55+
/**
56+
* Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same
57+
* region as the vault. Some workload backups like compute disk backups may use their inherited
58+
* source key instead. Format:
59+
* projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
60+
* @param kmsKeyName kmsKeyName or {@code null} for none
61+
*/
62+
public EncryptionConfig setKmsKeyName(java.lang.String kmsKeyName) {
63+
this.kmsKeyName = kmsKeyName;
64+
return this;
65+
}
66+
67+
@Override
68+
public EncryptionConfig set(String fieldName, Object value) {
69+
return (EncryptionConfig) super.set(fieldName, value);
70+
}
71+
72+
@Override
73+
public EncryptionConfig clone() {
74+
return (EncryptionConfig) super.clone();
75+
}
76+
77+
}

clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/RestoreBackupRequest.java

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

33+
/**
34+
* Optional. A field mask used to clear server-side default values for fields within the
35+
* `instance_properties` oneof. When a field in this mask is cleared, the server will not apply
36+
* its default logic (like inheriting a value from the source) for that field. The most common
37+
* current use case is clearing default encryption keys. Examples of field mask paths: - Compute
38+
* Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key` - Single
39+
* Disk: `disk_restore_properties.disk_encryption_key`
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private String clearOverridesFieldMask;
44+
3345
/**
3446
* Compute Engine instance properties to be overridden during restore.
3547
* The value may be {@code null}.
@@ -79,6 +91,33 @@ public final class RestoreBackupRequest extends com.google.api.client.json.Gener
7991
@com.google.api.client.util.Key
8092
private java.lang.String requestId;
8193

94+
/**
95+
* Optional. A field mask used to clear server-side default values for fields within the
96+
* `instance_properties` oneof. When a field in this mask is cleared, the server will not apply
97+
* its default logic (like inheriting a value from the source) for that field. The most common
98+
* current use case is clearing default encryption keys. Examples of field mask paths: - Compute
99+
* Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key` - Single
100+
* Disk: `disk_restore_properties.disk_encryption_key`
101+
* @return value or {@code null} for none
102+
*/
103+
public String getClearOverridesFieldMask() {
104+
return clearOverridesFieldMask;
105+
}
106+
107+
/**
108+
* Optional. A field mask used to clear server-side default values for fields within the
109+
* `instance_properties` oneof. When a field in this mask is cleared, the server will not apply
110+
* its default logic (like inheriting a value from the source) for that field. The most common
111+
* current use case is clearing default encryption keys. Examples of field mask paths: - Compute
112+
* Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key` - Single
113+
* Disk: `disk_restore_properties.disk_encryption_key`
114+
* @param clearOverridesFieldMask clearOverridesFieldMask or {@code null} for none
115+
*/
116+
public RestoreBackupRequest setClearOverridesFieldMask(String clearOverridesFieldMask) {
117+
this.clearOverridesFieldMask = clearOverridesFieldMask;
118+
return this;
119+
}
120+
82121
/**
83122
* Compute Engine instance properties to be overridden during restore.
84123
* @return value or {@code null} for none

clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/model/TriggerBackupRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public final class TriggerBackupRequest extends com.google.api.client.json.Gener
3939
@com.google.api.client.util.Key
4040
private java.lang.Integer customRetentionDays;
4141

42+
/**
43+
* Optional. Labels to be applied on the backup.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.Map<String, java.lang.String> labels;
48+
4249
/**
4350
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if
4451
* you must retry your request, the server will know to ignore the request if it has already been
@@ -82,6 +89,23 @@ public TriggerBackupRequest setCustomRetentionDays(java.lang.Integer customReten
8289
return this;
8390
}
8491

92+
/**
93+
* Optional. Labels to be applied on the backup.
94+
* @return value or {@code null} for none
95+
*/
96+
public java.util.Map<String, java.lang.String> getLabels() {
97+
return labels;
98+
}
99+
100+
/**
101+
* Optional. Labels to be applied on the backup.
102+
* @param labels labels or {@code null} for none
103+
*/
104+
public TriggerBackupRequest setLabels(java.util.Map<String, java.lang.String> labels) {
105+
this.labels = labels;
106+
return this;
107+
}
108+
85109
/**
86110
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if
87111
* you must retry your request, the server will know to ignore the request if it has already been

clients/google-api-services-backupdr/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-backupdr</artifactId>
11-
<version>v1-rev20251029-2.0.0</version>
12-
<name>Backup and DR Service API v1-rev20251029-2.0.0</name>
11+
<version>v1-rev20251105-2.0.0</version>
12+
<name>Backup and DR Service API v1-rev20251105-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-backupdr/v1/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-backupdr</artifactId>
25-
<version>v1-rev20251029-2.0.0</version>
25+
<version>v1-rev20251105-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-backupdr:v1-rev20251029-2.0.0'
38+
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20251105-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)