Skip to content

Commit 261c4ac

Browse files
1 parent 4a2872e commit 261c4ac

20 files changed

+2071
-18
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-rev20250611-2.0.0</version>
25+
<version>v1-rev20250625-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-rev20250611-2.0.0'
38+
implementation 'com.google.apis:google-api-services-backupdr:v1-rev20250625-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 720 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public final class Backup extends com.google.api.client.json.GenericJson {
5151
@com.google.api.client.util.Key
5252
private java.lang.String backupType;
5353

54+
/**
55+
* Output only. Cloud SQL specific backup properties.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private CloudSqlInstanceBackupProperties cloudSqlInstanceBackupProperties;
60+
5461
/**
5562
* Output only. Compute Engine specific backup properties.
5663
* The value may be {@code null}.
@@ -225,6 +232,23 @@ public Backup setBackupType(java.lang.String backupType) {
225232
return this;
226233
}
227234

235+
/**
236+
* Output only. Cloud SQL specific backup properties.
237+
* @return value or {@code null} for none
238+
*/
239+
public CloudSqlInstanceBackupProperties getCloudSqlInstanceBackupProperties() {
240+
return cloudSqlInstanceBackupProperties;
241+
}
242+
243+
/**
244+
* Output only. Cloud SQL specific backup properties.
245+
* @param cloudSqlInstanceBackupProperties cloudSqlInstanceBackupProperties or {@code null} for none
246+
*/
247+
public Backup setCloudSqlInstanceBackupProperties(CloudSqlInstanceBackupProperties cloudSqlInstanceBackupProperties) {
248+
this.cloudSqlInstanceBackupProperties = cloudSqlInstanceBackupProperties;
249+
return this;
250+
}
251+
228252
/**
229253
* Output only. Compute Engine specific backup properties.
230254
* @return value or {@code null} for none

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

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

92+
/**
93+
* Optional. Required for CloudSQL resource_type Configures how long logs will be stored. It is
94+
* defined in “days”. This value should be greater than or equal to minimum enforced log retention
95+
* duration of the backup vault.
96+
* The value may be {@code null}.
97+
*/
98+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
99+
private java.lang.Long logRetentionDays;
100+
92101
/**
93102
* Output only. Identifier. The resource name of the `BackupPlan`. Format:
94103
* `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
@@ -276,6 +285,27 @@ public BackupPlan setLabels(java.util.Map<String, java.lang.String> labels) {
276285
return this;
277286
}
278287

288+
/**
289+
* Optional. Required for CloudSQL resource_type Configures how long logs will be stored. It is
290+
* defined in “days”. This value should be greater than or equal to minimum enforced log retention
291+
* duration of the backup vault.
292+
* @return value or {@code null} for none
293+
*/
294+
public java.lang.Long getLogRetentionDays() {
295+
return logRetentionDays;
296+
}
297+
298+
/**
299+
* Optional. Required for CloudSQL resource_type Configures how long logs will be stored. It is
300+
* defined in “days”. This value should be greater than or equal to minimum enforced log retention
301+
* duration of the backup vault.
302+
* @param logRetentionDays logRetentionDays or {@code null} for none
303+
*/
304+
public BackupPlan setLogRetentionDays(java.lang.Long logRetentionDays) {
305+
this.logRetentionDays = logRetentionDays;
306+
return this;
307+
}
308+
279309
/**
280310
* Output only. Identifier. The resource name of the `BackupPlan`. Format:
281311
* `projects/{project}/locations/{location}/backupPlans/{backup_plan}`

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public final class BackupPlanAssociation extends com.google.api.client.json.Gene
5555
@com.google.api.client.util.Key
5656
private java.lang.String backupPlanRevisionName;
5757

58+
/**
59+
* Output only. Cloud SQL instance's backup plan association properties.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private CloudSqlInstanceBackupPlanAssociationProperties cloudSqlInstanceBackupPlanAssociationProperties;
64+
5865
/**
5966
* Output only. The time when the instance was created.
6067
* The value may be {@code null}.
@@ -174,6 +181,23 @@ public BackupPlanAssociation setBackupPlanRevisionName(java.lang.String backupPl
174181
return this;
175182
}
176183

184+
/**
185+
* Output only. Cloud SQL instance's backup plan association properties.
186+
* @return value or {@code null} for none
187+
*/
188+
public CloudSqlInstanceBackupPlanAssociationProperties getCloudSqlInstanceBackupPlanAssociationProperties() {
189+
return cloudSqlInstanceBackupPlanAssociationProperties;
190+
}
191+
192+
/**
193+
* Output only. Cloud SQL instance's backup plan association properties.
194+
* @param cloudSqlInstanceBackupPlanAssociationProperties cloudSqlInstanceBackupPlanAssociationProperties or {@code null} for none
195+
*/
196+
public BackupPlanAssociation setCloudSqlInstanceBackupPlanAssociationProperties(CloudSqlInstanceBackupPlanAssociationProperties cloudSqlInstanceBackupPlanAssociationProperties) {
197+
this.cloudSqlInstanceBackupPlanAssociationProperties = cloudSqlInstanceBackupPlanAssociationProperties;
198+
return this;
199+
}
200+
177201
/**
178202
* Output only. The time when the instance was created.
179203
* @return value or {@code null} for none

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ public final class BackupRule extends com.google.api.client.json.GenericJson {
3434
* Required. Configures the duration for which backup data will be kept. It is defined in “days”.
3535
* The value should be greater than or equal to minimum enforced retention of the backup vault.
3636
* Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum
37-
* value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum value is
38-
* 186 for daily backups. Minimum value is 7 and maximum value is 366 for weekly backups. Minimum
39-
* value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and maximum
40-
* value is 36159 for yearly backups.
37+
* and maximum values are workload specific for all other rules.
4138
* The value may be {@code null}.
4239
*/
4340
@com.google.api.client.util.Key
@@ -63,10 +60,7 @@ public final class BackupRule extends com.google.api.client.json.GenericJson {
6360
* Required. Configures the duration for which backup data will be kept. It is defined in “days”.
6461
* The value should be greater than or equal to minimum enforced retention of the backup vault.
6562
* Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum
66-
* value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum value is
67-
* 186 for daily backups. Minimum value is 7 and maximum value is 366 for weekly backups. Minimum
68-
* value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and maximum
69-
* value is 36159 for yearly backups.
63+
* and maximum values are workload specific for all other rules.
7064
* @return value or {@code null} for none
7165
*/
7266
public java.lang.Integer getBackupRetentionDays() {
@@ -77,10 +71,7 @@ public java.lang.Integer getBackupRetentionDays() {
7771
* Required. Configures the duration for which backup data will be kept. It is defined in “days”.
7872
* The value should be greater than or equal to minimum enforced retention of the backup vault.
7973
* Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum
80-
* value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum value is
81-
* 186 for daily backups. Minimum value is 7 and maximum value is 366 for weekly backups. Minimum
82-
* value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and maximum
83-
* value is 36159 for yearly backups.
74+
* and maximum values are workload specific for all other rules.
8475
* @param backupRetentionDays backupRetentionDays or {@code null} for none
8576
*/
8677
public BackupRule setBackupRetentionDays(java.lang.Integer backupRetentionDays) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
* Cloud SQL instance's BPA properties.
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 and DR Service API. For a detailed explanation
24+
* see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CloudSqlInstanceBackupPlanAssociationProperties extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. The time when the instance was created.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private String instanceCreateTime;
39+
40+
/**
41+
* Output only. The time when the instance was created.
42+
* @return value or {@code null} for none
43+
*/
44+
public String getInstanceCreateTime() {
45+
return instanceCreateTime;
46+
}
47+
48+
/**
49+
* Output only. The time when the instance was created.
50+
* @param instanceCreateTime instanceCreateTime or {@code null} for none
51+
*/
52+
public CloudSqlInstanceBackupPlanAssociationProperties setInstanceCreateTime(String instanceCreateTime) {
53+
this.instanceCreateTime = instanceCreateTime;
54+
return this;
55+
}
56+
57+
@Override
58+
public CloudSqlInstanceBackupPlanAssociationProperties set(String fieldName, Object value) {
59+
return (CloudSqlInstanceBackupPlanAssociationProperties) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public CloudSqlInstanceBackupPlanAssociationProperties clone() {
64+
return (CloudSqlInstanceBackupPlanAssociationProperties) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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+
* CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup properties. .
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 and DR Service API. For a detailed explanation
24+
* see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CloudSqlInstanceBackupProperties extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. The installed database version of the Cloud SQL instance when the backup was
35+
* taken.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String databaseInstalledVersion;
40+
41+
/**
42+
* Output only. Whether the backup is a final backup.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.Boolean finalBackup;
47+
48+
/**
49+
* Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String instanceTier;
54+
55+
/**
56+
* Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String sourceInstance;
61+
62+
/**
63+
* Output only. The installed database version of the Cloud SQL instance when the backup was
64+
* taken.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getDatabaseInstalledVersion() {
68+
return databaseInstalledVersion;
69+
}
70+
71+
/**
72+
* Output only. The installed database version of the Cloud SQL instance when the backup was
73+
* taken.
74+
* @param databaseInstalledVersion databaseInstalledVersion or {@code null} for none
75+
*/
76+
public CloudSqlInstanceBackupProperties setDatabaseInstalledVersion(java.lang.String databaseInstalledVersion) {
77+
this.databaseInstalledVersion = databaseInstalledVersion;
78+
return this;
79+
}
80+
81+
/**
82+
* Output only. Whether the backup is a final backup.
83+
* @return value or {@code null} for none
84+
*/
85+
public java.lang.Boolean getFinalBackup() {
86+
return finalBackup;
87+
}
88+
89+
/**
90+
* Output only. Whether the backup is a final backup.
91+
* @param finalBackup finalBackup or {@code null} for none
92+
*/
93+
public CloudSqlInstanceBackupProperties setFinalBackup(java.lang.Boolean finalBackup) {
94+
this.finalBackup = finalBackup;
95+
return this;
96+
}
97+
98+
/**
99+
* Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getInstanceTier() {
103+
return instanceTier;
104+
}
105+
106+
/**
107+
* Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
108+
* @param instanceTier instanceTier or {@code null} for none
109+
*/
110+
public CloudSqlInstanceBackupProperties setInstanceTier(java.lang.String instanceTier) {
111+
this.instanceTier = instanceTier;
112+
return this;
113+
}
114+
115+
/**
116+
* Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
117+
* @return value or {@code null} for none
118+
*/
119+
public java.lang.String getSourceInstance() {
120+
return sourceInstance;
121+
}
122+
123+
/**
124+
* Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
125+
* @param sourceInstance sourceInstance or {@code null} for none
126+
*/
127+
public CloudSqlInstanceBackupProperties setSourceInstance(java.lang.String sourceInstance) {
128+
this.sourceInstance = sourceInstance;
129+
return this;
130+
}
131+
132+
@Override
133+
public CloudSqlInstanceBackupProperties set(String fieldName, Object value) {
134+
return (CloudSqlInstanceBackupProperties) super.set(fieldName, value);
135+
}
136+
137+
@Override
138+
public CloudSqlInstanceBackupProperties clone() {
139+
return (CloudSqlInstanceBackupProperties) super.clone();
140+
}
141+
142+
}

0 commit comments

Comments
 (0)