@@ -4431,6 +4431,143 @@ public DemoteMaster set(String parameterName, Object value) {
44314431 return (DemoteMaster ) super .set (parameterName , value );
44324432 }
44334433 }
4434+ /**
4435+ * Execute SQL statements.
4436+ *
4437+ * Create a request for the method "instances.executeSql".
4438+ *
4439+ * This request holds the parameters needed by the sqladmin server. After setting any optional
4440+ * parameters, call the {@link ExecuteSql#execute()} method to invoke the remote operation.
4441+ *
4442+ * @param project Required. Project ID of the project that contains the instance.
4443+ * @param instance Required. Database instance ID. This does not include the project ID.
4444+ * @param content the {@link com.google.api.services.sqladmin.model.ExecuteSqlPayload}
4445+ * @return the request
4446+ */
4447+ public ExecuteSql executeSql (java .lang .String project , java .lang .String instance , com .google .api .services .sqladmin .model .ExecuteSqlPayload content ) throws java .io .IOException {
4448+ ExecuteSql result = new ExecuteSql (project , instance , content );
4449+ initialize (result );
4450+ return result ;
4451+ }
4452+
4453+ public class ExecuteSql extends SQLAdminRequest <com .google .api .services .sqladmin .model .SqlInstancesExecuteSqlResponse > {
4454+
4455+ private static final String REST_PATH = "v1/projects/{project}/instances/{instance}/executeSql" ;
4456+
4457+ /**
4458+ * Execute SQL statements.
4459+ *
4460+ * Create a request for the method "instances.executeSql".
4461+ *
4462+ * This request holds the parameters needed by the the sqladmin server. After setting any
4463+ * optional parameters, call the {@link ExecuteSql#execute()} method to invoke the remote
4464+ * operation. <p> {@link
4465+ * ExecuteSql#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
4466+ * must be called to initialize this instance immediately after invoking the constructor. </p>
4467+ *
4468+ * @param project Required. Project ID of the project that contains the instance.
4469+ * @param instance Required. Database instance ID. This does not include the project ID.
4470+ * @param content the {@link com.google.api.services.sqladmin.model.ExecuteSqlPayload}
4471+ * @since 1.13
4472+ */
4473+ protected ExecuteSql (java .lang .String project , java .lang .String instance , com .google .api .services .sqladmin .model .ExecuteSqlPayload content ) {
4474+ super (SQLAdmin .this , "POST" , REST_PATH , content , com .google .api .services .sqladmin .model .SqlInstancesExecuteSqlResponse .class );
4475+ this .project = com .google .api .client .util .Preconditions .checkNotNull (project , "Required parameter project must be specified." );
4476+ this .instance = com .google .api .client .util .Preconditions .checkNotNull (instance , "Required parameter instance must be specified." );
4477+ }
4478+
4479+ @ Override
4480+ public ExecuteSql set$Xgafv (java .lang .String $Xgafv ) {
4481+ return (ExecuteSql ) super .set$Xgafv ($Xgafv );
4482+ }
4483+
4484+ @ Override
4485+ public ExecuteSql setAccessToken (java .lang .String accessToken ) {
4486+ return (ExecuteSql ) super .setAccessToken (accessToken );
4487+ }
4488+
4489+ @ Override
4490+ public ExecuteSql setAlt (java .lang .String alt ) {
4491+ return (ExecuteSql ) super .setAlt (alt );
4492+ }
4493+
4494+ @ Override
4495+ public ExecuteSql setCallback (java .lang .String callback ) {
4496+ return (ExecuteSql ) super .setCallback (callback );
4497+ }
4498+
4499+ @ Override
4500+ public ExecuteSql setFields (java .lang .String fields ) {
4501+ return (ExecuteSql ) super .setFields (fields );
4502+ }
4503+
4504+ @ Override
4505+ public ExecuteSql setKey (java .lang .String key ) {
4506+ return (ExecuteSql ) super .setKey (key );
4507+ }
4508+
4509+ @ Override
4510+ public ExecuteSql setOauthToken (java .lang .String oauthToken ) {
4511+ return (ExecuteSql ) super .setOauthToken (oauthToken );
4512+ }
4513+
4514+ @ Override
4515+ public ExecuteSql setPrettyPrint (java .lang .Boolean prettyPrint ) {
4516+ return (ExecuteSql ) super .setPrettyPrint (prettyPrint );
4517+ }
4518+
4519+ @ Override
4520+ public ExecuteSql setQuotaUser (java .lang .String quotaUser ) {
4521+ return (ExecuteSql ) super .setQuotaUser (quotaUser );
4522+ }
4523+
4524+ @ Override
4525+ public ExecuteSql setUploadType (java .lang .String uploadType ) {
4526+ return (ExecuteSql ) super .setUploadType (uploadType );
4527+ }
4528+
4529+ @ Override
4530+ public ExecuteSql setUploadProtocol (java .lang .String uploadProtocol ) {
4531+ return (ExecuteSql ) super .setUploadProtocol (uploadProtocol );
4532+ }
4533+
4534+ /** Required. Project ID of the project that contains the instance. */
4535+ @ com .google .api .client .util .Key
4536+ private java .lang .String project ;
4537+
4538+ /** Required. Project ID of the project that contains the instance.
4539+ */
4540+ public java .lang .String getProject () {
4541+ return project ;
4542+ }
4543+
4544+ /** Required. Project ID of the project that contains the instance. */
4545+ public ExecuteSql setProject (java .lang .String project ) {
4546+ this .project = project ;
4547+ return this ;
4548+ }
4549+
4550+ /** Required. Database instance ID. This does not include the project ID. */
4551+ @ com .google .api .client .util .Key
4552+ private java .lang .String instance ;
4553+
4554+ /** Required. Database instance ID. This does not include the project ID.
4555+ */
4556+ public java .lang .String getInstance () {
4557+ return instance ;
4558+ }
4559+
4560+ /** Required. Database instance ID. This does not include the project ID. */
4561+ public ExecuteSql setInstance (java .lang .String instance ) {
4562+ this .instance = instance ;
4563+ return this ;
4564+ }
4565+
4566+ @ Override
4567+ public ExecuteSql set (String parameterName , Object value ) {
4568+ return (ExecuteSql ) super .set (parameterName , value );
4569+ }
4570+ }
44344571 /**
44354572 * Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
44364573 *
@@ -8270,6 +8407,29 @@ public GetLatestRecoveryTime setInstance(java.lang.String instance) {
82708407 return this ;
82718408 }
82728409
8410+ /**
8411+ * The timestamp used to identify the time when the source instance is deleted. If this
8412+ * instance is deleted, then you must set the timestamp.
8413+ */
8414+ @ com .google .api .client .util .Key
8415+ private String sourceInstanceDeletionTime ;
8416+
8417+ /** The timestamp used to identify the time when the source instance is deleted. If this instance is
8418+ deleted, then you must set the timestamp.
8419+ */
8420+ public String getSourceInstanceDeletionTime () {
8421+ return sourceInstanceDeletionTime ;
8422+ }
8423+
8424+ /**
8425+ * The timestamp used to identify the time when the source instance is deleted. If this
8426+ * instance is deleted, then you must set the timestamp.
8427+ */
8428+ public GetLatestRecoveryTime setSourceInstanceDeletionTime (String sourceInstanceDeletionTime ) {
8429+ this .sourceInstanceDeletionTime = sourceInstanceDeletionTime ;
8430+ return this ;
8431+ }
8432+
82738433 @ Override
82748434 public GetLatestRecoveryTime set (String parameterName , Object value ) {
82758435 return (GetLatestRecoveryTime ) super .set (parameterName , value );
0 commit comments