Skip to content

Commit 51c3320

Browse files
1 parent 67905dd commit 51c3320

File tree

8 files changed

+426
-6
lines changed

8 files changed

+426
-6
lines changed

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
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.gkebackup.v1.model;
18+
19+
/**
20+
* BackupConfigDetails defines the configuration of Backups created via this BackupPlan.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Backup for GKE API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class BackupConfigDetails extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. If True, include all namespaced resources
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.Boolean allNamespaces;
38+
39+
/**
40+
* Output only. This defines a customer managed encryption key that will be used to encrypt the
41+
* "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty):
42+
* Config backup artifacts will not be encrypted.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private EncryptionKey encryptionKey;
47+
48+
/**
49+
* Output only. This flag specifies whether Kubernetes Secret resources should be included when
50+
* they fall into the scope of Backups. Default: False
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.Boolean includeSecrets;
55+
56+
/**
57+
* Output only. This flag specifies whether volume data should be backed up when PVCs are included
58+
* in the scope of a Backup. Default: False
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.Boolean includeVolumeData;
63+
64+
/**
65+
* Output only. If set, include just the resources referenced by the listed ProtectedApplications.
66+
* The value may be {@code null}.
67+
*/
68+
@com.google.api.client.util.Key
69+
private NamespacedNames selectedApplications;
70+
71+
/**
72+
* Output only. If set, include just the resources in the listed namespaces.
73+
* The value may be {@code null}.
74+
*/
75+
@com.google.api.client.util.Key
76+
private Namespaces selectedNamespaces;
77+
78+
/**
79+
* Output only. If True, include all namespaced resources
80+
* @return value or {@code null} for none
81+
*/
82+
public java.lang.Boolean getAllNamespaces() {
83+
return allNamespaces;
84+
}
85+
86+
/**
87+
* Output only. If True, include all namespaced resources
88+
* @param allNamespaces allNamespaces or {@code null} for none
89+
*/
90+
public BackupConfigDetails setAllNamespaces(java.lang.Boolean allNamespaces) {
91+
this.allNamespaces = allNamespaces;
92+
return this;
93+
}
94+
95+
/**
96+
* Output only. This defines a customer managed encryption key that will be used to encrypt the
97+
* "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty):
98+
* Config backup artifacts will not be encrypted.
99+
* @return value or {@code null} for none
100+
*/
101+
public EncryptionKey getEncryptionKey() {
102+
return encryptionKey;
103+
}
104+
105+
/**
106+
* Output only. This defines a customer managed encryption key that will be used to encrypt the
107+
* "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty):
108+
* Config backup artifacts will not be encrypted.
109+
* @param encryptionKey encryptionKey or {@code null} for none
110+
*/
111+
public BackupConfigDetails setEncryptionKey(EncryptionKey encryptionKey) {
112+
this.encryptionKey = encryptionKey;
113+
return this;
114+
}
115+
116+
/**
117+
* Output only. This flag specifies whether Kubernetes Secret resources should be included when
118+
* they fall into the scope of Backups. Default: False
119+
* @return value or {@code null} for none
120+
*/
121+
public java.lang.Boolean getIncludeSecrets() {
122+
return includeSecrets;
123+
}
124+
125+
/**
126+
* Output only. This flag specifies whether Kubernetes Secret resources should be included when
127+
* they fall into the scope of Backups. Default: False
128+
* @param includeSecrets includeSecrets or {@code null} for none
129+
*/
130+
public BackupConfigDetails setIncludeSecrets(java.lang.Boolean includeSecrets) {
131+
this.includeSecrets = includeSecrets;
132+
return this;
133+
}
134+
135+
/**
136+
* Output only. This flag specifies whether volume data should be backed up when PVCs are included
137+
* in the scope of a Backup. Default: False
138+
* @return value or {@code null} for none
139+
*/
140+
public java.lang.Boolean getIncludeVolumeData() {
141+
return includeVolumeData;
142+
}
143+
144+
/**
145+
* Output only. This flag specifies whether volume data should be backed up when PVCs are included
146+
* in the scope of a Backup. Default: False
147+
* @param includeVolumeData includeVolumeData or {@code null} for none
148+
*/
149+
public BackupConfigDetails setIncludeVolumeData(java.lang.Boolean includeVolumeData) {
150+
this.includeVolumeData = includeVolumeData;
151+
return this;
152+
}
153+
154+
/**
155+
* Output only. If set, include just the resources referenced by the listed ProtectedApplications.
156+
* @return value or {@code null} for none
157+
*/
158+
public NamespacedNames getSelectedApplications() {
159+
return selectedApplications;
160+
}
161+
162+
/**
163+
* Output only. If set, include just the resources referenced by the listed ProtectedApplications.
164+
* @param selectedApplications selectedApplications or {@code null} for none
165+
*/
166+
public BackupConfigDetails setSelectedApplications(NamespacedNames selectedApplications) {
167+
this.selectedApplications = selectedApplications;
168+
return this;
169+
}
170+
171+
/**
172+
* Output only. If set, include just the resources in the listed namespaces.
173+
* @return value or {@code null} for none
174+
*/
175+
public Namespaces getSelectedNamespaces() {
176+
return selectedNamespaces;
177+
}
178+
179+
/**
180+
* Output only. If set, include just the resources in the listed namespaces.
181+
* @param selectedNamespaces selectedNamespaces or {@code null} for none
182+
*/
183+
public BackupConfigDetails setSelectedNamespaces(Namespaces selectedNamespaces) {
184+
this.selectedNamespaces = selectedNamespaces;
185+
return this;
186+
}
187+
188+
@Override
189+
public BackupConfigDetails set(String fieldName, Object value) {
190+
return (BackupConfigDetails) super.set(fieldName, value);
191+
}
192+
193+
@Override
194+
public BackupConfigDetails clone() {
195+
return (BackupConfigDetails) super.clone();
196+
}
197+
198+
}

clients/google-api-services-gkebackup/v1/2.0.0/com/google/api/services/gkebackup/v1/model/BackupPlan.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 BackupPlan extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Output only. The fully qualified name of the BackupChannel to be used to create a backup. This
34+
* field is set only if the cluster being backed up is in a different project.
35+
* `projects/locations/backupChannels`
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String backupChannel;
40+
3241
/**
3342
* Optional. Defines the configuration of Backups created via this BackupPlan.
3443
* The value may be {@code null}.
@@ -175,6 +184,27 @@ public final class BackupPlan extends com.google.api.client.json.GenericJson {
175184
@com.google.api.client.util.Key
176185
private String updateTime;
177186

187+
/**
188+
* Output only. The fully qualified name of the BackupChannel to be used to create a backup. This
189+
* field is set only if the cluster being backed up is in a different project.
190+
* `projects/locations/backupChannels`
191+
* @return value or {@code null} for none
192+
*/
193+
public java.lang.String getBackupChannel() {
194+
return backupChannel;
195+
}
196+
197+
/**
198+
* Output only. The fully qualified name of the BackupChannel to be used to create a backup. This
199+
* field is set only if the cluster being backed up is in a different project.
200+
* `projects/locations/backupChannels`
201+
* @param backupChannel backupChannel or {@code null} for none
202+
*/
203+
public BackupPlan setBackupChannel(java.lang.String backupChannel) {
204+
this.backupChannel = backupChannel;
205+
return this;
206+
}
207+
178208
/**
179209
* Optional. Defines the configuration of Backups created via this BackupPlan.
180210
* @return value or {@code null} for none

clients/google-api-services-gkebackup/v1/2.0.0/com/google/api/services/gkebackup/v1/model/BackupPlanDetails.java

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

32+
/**
33+
* Output only. Contains details about the BackupConfig of Backups created via this BackupPlan.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private BackupConfigDetails backupConfigDetails;
38+
3239
/**
3340
* Output only. The fully qualified name of the last successful Backup created under this
3441
* BackupPlan. `projects/locations/backupPlans/backups`
@@ -61,6 +68,13 @@ public final class BackupPlanDetails extends com.google.api.client.json.GenericJ
6168
@com.google.api.client.util.Key
6269
private java.lang.Integer protectedPodCount;
6370

71+
/**
72+
* Output only. Contains details about the RetentionPolicy of Backups created via this BackupPlan.
73+
* The value may be {@code null}.
74+
*/
75+
@com.google.api.client.util.Key
76+
private RetentionPolicyDetails retentionPolicyDetails;
77+
6478
/**
6579
* Output only. A number that represents the current risk level of this BackupPlan from RPO
6680
* perspective with 1 being no risk and 5 being highest risk.
@@ -76,6 +90,23 @@ public final class BackupPlanDetails extends com.google.api.client.json.GenericJ
7690
@com.google.api.client.util.Key
7791
private java.lang.String state;
7892

93+
/**
94+
* Output only. Contains details about the BackupConfig of Backups created via this BackupPlan.
95+
* @return value or {@code null} for none
96+
*/
97+
public BackupConfigDetails getBackupConfigDetails() {
98+
return backupConfigDetails;
99+
}
100+
101+
/**
102+
* Output only. Contains details about the BackupConfig of Backups created via this BackupPlan.
103+
* @param backupConfigDetails backupConfigDetails or {@code null} for none
104+
*/
105+
public BackupPlanDetails setBackupConfigDetails(BackupConfigDetails backupConfigDetails) {
106+
this.backupConfigDetails = backupConfigDetails;
107+
return this;
108+
}
109+
79110
/**
80111
* Output only. The fully qualified name of the last successful Backup created under this
81112
* BackupPlan. `projects/locations/backupPlans/backups`
@@ -152,6 +183,23 @@ public BackupPlanDetails setProtectedPodCount(java.lang.Integer protectedPodCoun
152183
return this;
153184
}
154185

186+
/**
187+
* Output only. Contains details about the RetentionPolicy of Backups created via this BackupPlan.
188+
* @return value or {@code null} for none
189+
*/
190+
public RetentionPolicyDetails getRetentionPolicyDetails() {
191+
return retentionPolicyDetails;
192+
}
193+
194+
/**
195+
* Output only. Contains details about the RetentionPolicy of Backups created via this BackupPlan.
196+
* @param retentionPolicyDetails retentionPolicyDetails or {@code null} for none
197+
*/
198+
public BackupPlanDetails setRetentionPolicyDetails(RetentionPolicyDetails retentionPolicyDetails) {
199+
this.retentionPolicyDetails = retentionPolicyDetails;
200+
return this;
201+
}
202+
155203
/**
156204
* Output only. A number that represents the current risk level of this BackupPlan from RPO
157205
* perspective with 1 being no risk and 5 being highest risk.

clients/google-api-services-gkebackup/v1/2.0.0/com/google/api/services/gkebackup/v1/model/RestorePlan.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ public final class RestorePlan extends com.google.api.client.json.GenericJson {
8989
@com.google.api.client.util.Key
9090
private java.lang.String name;
9191

92+
/**
93+
* Output only. The fully qualified name of the RestoreChannel to be used to create a RestorePlan.
94+
* This field is set only if the `backup_plan` is in a different project than the RestorePlan.
95+
* Format: `projects/locations/restoreChannels`
96+
* The value may be {@code null}.
97+
*/
98+
@com.google.api.client.util.Key
99+
private java.lang.String restoreChannel;
100+
92101
/**
93102
* Required. Configuration of Restores created via this RestorePlan.
94103
* The value may be {@code null}.
@@ -267,6 +276,27 @@ public RestorePlan setName(java.lang.String name) {
267276
return this;
268277
}
269278

279+
/**
280+
* Output only. The fully qualified name of the RestoreChannel to be used to create a RestorePlan.
281+
* This field is set only if the `backup_plan` is in a different project than the RestorePlan.
282+
* Format: `projects/locations/restoreChannels`
283+
* @return value or {@code null} for none
284+
*/
285+
public java.lang.String getRestoreChannel() {
286+
return restoreChannel;
287+
}
288+
289+
/**
290+
* Output only. The fully qualified name of the RestoreChannel to be used to create a RestorePlan.
291+
* This field is set only if the `backup_plan` is in a different project than the RestorePlan.
292+
* Format: `projects/locations/restoreChannels`
293+
* @param restoreChannel restoreChannel or {@code null} for none
294+
*/
295+
public RestorePlan setRestoreChannel(java.lang.String restoreChannel) {
296+
this.restoreChannel = restoreChannel;
297+
return this;
298+
}
299+
270300
/**
271301
* Required. Configuration of Restores created via this RestorePlan.
272302
* @return value or {@code null} for none

0 commit comments

Comments
 (0)