Skip to content

Commit a42760e

Browse files
1 parent 07515ad commit a42760e

22 files changed

+518
-116
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-rev20241108-2.0.0</version>
25+
<version>v1-rev20241204-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-rev20241108-2.0.0'
38+
implementation 'com.google.apis:google-api-services-sqladmin:v1-rev20241204-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4841,31 +4841,30 @@ public PromoteReplica setInstance(java.lang.String instance) {
48414841
}
48424842

48434843
/**
4844-
* Set to true to invoke a replica failover to the designated DR replica. As part of replica
4845-
* failover, the promote operation attempts to add the original primary instance as a replica
4846-
* of the promoted DR replica when the original primary instance comes back online. If set to
4847-
* false or not specified, then the original primary instance becomes an independent Cloud SQL
4848-
* primary instance. Only applicable to MySQL.
4844+
* Set to true to invoke a replica failover to the DR replica. As part of replica failover,
4845+
* the promote operation attempts to add the original primary instance as a replica of the
4846+
* promoted DR replica when the original primary instance comes back online. If set to false
4847+
* or not specified, then the original primary instance becomes an independent Cloud SQL
4848+
* primary instance.
48494849
*/
48504850
@com.google.api.client.util.Key
48514851
private java.lang.Boolean failover;
48524852

4853-
/** Set to true to invoke a replica failover to the designated DR replica. As part of replica failover,
4854-
the promote operation attempts to add the original primary instance as a replica of the promoted DR
4853+
/** Set to true to invoke a replica failover to the DR replica. As part of replica failover, the
4854+
promote operation attempts to add the original primary instance as a replica of the promoted DR
48554855
replica when the original primary instance comes back online. If set to false or not specified,
4856-
then the original primary instance becomes an independent Cloud SQL primary instance. Only
4857-
applicable to MySQL.
4856+
then the original primary instance becomes an independent Cloud SQL primary instance.
48584857
*/
48594858
public java.lang.Boolean getFailover() {
48604859
return failover;
48614860
}
48624861

48634862
/**
4864-
* Set to true to invoke a replica failover to the designated DR replica. As part of replica
4865-
* failover, the promote operation attempts to add the original primary instance as a replica
4866-
* of the promoted DR replica when the original primary instance comes back online. If set to
4867-
* false or not specified, then the original primary instance becomes an independent Cloud SQL
4868-
* primary instance. Only applicable to MySQL.
4863+
* Set to true to invoke a replica failover to the DR replica. As part of replica failover,
4864+
* the promote operation attempts to add the original primary instance as a replica of the
4865+
* promoted DR replica when the original primary instance comes back online. If set to false
4866+
* or not specified, then the original primary instance becomes an independent Cloud SQL
4867+
* primary instance.
48694868
*/
48704869
public PromoteReplica setFailover(java.lang.Boolean failover) {
48714870
this.failover = failover;
@@ -5985,7 +5984,7 @@ public StopReplica set(String parameterName, Object value) {
59855984
}
59865985
}
59875986
/**
5988-
* Switches over from the primary instance to the designated DR replica instance.
5987+
* Switches over from the primary instance to the DR replica instance.
59895988
*
59905989
* Create a request for the method "instances.switchover".
59915990
*
@@ -6007,7 +6006,7 @@ public class Switchover extends SQLAdminRequest<com.google.api.services.sqladmin
60076006
private static final String REST_PATH = "v1/projects/{project}/instances/{instance}/switchover";
60086007

60096008
/**
6010-
* Switches over from the primary instance to the designated DR replica instance.
6009+
* Switches over from the primary instance to the DR replica instance.
60116010
*
60126011
* Create a request for the method "instances.switchover".
60136012
*
@@ -6115,24 +6114,25 @@ public Switchover setInstance(java.lang.String instance) {
61156114
}
61166115

61176116
/**
6118-
* Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all
6119-
* database operations. Default value is 10 minutes and can be modified to a maximum value of
6120-
* 24 hours.
6117+
* Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum
6118+
* of all database operations. Default value is 10 minutes and can be modified to a maximum
6119+
* value of 24 hours.
61216120
*/
61226121
@com.google.api.client.util.Key
61236122
private String dbTimeout;
61246123

6125-
/** Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database
6126-
operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
6124+
/** Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all
6125+
database operations. Default value is 10 minutes and can be modified to a maximum value of 24
6126+
hours.
61276127
*/
61286128
public String getDbTimeout() {
61296129
return dbTimeout;
61306130
}
61316131

61326132
/**
6133-
* Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all
6134-
* database operations. Default value is 10 minutes and can be modified to a maximum value of
6135-
* 24 hours.
6133+
* Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum
6134+
* of all database operations. Default value is 10 minutes and can be modified to a maximum
6135+
* value of 24 hours.
61366136
*/
61376137
public Switchover setDbTimeout(String dbTimeout) {
61386138
this.dbTimeout = dbTimeout;

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public final class ConnectSettings extends com.google.api.client.json.GenericJso
3838
@com.google.api.client.util.Key
3939
private java.lang.String backendType;
4040

41+
/**
42+
* Custom subject alternative names for the server certificate.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<java.lang.String> customSubjectAlternativeNames;
47+
4148
/**
4249
* The database engine type and version. The `databaseVersion` field cannot be changed after
4350
* instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`.
@@ -122,6 +129,23 @@ public ConnectSettings setBackendType(java.lang.String backendType) {
122129
return this;
123130
}
124131

132+
/**
133+
* Custom subject alternative names for the server certificate.
134+
* @return value or {@code null} for none
135+
*/
136+
public java.util.List<java.lang.String> getCustomSubjectAlternativeNames() {
137+
return customSubjectAlternativeNames;
138+
}
139+
140+
/**
141+
* Custom subject alternative names for the server certificate.
142+
* @param customSubjectAlternativeNames customSubjectAlternativeNames or {@code null} for none
143+
*/
144+
public ConnectSettings setCustomSubjectAlternativeNames(java.util.List<java.lang.String> customSubjectAlternativeNames) {
145+
this.customSubjectAlternativeNames = customSubjectAlternativeNames;
146+
return this;
147+
}
148+
125149
/**
126150
* The database engine type and version. The `databaseVersion` field cannot be changed after
127151
* instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`.

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

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public final class DatabaseInstance extends com.google.api.client.json.GenericJs
260260
/**
261261
* Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-
262262
* region replica that you designate for failover in the event that the primary instance
263-
* experiences regional failure. Only applicable to MySQL.
263+
* experiences regional failure. Applicable to MySQL and PostgreSQL.
264264
* The value may be {@code null}.
265265
*/
266266
@com.google.api.client.util.Key
@@ -362,6 +362,17 @@ public final class DatabaseInstance extends com.google.api.client.json.GenericJs
362362
@com.google.api.client.util.Key
363363
private java.lang.Boolean switchTransactionLogsToCloudStorageEnabled;
364364

365+
/**
366+
* Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You
367+
* must represent each item in the map as: `"" : ""`. For example, a single resource can have the
368+
* following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ``` For
369+
* more information on tag creation and management, see https://cloud.google.com/resource-
370+
* manager/docs/tags/tags-overview.
371+
* The value may be {@code null}.
372+
*/
373+
@com.google.api.client.util.Key
374+
private java.util.Map<String, java.lang.String> tags;
375+
365376
/**
366377
* Output only. All database versions that are available for upgrade.
367378
* The value may be {@code null}.
@@ -931,7 +942,7 @@ public DatabaseInstance setReplicaNames(java.util.List<java.lang.String> replica
931942
/**
932943
* Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-
933944
* region replica that you designate for failover in the event that the primary instance
934-
* experiences regional failure. Only applicable to MySQL.
945+
* experiences regional failure. Applicable to MySQL and PostgreSQL.
935946
* @return value or {@code null} for none
936947
*/
937948
public ReplicationCluster getReplicationCluster() {
@@ -941,7 +952,7 @@ public ReplicationCluster getReplicationCluster() {
941952
/**
942953
* Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-
943954
* region replica that you designate for failover in the event that the primary instance
944-
* experiences regional failure. Only applicable to MySQL.
955+
* experiences regional failure. Applicable to MySQL and PostgreSQL.
945956
* @param replicationCluster replicationCluster or {@code null} for none
946957
*/
947958
public DatabaseInstance setReplicationCluster(ReplicationCluster replicationCluster) {
@@ -1180,6 +1191,31 @@ public DatabaseInstance setSwitchTransactionLogsToCloudStorageEnabled(java.lang.
11801191
return this;
11811192
}
11821193

1194+
/**
1195+
* Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You
1196+
* must represent each item in the map as: `"" : ""`. For example, a single resource can have the
1197+
* following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ``` For
1198+
* more information on tag creation and management, see https://cloud.google.com/resource-
1199+
* manager/docs/tags/tags-overview.
1200+
* @return value or {@code null} for none
1201+
*/
1202+
public java.util.Map<String, java.lang.String> getTags() {
1203+
return tags;
1204+
}
1205+
1206+
/**
1207+
* Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You
1208+
* must represent each item in the map as: `"" : ""`. For example, a single resource can have the
1209+
* following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ``` For
1210+
* more information on tag creation and management, see https://cloud.google.com/resource-
1211+
* manager/docs/tags/tags-overview.
1212+
* @param tags tags or {@code null} for none
1213+
*/
1214+
public DatabaseInstance setTags(java.util.Map<String, java.lang.String> tags) {
1215+
this.tags = tags;
1216+
return this;
1217+
}
1218+
11831219
/**
11841220
* Output only. All database versions that are available for upgrade.
11851221
* @return value or {@code null} for none

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public final class IpConfiguration extends com.google.api.client.json.GenericJso
5454
com.google.api.client.util.Data.nullOf(AclEntry.class);
5555
}
5656

57+
/**
58+
* Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.util.List<java.lang.String> customSubjectAlternativeNames;
63+
5764
/**
5865
* Controls connectivity to private IP instances from Google services, such as BigQuery.
5966
* The value may be {@code null}.
@@ -103,6 +110,14 @@ public final class IpConfiguration extends com.google.api.client.json.GenericJso
103110
@com.google.api.client.util.Key
104111
private java.lang.String serverCaMode;
105112

113+
/**
114+
* Optional. The resource name of the server CA pool for an instance with
115+
* `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//caPools/
116+
* The value may be {@code null}.
117+
*/
118+
@com.google.api.client.util.Key
119+
private java.lang.String serverCaPool;
120+
106121
/**
107122
* Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag
108123
* for backward compatibility, then only the following value pairs are valid: For PostgreSQL and
@@ -164,6 +179,23 @@ public IpConfiguration setAuthorizedNetworks(java.util.List<AclEntry> authorized
164179
return this;
165180
}
166181

182+
/**
183+
* Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
184+
* @return value or {@code null} for none
185+
*/
186+
public java.util.List<java.lang.String> getCustomSubjectAlternativeNames() {
187+
return customSubjectAlternativeNames;
188+
}
189+
190+
/**
191+
* Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
192+
* @param customSubjectAlternativeNames customSubjectAlternativeNames or {@code null} for none
193+
*/
194+
public IpConfiguration setCustomSubjectAlternativeNames(java.util.List<java.lang.String> customSubjectAlternativeNames) {
195+
this.customSubjectAlternativeNames = customSubjectAlternativeNames;
196+
return this;
197+
}
198+
167199
/**
168200
* Controls connectivity to private IP instances from Google services, such as BigQuery.
169201
* @return value or {@code null} for none
@@ -280,6 +312,25 @@ public IpConfiguration setServerCaMode(java.lang.String serverCaMode) {
280312
return this;
281313
}
282314

315+
/**
316+
* Optional. The resource name of the server CA pool for an instance with
317+
* `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//caPools/
318+
* @return value or {@code null} for none
319+
*/
320+
public java.lang.String getServerCaPool() {
321+
return serverCaPool;
322+
}
323+
324+
/**
325+
* Optional. The resource name of the server CA pool for an instance with
326+
* `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//caPools/
327+
* @param serverCaPool serverCaPool or {@code null} for none
328+
*/
329+
public IpConfiguration setServerCaPool(java.lang.String serverCaPool) {
330+
this.serverCaPool = serverCaPool;
331+
return this;
332+
}
333+
283334
/**
284335
* Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag
285336
* for backward compatibility, then only the following value pairs are valid: For PostgreSQL and

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ public final class Operation extends com.google.api.client.json.GenericJson {
134134
@com.google.api.client.util.Key
135135
private java.lang.String status;
136136

137+
/**
138+
* Optional. The sub operation based on the operation type.
139+
* The value may be {@code null}.
140+
*/
141+
@com.google.api.client.util.Key
142+
private SqlSubOperationType subOperationType;
143+
137144
/**
138145
* Name of the database instance related to this operation.
139146
* The value may be {@code null}.
@@ -411,6 +418,23 @@ public Operation setStatus(java.lang.String status) {
411418
return this;
412419
}
413420

421+
/**
422+
* Optional. The sub operation based on the operation type.
423+
* @return value or {@code null} for none
424+
*/
425+
public SqlSubOperationType getSubOperationType() {
426+
return subOperationType;
427+
}
428+
429+
/**
430+
* Optional. The sub operation based on the operation type.
431+
* @param subOperationType subOperationType or {@code null} for none
432+
*/
433+
public Operation setSubOperationType(SqlSubOperationType subOperationType) {
434+
this.subOperationType = subOperationType;
435+
return this;
436+
}
437+
414438
/**
415439
* Name of the database instance related to this operation.
416440
* @return value or {@code null} for none

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public final class OperationMetadata extends com.google.api.client.json.GenericJ
3838

3939
/**
4040
* Output only. Identifies whether the user has requested cancellation of the operation.
41-
* Operations that have been cancelled successfully have Operation.error value with a
42-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
41+
* Operations that have been cancelled successfully have google.longrunning.Operation.error value
42+
* with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
4343
* The value may be {@code null}.
4444
*/
4545
@com.google.api.client.util.Key
@@ -99,8 +99,8 @@ public OperationMetadata setApiVersion(java.lang.String apiVersion) {
9999

100100
/**
101101
* Output only. Identifies whether the user has requested cancellation of the operation.
102-
* Operations that have been cancelled successfully have Operation.error value with a
103-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
102+
* Operations that have been cancelled successfully have google.longrunning.Operation.error value
103+
* with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
104104
* @return value or {@code null} for none
105105
*/
106106
public java.lang.Boolean getCancelRequested() {
@@ -109,8 +109,8 @@ public java.lang.Boolean getCancelRequested() {
109109

110110
/**
111111
* Output only. Identifies whether the user has requested cancellation of the operation.
112-
* Operations that have been cancelled successfully have Operation.error value with a
113-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
112+
* Operations that have been cancelled successfully have google.longrunning.Operation.error value
113+
* with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
114114
* @param cancelRequested cancelRequested or {@code null} for none
115115
*/
116116
public OperationMetadata setCancelRequested(java.lang.Boolean cancelRequested) {

0 commit comments

Comments
 (0)