Skip to content

Commit ff789fe

Browse files
1 parent 9aff629 commit ff789fe

18 files changed

+1047
-16
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-rev20250908-2.0.0</version>
25+
<version>v1-rev20250915-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-rev20250908-2.0.0'
38+
implementation 'com.google.apis:google-api-services-sqladmin:v1-rev20250915-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 139 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* <p>
2727
* For more information about this service, see the
28-
* <a href="https://developers.google.com/cloud-sql/" target="_blank">API Documentation</a>
28+
* <a href="https://cloud.google.com/sql/docs" target="_blank">API Documentation</a>
2929
* </p>
3030
*
3131
* <p>
@@ -5885,6 +5885,144 @@ public PointInTimeRestore set(String parameterName, Object value) {
58855885
return (PointInTimeRestore) super.set(parameterName, value);
58865886
}
58875887
}
5888+
/**
5889+
* Execute MVU Pre-checks
5890+
*
5891+
* Create a request for the method "instances.preCheckMajorVersionUpgrade".
5892+
*
5893+
* This request holds the parameters needed by the sqladmin server. After setting any optional
5894+
* parameters, call the {@link PreCheckMajorVersionUpgrade#execute()} method to invoke the remote
5895+
* operation.
5896+
*
5897+
* @param project Required. Project ID of the project that contains the instance.
5898+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
5899+
* @param content the {@link com.google.api.services.sqladmin.model.InstancesPreCheckMajorVersionUpgradeRequest}
5900+
* @return the request
5901+
*/
5902+
public PreCheckMajorVersionUpgrade preCheckMajorVersionUpgrade(java.lang.String project, java.lang.String instance, com.google.api.services.sqladmin.model.InstancesPreCheckMajorVersionUpgradeRequest content) throws java.io.IOException {
5903+
PreCheckMajorVersionUpgrade result = new PreCheckMajorVersionUpgrade(project, instance, content);
5904+
initialize(result);
5905+
return result;
5906+
}
5907+
5908+
public class PreCheckMajorVersionUpgrade extends SQLAdminRequest<com.google.api.services.sqladmin.model.Operation> {
5909+
5910+
private static final String REST_PATH = "v1/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade";
5911+
5912+
/**
5913+
* Execute MVU Pre-checks
5914+
*
5915+
* Create a request for the method "instances.preCheckMajorVersionUpgrade".
5916+
*
5917+
* This request holds the parameters needed by the the sqladmin server. After setting any
5918+
* optional parameters, call the {@link PreCheckMajorVersionUpgrade#execute()} method to invoke
5919+
* the remote operation. <p> {@link PreCheckMajorVersionUpgrade#initialize(com.google.api.client.g
5920+
* oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
5921+
* immediately after invoking the constructor. </p>
5922+
*
5923+
* @param project Required. Project ID of the project that contains the instance.
5924+
* @param instance Required. Cloud SQL instance ID. This does not include the project ID.
5925+
* @param content the {@link com.google.api.services.sqladmin.model.InstancesPreCheckMajorVersionUpgradeRequest}
5926+
* @since 1.13
5927+
*/
5928+
protected PreCheckMajorVersionUpgrade(java.lang.String project, java.lang.String instance, com.google.api.services.sqladmin.model.InstancesPreCheckMajorVersionUpgradeRequest content) {
5929+
super(SQLAdmin.this, "POST", REST_PATH, content, com.google.api.services.sqladmin.model.Operation.class);
5930+
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
5931+
this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified.");
5932+
}
5933+
5934+
@Override
5935+
public PreCheckMajorVersionUpgrade set$Xgafv(java.lang.String $Xgafv) {
5936+
return (PreCheckMajorVersionUpgrade) super.set$Xgafv($Xgafv);
5937+
}
5938+
5939+
@Override
5940+
public PreCheckMajorVersionUpgrade setAccessToken(java.lang.String accessToken) {
5941+
return (PreCheckMajorVersionUpgrade) super.setAccessToken(accessToken);
5942+
}
5943+
5944+
@Override
5945+
public PreCheckMajorVersionUpgrade setAlt(java.lang.String alt) {
5946+
return (PreCheckMajorVersionUpgrade) super.setAlt(alt);
5947+
}
5948+
5949+
@Override
5950+
public PreCheckMajorVersionUpgrade setCallback(java.lang.String callback) {
5951+
return (PreCheckMajorVersionUpgrade) super.setCallback(callback);
5952+
}
5953+
5954+
@Override
5955+
public PreCheckMajorVersionUpgrade setFields(java.lang.String fields) {
5956+
return (PreCheckMajorVersionUpgrade) super.setFields(fields);
5957+
}
5958+
5959+
@Override
5960+
public PreCheckMajorVersionUpgrade setKey(java.lang.String key) {
5961+
return (PreCheckMajorVersionUpgrade) super.setKey(key);
5962+
}
5963+
5964+
@Override
5965+
public PreCheckMajorVersionUpgrade setOauthToken(java.lang.String oauthToken) {
5966+
return (PreCheckMajorVersionUpgrade) super.setOauthToken(oauthToken);
5967+
}
5968+
5969+
@Override
5970+
public PreCheckMajorVersionUpgrade setPrettyPrint(java.lang.Boolean prettyPrint) {
5971+
return (PreCheckMajorVersionUpgrade) super.setPrettyPrint(prettyPrint);
5972+
}
5973+
5974+
@Override
5975+
public PreCheckMajorVersionUpgrade setQuotaUser(java.lang.String quotaUser) {
5976+
return (PreCheckMajorVersionUpgrade) super.setQuotaUser(quotaUser);
5977+
}
5978+
5979+
@Override
5980+
public PreCheckMajorVersionUpgrade setUploadType(java.lang.String uploadType) {
5981+
return (PreCheckMajorVersionUpgrade) super.setUploadType(uploadType);
5982+
}
5983+
5984+
@Override
5985+
public PreCheckMajorVersionUpgrade setUploadProtocol(java.lang.String uploadProtocol) {
5986+
return (PreCheckMajorVersionUpgrade) super.setUploadProtocol(uploadProtocol);
5987+
}
5988+
5989+
/** Required. Project ID of the project that contains the instance. */
5990+
@com.google.api.client.util.Key
5991+
private java.lang.String project;
5992+
5993+
/** Required. Project ID of the project that contains the instance.
5994+
*/
5995+
public java.lang.String getProject() {
5996+
return project;
5997+
}
5998+
5999+
/** Required. Project ID of the project that contains the instance. */
6000+
public PreCheckMajorVersionUpgrade setProject(java.lang.String project) {
6001+
this.project = project;
6002+
return this;
6003+
}
6004+
6005+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
6006+
@com.google.api.client.util.Key
6007+
private java.lang.String instance;
6008+
6009+
/** Required. Cloud SQL instance ID. This does not include the project ID.
6010+
*/
6011+
public java.lang.String getInstance() {
6012+
return instance;
6013+
}
6014+
6015+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
6016+
public PreCheckMajorVersionUpgrade setInstance(java.lang.String instance) {
6017+
this.instance = instance;
6018+
return this;
6019+
}
6020+
6021+
@Override
6022+
public PreCheckMajorVersionUpgrade set(String parameterName, Object value) {
6023+
return (PreCheckMajorVersionUpgrade) super.set(parameterName, value);
6024+
}
6025+
}
58886026
/**
58896027
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this
58906028
* operation might cause your instance to restart.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.sqladmin.model;
18+
19+
/**
20+
* Request for Pre-checks for MVU
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 Cloud SQL Admin 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 InstancesPreCheckMajorVersionUpgradeRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Contains details about the pre-check major version upgrade operation.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private PreCheckMajorVersionUpgradeContext preCheckMajorVersionUpgradeContext;
38+
39+
/**
40+
* Required. Contains details about the pre-check major version upgrade operation.
41+
* @return value or {@code null} for none
42+
*/
43+
public PreCheckMajorVersionUpgradeContext getPreCheckMajorVersionUpgradeContext() {
44+
return preCheckMajorVersionUpgradeContext;
45+
}
46+
47+
/**
48+
* Required. Contains details about the pre-check major version upgrade operation.
49+
* @param preCheckMajorVersionUpgradeContext preCheckMajorVersionUpgradeContext or {@code null} for none
50+
*/
51+
public InstancesPreCheckMajorVersionUpgradeRequest setPreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext preCheckMajorVersionUpgradeContext) {
52+
this.preCheckMajorVersionUpgradeContext = preCheckMajorVersionUpgradeContext;
53+
return this;
54+
}
55+
56+
@Override
57+
public InstancesPreCheckMajorVersionUpgradeRequest set(String fieldName, Object value) {
58+
return (InstancesPreCheckMajorVersionUpgradeRequest) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public InstancesPreCheckMajorVersionUpgradeRequest clone() {
63+
return (InstancesPreCheckMajorVersionUpgradeRequest) super.clone();
64+
}
65+
66+
}

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ public final class Operation extends com.google.api.client.json.GenericJson {
112112
@com.google.api.client.util.Key
113113
private java.lang.String operationType;
114114

115+
/**
116+
* This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The
117+
* PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such
118+
* as the target database version for the upgrade and the results of the check (including any
119+
* warnings or errors found).
120+
* The value may be {@code null}.
121+
*/
122+
@com.google.api.client.util.Key
123+
private PreCheckMajorVersionUpgradeContext preCheckMajorVersionUpgradeContext;
124+
115125
/**
116126
* The URI of this resource.
117127
* The value may be {@code null}.
@@ -365,6 +375,29 @@ public Operation setOperationType(java.lang.String operationType) {
365375
return this;
366376
}
367377

378+
/**
379+
* This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The
380+
* PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such
381+
* as the target database version for the upgrade and the results of the check (including any
382+
* warnings or errors found).
383+
* @return value or {@code null} for none
384+
*/
385+
public PreCheckMajorVersionUpgradeContext getPreCheckMajorVersionUpgradeContext() {
386+
return preCheckMajorVersionUpgradeContext;
387+
}
388+
389+
/**
390+
* This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The
391+
* PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such
392+
* as the target database version for the upgrade and the results of the check (including any
393+
* warnings or errors found).
394+
* @param preCheckMajorVersionUpgradeContext preCheckMajorVersionUpgradeContext or {@code null} for none
395+
*/
396+
public Operation setPreCheckMajorVersionUpgradeContext(PreCheckMajorVersionUpgradeContext preCheckMajorVersionUpgradeContext) {
397+
this.preCheckMajorVersionUpgradeContext = preCheckMajorVersionUpgradeContext;
398+
return this;
399+
}
400+
368401
/**
369402
* The URI of this resource.
370403
* @return value or {@code null} for none

0 commit comments

Comments
 (0)