@@ -782,8 +782,8 @@ public ListBackups set(String parameterName, Object value) {
782
782
}
783
783
}
784
784
/**
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.
787
787
*
788
788
* Create a request for the method "Backups.UpdateBackup".
789
789
*
@@ -808,8 +808,8 @@ public class UpdateBackup extends SQLAdminRequest<com.google.api.services.sqladm
808
808
java .util .regex .Pattern .compile ("^projects/[^/]+/backups/[^/]+$" );
809
809
810
810
/**
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.
813
813
*
814
814
* Create a request for the method "Backups.UpdateBackup".
815
815
*
@@ -914,22 +914,24 @@ public UpdateBackup setName(java.lang.String name) {
914
914
}
915
915
916
916
/**
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.
919
920
*/
920
921
@ com .google .api .client .util .Key
921
922
private String updateMask ;
922
923
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.
925
926
*/
926
927
public String getUpdateMask () {
927
928
return updateMask ;
928
929
}
929
930
930
931
/**
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.
933
935
*/
934
936
public UpdateBackup setUpdateMask (String updateMask ) {
935
937
this .updateMask = updateMask ;
@@ -5613,6 +5615,141 @@ public Patch set(String parameterName, Object value) {
5613
5615
return (Patch ) super .set (parameterName , value );
5614
5616
}
5615
5617
}
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
+ }
5616
5753
/**
5617
5754
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this
5618
5755
* operation might cause your instance to restart.
0 commit comments