Skip to content

Commit 0d5715d

Browse files
1 parent 3317cb1 commit 0d5715d

File tree

9 files changed

+250
-15
lines changed

9 files changed

+250
-15
lines changed

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

clients/google-api-services-sqladmin/v1beta4/2.0.0/com/google/api/services/sqladmin/model/ExecuteSqlPayload.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public final class ExecuteSqlPayload extends com.google.api.client.json.GenericJ
4545
private java.lang.String database;
4646

4747
/**
48-
* Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The
49-
* default mode is to throw an error.
48+
* Optional. Controls how the API should respond when the SQL execution result is incomplete due
49+
* to the size limit or another error. The default mode is to throw an error.
5050
* The value may be {@code null}.
5151
*/
5252
@com.google.api.client.util.Key
@@ -112,17 +112,17 @@ public ExecuteSqlPayload setDatabase(java.lang.String database) {
112112
}
113113

114114
/**
115-
* Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The
116-
* default mode is to throw an error.
115+
* Optional. Controls how the API should respond when the SQL execution result is incomplete due
116+
* to the size limit or another error. The default mode is to throw an error.
117117
* @return value or {@code null} for none
118118
*/
119119
public java.lang.String getPartialResultMode() {
120120
return partialResultMode;
121121
}
122122

123123
/**
124-
* Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The
125-
* default mode is to throw an error.
124+
* Optional. Controls how the API should respond when the SQL execution result is incomplete due
125+
* to the size limit or another error. The default mode is to throw an error.
126126
* @param partialResultMode partialResultMode or {@code null} for none
127127
*/
128128
public ExecuteSqlPayload setPartialResultMode(java.lang.String partialResultMode) {

clients/google-api-services-sqladmin/v1beta4/2.0.0/com/google/api/services/sqladmin/model/QueryResult.java

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public final class QueryResult extends com.google.api.client.json.GenericJson {
5050
private java.lang.String message;
5151

5252
/**
53-
* Set to true if the SQL execution's result is truncated due to size limits.
53+
* Set to true if the SQL execution's result is truncated due to size limits or an error
54+
* retrieving results.
5455
* The value may be {@code null}.
5556
*/
5657
@com.google.api.client.util.Key
@@ -63,6 +64,13 @@ public final class QueryResult extends com.google.api.client.json.GenericJson {
6364
@com.google.api.client.util.Key
6465
private java.util.List<Row> rows;
6566

67+
/**
68+
* If results were truncated due to an error, details of that error.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private Status status;
73+
6674
/**
6775
* List of columns included in the result. This also includes the data type of the column.
6876
* @return value or {@code null} for none
@@ -98,15 +106,17 @@ public QueryResult setMessage(java.lang.String message) {
98106
}
99107

100108
/**
101-
* Set to true if the SQL execution's result is truncated due to size limits.
109+
* Set to true if the SQL execution's result is truncated due to size limits or an error
110+
* retrieving results.
102111
* @return value or {@code null} for none
103112
*/
104113
public java.lang.Boolean getPartialResult() {
105114
return partialResult;
106115
}
107116

108117
/**
109-
* Set to true if the SQL execution's result is truncated due to size limits.
118+
* Set to true if the SQL execution's result is truncated due to size limits or an error
119+
* retrieving results.
110120
* @param partialResult partialResult or {@code null} for none
111121
*/
112122
public QueryResult setPartialResult(java.lang.Boolean partialResult) {
@@ -131,6 +141,23 @@ public QueryResult setRows(java.util.List<Row> rows) {
131141
return this;
132142
}
133143

144+
/**
145+
* If results were truncated due to an error, details of that error.
146+
* @return value or {@code null} for none
147+
*/
148+
public Status getStatus() {
149+
return status;
150+
}
151+
152+
/**
153+
* If results were truncated due to an error, details of that error.
154+
* @param status status or {@code null} for none
155+
*/
156+
public QueryResult setStatus(Status status) {
157+
this.status = status;
158+
return this;
159+
}
160+
134161
@Override
135162
public QueryResult set(String fieldName, Object value) {
136163
return (QueryResult) super.set(fieldName, value);

clients/google-api-services-sqladmin/v1beta4/2.0.0/com/google/api/services/sqladmin/model/Settings.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ public final class Settings extends com.google.api.client.json.GenericJson {
6161
@com.google.api.client.util.Key
6262
private java.util.List<java.lang.String> authorizedGaeApplications;
6363

64+
/**
65+
* Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true,
66+
* auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or
67+
* higher.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private java.lang.Boolean autoUpgradeEnabled;
72+
6473
/**
6574
* Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone.
6675
* Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from
@@ -439,6 +448,27 @@ public Settings setAuthorizedGaeApplications(java.util.List<java.lang.String> au
439448
return this;
440449
}
441450

451+
/**
452+
* Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true,
453+
* auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or
454+
* higher.
455+
* @return value or {@code null} for none
456+
*/
457+
public java.lang.Boolean getAutoUpgradeEnabled() {
458+
return autoUpgradeEnabled;
459+
}
460+
461+
/**
462+
* Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true,
463+
* auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or
464+
* higher.
465+
* @param autoUpgradeEnabled autoUpgradeEnabled or {@code null} for none
466+
*/
467+
public Settings setAutoUpgradeEnabled(java.lang.Boolean autoUpgradeEnabled) {
468+
this.autoUpgradeEnabled = autoUpgradeEnabled;
469+
return this;
470+
}
471+
442472
/**
443473
* Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone.
444474
* Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from

clients/google-api-services-sqladmin/v1beta4/2.0.0/com/google/api/services/sqladmin/model/SqlInstancesExecuteSqlResponse.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ public final class SqlInstancesExecuteSqlResponse extends com.google.api.client.
6565
com.google.api.client.util.Data.nullOf(QueryResult.class);
6666
}
6767

68+
/**
69+
* Contains the error from the database if the SQL execution failed.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private Status status;
74+
6875
/**
6976
* A list of notices and warnings generated during query execution. For PostgreSQL, this includes
7077
* all notices and warnings. For MySQL, this includes warnings generated by the last executed
@@ -122,6 +129,23 @@ public SqlInstancesExecuteSqlResponse setResults(java.util.List<QueryResult> res
122129
return this;
123130
}
124131

132+
/**
133+
* Contains the error from the database if the SQL execution failed.
134+
* @return value or {@code null} for none
135+
*/
136+
public Status getStatus() {
137+
return status;
138+
}
139+
140+
/**
141+
* Contains the error from the database if the SQL execution failed.
142+
* @param status status or {@code null} for none
143+
*/
144+
public SqlInstancesExecuteSqlResponse setStatus(Status status) {
145+
this.status = status;
146+
return this;
147+
}
148+
125149
@Override
126150
public SqlInstancesExecuteSqlResponse set(String fieldName, Object value) {
127151
return (SqlInstancesExecuteSqlResponse) super.set(fieldName, value);
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
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+
* The `Status` type defines a logical error model that is suitable for different programming
21+
* environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc).
22+
* Each `Status` message contains three pieces of data: error code, error message, and error
23+
* details. You can find out more about this error model and how to work with it in the [API Design
24+
* Guide](https://cloud.google.com/apis/design/errors).
25+
*
26+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
27+
* transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
28+
* <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>
29+
* </p>
30+
*
31+
* @author Google, Inc.
32+
*/
33+
@SuppressWarnings("javadoc")
34+
public final class Status extends com.google.api.client.json.GenericJson {
35+
36+
/**
37+
* The status code, which should be an enum value of google.rpc.Code.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.Integer code;
42+
43+
/**
44+
* A list of messages that carry the error details. There is a common set of message types for
45+
* APIs to use.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.util.List<java.util.Map<String, java.lang.Object>> details;
50+
51+
/**
52+
* A developer-facing error message, which should be in English. Any user-facing error message
53+
* should be localized and sent in the google.rpc.Status.details field, or localized by the
54+
* client.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String message;
59+
60+
/**
61+
* The status code, which should be an enum value of google.rpc.Code.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.Integer getCode() {
65+
return code;
66+
}
67+
68+
/**
69+
* The status code, which should be an enum value of google.rpc.Code.
70+
* @param code code or {@code null} for none
71+
*/
72+
public Status setCode(java.lang.Integer code) {
73+
this.code = code;
74+
return this;
75+
}
76+
77+
/**
78+
* A list of messages that carry the error details. There is a common set of message types for
79+
* APIs to use.
80+
* @return value or {@code null} for none
81+
*/
82+
public java.util.List<java.util.Map<String, java.lang.Object>> getDetails() {
83+
return details;
84+
}
85+
86+
/**
87+
* A list of messages that carry the error details. There is a common set of message types for
88+
* APIs to use.
89+
* @param details details or {@code null} for none
90+
*/
91+
public Status setDetails(java.util.List<java.util.Map<String, java.lang.Object>> details) {
92+
this.details = details;
93+
return this;
94+
}
95+
96+
/**
97+
* A developer-facing error message, which should be in English. Any user-facing error message
98+
* should be localized and sent in the google.rpc.Status.details field, or localized by the
99+
* client.
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getMessage() {
103+
return message;
104+
}
105+
106+
/**
107+
* A developer-facing error message, which should be in English. Any user-facing error message
108+
* should be localized and sent in the google.rpc.Status.details field, or localized by the
109+
* client.
110+
* @param message message or {@code null} for none
111+
*/
112+
public Status setMessage(java.lang.String message) {
113+
this.message = message;
114+
return this;
115+
}
116+
117+
@Override
118+
public Status set(String fieldName, Object value) {
119+
return (Status) super.set(fieldName, value);
120+
}
121+
122+
@Override
123+
public Status clone() {
124+
return (Status) super.clone();
125+
}
126+
127+
}

clients/google-api-services-sqladmin/v1beta4/2.0.0/com/google/api/services/sqladmin/model/User.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ public final class User extends com.google.api.client.json.GenericJson {
5353
@com.google.api.client.util.Key
5454
private java.lang.String host;
5555

56+
/**
57+
* Optional. The full email for an IAM user. For normal database users, this will not be filled.
58+
* Only applicable to MySQL database users.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.String iamEmail;
63+
5664
/**
5765
* Indicates if a group is active or inactive for IAM database authentication.
5866
* The value may be {@code null}.
@@ -176,6 +184,25 @@ public User setHost(java.lang.String host) {
176184
return this;
177185
}
178186

187+
/**
188+
* Optional. The full email for an IAM user. For normal database users, this will not be filled.
189+
* Only applicable to MySQL database users.
190+
* @return value or {@code null} for none
191+
*/
192+
public java.lang.String getIamEmail() {
193+
return iamEmail;
194+
}
195+
196+
/**
197+
* Optional. The full email for an IAM user. For normal database users, this will not be filled.
198+
* Only applicable to MySQL database users.
199+
* @param iamEmail iamEmail or {@code null} for none
200+
*/
201+
public User setIamEmail(java.lang.String iamEmail) {
202+
this.iamEmail = iamEmail;
203+
return this;
204+
}
205+
179206
/**
180207
* Indicates if a group is active or inactive for IAM database authentication.
181208
* @return value or {@code null} for none

clients/google-api-services-sqladmin/v1beta4/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-sqladmin</artifactId>
11-
<version>v1beta4-rev20250925-2.0.0</version>
12-
<name>Cloud SQL Admin API v1beta4-rev20250925-2.0.0</name>
11+
<version>v1beta4-rev20251006-2.0.0</version>
12+
<name>Cloud SQL Admin API v1beta4-rev20251006-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)