Skip to content

Commit a0db8f9

Browse files
1 parent c69f3a7 commit a0db8f9

File tree

18 files changed

+898
-82
lines changed

18 files changed

+898
-82
lines changed

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

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/SQLAdmin.java

Lines changed: 147 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,8 @@ public ListBackups set(String parameterName, Object value) {
782782
}
783783
}
784784
/**
785-
* Updates the retention period and description of the backup. You can use this API to update final
786-
* backups only.
785+
* This API updates the following: 1- retention period and description of backup in case of final
786+
* backups only. 2- gcbdr_soft_delete_status of backup in case of GCBDR managed backups only.
787787
*
788788
* Create a request for the method "Backups.UpdateBackup".
789789
*
@@ -808,8 +808,8 @@ public class UpdateBackup extends SQLAdminRequest<com.google.api.services.sqladm
808808
java.util.regex.Pattern.compile("^projects/[^/]+/backups/[^/]+$");
809809

810810
/**
811-
* Updates the retention period and description of the backup. You can use this API to update
812-
* final backups only.
811+
* This API updates the following: 1- retention period and description of backup in case of final
812+
* backups only. 2- gcbdr_soft_delete_status of backup in case of GCBDR managed backups only.
813813
*
814814
* Create a request for the method "Backups.UpdateBackup".
815815
*
@@ -914,22 +914,24 @@ public UpdateBackup setName(java.lang.String name) {
914914
}
915915

916916
/**
917-
* The list of fields that you can update. You can update only the description and retention
918-
* period of the final backup.
917+
* The list of fields that you can update. 1- You can update only the description and
918+
* retention period for a final backup. 2- You can update only the gcbdr_soft_delete_status
919+
* for GCBDR managed backup.
919920
*/
920921
@com.google.api.client.util.Key
921922
private String updateMask;
922923

923-
/** The list of fields that you can update. You can update only the description and retention period of
924-
the final backup.
924+
/** The list of fields that you can update. 1- You can update only the description and retention period
925+
for a final backup. 2- You can update only the gcbdr_soft_delete_status for GCBDR managed backup.
925926
*/
926927
public String getUpdateMask() {
927928
return updateMask;
928929
}
929930

930931
/**
931-
* The list of fields that you can update. You can update only the description and retention
932-
* period of the final backup.
932+
* The list of fields that you can update. 1- You can update only the description and
933+
* retention period for a final backup. 2- You can update only the gcbdr_soft_delete_status
934+
* for GCBDR managed backup.
933935
*/
934936
public UpdateBackup setUpdateMask(String updateMask) {
935937
this.updateMask = updateMask;
@@ -5613,6 +5615,141 @@ public Patch set(String parameterName, Object value) {
56135615
return (Patch) super.set(parameterName, value);
56145616
}
56155617
}
5618+
/**
5619+
* Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
5620+
*
5621+
* Create a request for the method "instances.pointInTimeRestore".
5622+
*
5623+
* This request holds the parameters needed by the sqladmin server. After setting any optional
5624+
* parameters, call the {@link PointInTimeRestore#execute()} method to invoke the remote operation.
5625+
*
5626+
* @param parent Required. The parent resource where you created this instance. Format: projects/{project}
5627+
* @param content the {@link com.google.api.services.sqladmin.model.PointInTimeRestoreContext}
5628+
* @return the request
5629+
*/
5630+
public PointInTimeRestore pointInTimeRestore(java.lang.String parent, com.google.api.services.sqladmin.model.PointInTimeRestoreContext content) throws java.io.IOException {
5631+
PointInTimeRestore result = new PointInTimeRestore(parent, content);
5632+
initialize(result);
5633+
return result;
5634+
}
5635+
5636+
public class PointInTimeRestore extends SQLAdminRequest<com.google.api.services.sqladmin.model.Operation> {
5637+
5638+
private static final String REST_PATH = "v1/{+parent}:pointInTimeRestore";
5639+
5640+
private final java.util.regex.Pattern PARENT_PATTERN =
5641+
java.util.regex.Pattern.compile("^projects/[^/]+$");
5642+
5643+
/**
5644+
* Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
5645+
*
5646+
* Create a request for the method "instances.pointInTimeRestore".
5647+
*
5648+
* This request holds the parameters needed by the the sqladmin server. After setting any
5649+
* optional parameters, call the {@link PointInTimeRestore#execute()} method to invoke the remote
5650+
* operation. <p> {@link PointInTimeRestore#initialize(com.google.api.client.googleapis.services.A
5651+
* bstractGoogleClientRequest)} must be called to initialize this instance immediately after
5652+
* invoking the constructor. </p>
5653+
*
5654+
* @param parent Required. The parent resource where you created this instance. Format: projects/{project}
5655+
* @param content the {@link com.google.api.services.sqladmin.model.PointInTimeRestoreContext}
5656+
* @since 1.13
5657+
*/
5658+
protected PointInTimeRestore(java.lang.String parent, com.google.api.services.sqladmin.model.PointInTimeRestoreContext content) {
5659+
super(SQLAdmin.this, "POST", REST_PATH, content, com.google.api.services.sqladmin.model.Operation.class);
5660+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
5661+
if (!getSuppressPatternChecks()) {
5662+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
5663+
"Parameter parent must conform to the pattern " +
5664+
"^projects/[^/]+$");
5665+
}
5666+
}
5667+
5668+
@Override
5669+
public PointInTimeRestore set$Xgafv(java.lang.String $Xgafv) {
5670+
return (PointInTimeRestore) super.set$Xgafv($Xgafv);
5671+
}
5672+
5673+
@Override
5674+
public PointInTimeRestore setAccessToken(java.lang.String accessToken) {
5675+
return (PointInTimeRestore) super.setAccessToken(accessToken);
5676+
}
5677+
5678+
@Override
5679+
public PointInTimeRestore setAlt(java.lang.String alt) {
5680+
return (PointInTimeRestore) super.setAlt(alt);
5681+
}
5682+
5683+
@Override
5684+
public PointInTimeRestore setCallback(java.lang.String callback) {
5685+
return (PointInTimeRestore) super.setCallback(callback);
5686+
}
5687+
5688+
@Override
5689+
public PointInTimeRestore setFields(java.lang.String fields) {
5690+
return (PointInTimeRestore) super.setFields(fields);
5691+
}
5692+
5693+
@Override
5694+
public PointInTimeRestore setKey(java.lang.String key) {
5695+
return (PointInTimeRestore) super.setKey(key);
5696+
}
5697+
5698+
@Override
5699+
public PointInTimeRestore setOauthToken(java.lang.String oauthToken) {
5700+
return (PointInTimeRestore) super.setOauthToken(oauthToken);
5701+
}
5702+
5703+
@Override
5704+
public PointInTimeRestore setPrettyPrint(java.lang.Boolean prettyPrint) {
5705+
return (PointInTimeRestore) super.setPrettyPrint(prettyPrint);
5706+
}
5707+
5708+
@Override
5709+
public PointInTimeRestore setQuotaUser(java.lang.String quotaUser) {
5710+
return (PointInTimeRestore) super.setQuotaUser(quotaUser);
5711+
}
5712+
5713+
@Override
5714+
public PointInTimeRestore setUploadType(java.lang.String uploadType) {
5715+
return (PointInTimeRestore) super.setUploadType(uploadType);
5716+
}
5717+
5718+
@Override
5719+
public PointInTimeRestore setUploadProtocol(java.lang.String uploadProtocol) {
5720+
return (PointInTimeRestore) super.setUploadProtocol(uploadProtocol);
5721+
}
5722+
5723+
/**
5724+
* Required. The parent resource where you created this instance. Format: projects/{project}
5725+
*/
5726+
@com.google.api.client.util.Key
5727+
private java.lang.String parent;
5728+
5729+
/** Required. The parent resource where you created this instance. Format: projects/{project}
5730+
*/
5731+
public java.lang.String getParent() {
5732+
return parent;
5733+
}
5734+
5735+
/**
5736+
* Required. The parent resource where you created this instance. Format: projects/{project}
5737+
*/
5738+
public PointInTimeRestore setParent(java.lang.String parent) {
5739+
if (!getSuppressPatternChecks()) {
5740+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
5741+
"Parameter parent must conform to the pattern " +
5742+
"^projects/[^/]+$");
5743+
}
5744+
this.parent = parent;
5745+
return this;
5746+
}
5747+
5748+
@Override
5749+
public PointInTimeRestore set(String parameterName, Object value) {
5750+
return (PointInTimeRestore) super.set(parameterName, value);
5751+
}
5752+
}
56165753
/**
56175754
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this
56185755
* operation might cause your instance to restart.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.sqladmin.model;
1818

1919
/**
20-
* A backup resource.
20+
* A backup resource. Next ID: 30
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/BackupConfiguration.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public final class BackupConfiguration extends com.google.api.client.json.Generi
3636
@com.google.api.client.util.Key
3737
private BackupRetentionSettings backupRetentionSettings;
3838

39+
/**
40+
* Output only. Backup tier that manages the backups for the instance.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String backupTier;
45+
3946
/**
4047
* (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must
4148
* be disabled as well.
@@ -118,6 +125,23 @@ public BackupConfiguration setBackupRetentionSettings(BackupRetentionSettings ba
118125
return this;
119126
}
120127

128+
/**
129+
* Output only. Backup tier that manages the backups for the instance.
130+
* @return value or {@code null} for none
131+
*/
132+
public java.lang.String getBackupTier() {
133+
return backupTier;
134+
}
135+
136+
/**
137+
* Output only. Backup tier that manages the backups for the instance.
138+
* @param backupTier backupTier or {@code null} for none
139+
*/
140+
public BackupConfiguration setBackupTier(java.lang.String backupTier) {
141+
this.backupTier = backupTier;
142+
return this;
143+
}
144+
121145
/**
122146
* (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must
123147
* be disabled as well.

clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/InstancesRestoreBackupRequest.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ public final class InstancesRestoreBackupRequest extends com.google.api.client.j
3838
@com.google.api.client.util.Key
3939
private java.lang.String backup;
4040

41+
/**
42+
* The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-
43+
* id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-
44+
* uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String backupdrBackup;
49+
4150
/**
4251
* Parameters required to perform the restore backup operation.
4352
* The value may be {@code null}.
@@ -76,6 +85,27 @@ public InstancesRestoreBackupRequest setBackup(java.lang.String backup) {
7685
return this;
7786
}
7887

88+
/**
89+
* The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-
90+
* id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-
91+
* uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
92+
* @return value or {@code null} for none
93+
*/
94+
public java.lang.String getBackupdrBackup() {
95+
return backupdrBackup;
96+
}
97+
98+
/**
99+
* The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-
100+
* id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-
101+
* uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
102+
* @param backupdrBackup backupdrBackup or {@code null} for none
103+
*/
104+
public InstancesRestoreBackupRequest setBackupdrBackup(java.lang.String backupdrBackup) {
105+
this.backupdrBackup = backupdrBackup;
106+
return this;
107+
}
108+
79109
/**
80110
* Parameters required to perform the restore backup operation.
81111
* @return value or {@code null} for none

0 commit comments

Comments
 (0)