diff --git a/clients/google-api-services-alloydb/v1/2.0.0/README.md b/clients/google-api-services-alloydb/v1/2.0.0/README.md index 769244f3469..fdfc4d4cc44 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/README.md +++ b/clients/google-api-services-alloydb/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-alloydb - v1-rev20260108-2.0.0 + v1-rev20260205-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-alloydb:v1-rev20260108-2.0.0' + implementation 'com.google.apis:google-api-services-alloydb:v1-rev20260205-2.0.0' } ``` diff --git a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java index 4d31aeb56a7..94d292cfd20 100644 --- a/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java +++ b/clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/CloudAlloyDBAdmin.java @@ -103,7 +103,7 @@ public class CloudAlloyDBAdmin extends com.google.api.client.googleapis.services * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * * @param jsonFactory JSON factory, which may be: @@ -312,7 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -336,7 +339,10 @@ public class List extends CloudAlloyDBAdminRequest *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: * * @param jsonFactory JSON factory, which may be: @@ -312,7 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -336,7 +339,10 @@ public class List extends CloudAlloyDBAdminRequest *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: * * @param jsonFactory JSON factory, which may be: @@ -312,7 +312,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -336,7 +339,10 @@ public class List extends CloudAlloyDBAdminRequest *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/ConnectionPoolConfig.java b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/ConnectionPoolConfig.java index 7f599bb6673..eb583bc695f 100644 --- a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/ConnectionPoolConfig.java +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/ConnectionPoolConfig.java @@ -29,21 +29,6 @@ @SuppressWarnings("javadoc") public final class ConnectionPoolConfig extends com.google.api.client.json.GenericJson { - /** - * Optional. Deprecated. Use 'flags' instead. The default pool size. Defaults to 20. Note: This - * field should not be added to client libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultPoolSize; - - /** - * Optional. Deprecated; Prefer 'enabled' as this will be removed soon. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - /** * Optional. Whether to enable Managed Connection Pool (MCP). * The value may be {@code null}. @@ -58,50 +43,6 @@ public final class ConnectionPoolConfig extends com.google.api.client.json.Gener @com.google.api.client.util.Key private java.util.Map flags; - /** - * Optional. Deprecated. Use 'flags' instead. The list of startup parameters to ignore. Defaults - * to ["extra_float_digits"] Note: This field should not be added to client libraries if not - * present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ignoreStartupParameters; - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of client connections allowed. - * Note: This field should not be added to client libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maxClientConn; - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of prepared statements allowed. - * MCP makes sure that any statement prepared by a client, up to this limit, is available on the - * backing server connection in transaction and statement pooling mode. Even if the statement was - * originally prepared on another server connection. Defaults to 0. Note: This field should not be - * added to client libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maxPreparedStatements; - - /** - * Optional. Deprecated. Use 'flags' instead. The minimum pool size. Defaults to 0. Note: This - * field should not be added to client libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minPoolSize; - - /** - * Optional. Deprecated. Use 'flags' instead. The pool mode. Defaults to `POOL_MODE_TRANSACTION`. - * Note: This field should not be added to client libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String poolMode; - /** * Output only. The number of running poolers per instance. * The value may be {@code null}. @@ -109,70 +50,6 @@ public final class ConnectionPoolConfig extends com.google.api.client.json.Gener @com.google.api.client.util.Key private java.lang.Integer poolerCount; - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of seconds queries are allowed to - * spend waiting for execution. If the query is not assigned to a server during that time, the - * client is disconnected. 0 disables. Note: This field should not be added to client libraries if - * not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String queryWaitTimeout; - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of seconds a server is allowed to - * be idle before it is disconnected. 0 disables. Note: This field should not be added to client - * libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serverIdleTimeout; - - /** - * Optional. Deprecated. Use 'flags' instead. The list of users that are allowed to connect to the - * MCP stats console. The users must exist in the database. Note: This field should not be added - * to client libraries if not present already. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List statsUsers; - - /** - * Optional. Deprecated. Use 'flags' instead. The default pool size. Defaults to 20. Note: This - * field should not be added to client libraries if not present already. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultPoolSize() { - return defaultPoolSize; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The default pool size. Defaults to 20. Note: This - * field should not be added to client libraries if not present already. - * @param defaultPoolSize defaultPoolSize or {@code null} for none - */ - public ConnectionPoolConfig setDefaultPoolSize(java.lang.String defaultPoolSize) { - this.defaultPoolSize = defaultPoolSize; - return this; - } - - /** - * Optional. Deprecated; Prefer 'enabled' as this will be removed soon. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * Optional. Deprecated; Prefer 'enabled' as this will be removed soon. - * @param enable enable or {@code null} for none - */ - public ConnectionPoolConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - /** * Optional. Whether to enable Managed Connection Pool (MCP). * @return value or {@code null} for none @@ -207,109 +84,6 @@ public ConnectionPoolConfig setFlags(java.util.Map fla return this; } - /** - * Optional. Deprecated. Use 'flags' instead. The list of startup parameters to ignore. Defaults - * to ["extra_float_digits"] Note: This field should not be added to client libraries if not - * present already. - * @return value or {@code null} for none - */ - public java.util.List getIgnoreStartupParameters() { - return ignoreStartupParameters; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The list of startup parameters to ignore. Defaults - * to ["extra_float_digits"] Note: This field should not be added to client libraries if not - * present already. - * @param ignoreStartupParameters ignoreStartupParameters or {@code null} for none - */ - public ConnectionPoolConfig setIgnoreStartupParameters(java.util.List ignoreStartupParameters) { - this.ignoreStartupParameters = ignoreStartupParameters; - return this; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of client connections allowed. - * Note: This field should not be added to client libraries if not present already. - * @return value or {@code null} for none - */ - public java.lang.String getMaxClientConn() { - return maxClientConn; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of client connections allowed. - * Note: This field should not be added to client libraries if not present already. - * @param maxClientConn maxClientConn or {@code null} for none - */ - public ConnectionPoolConfig setMaxClientConn(java.lang.String maxClientConn) { - this.maxClientConn = maxClientConn; - return this; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of prepared statements allowed. - * MCP makes sure that any statement prepared by a client, up to this limit, is available on the - * backing server connection in transaction and statement pooling mode. Even if the statement was - * originally prepared on another server connection. Defaults to 0. Note: This field should not be - * added to client libraries if not present already. - * @return value or {@code null} for none - */ - public java.lang.String getMaxPreparedStatements() { - return maxPreparedStatements; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of prepared statements allowed. - * MCP makes sure that any statement prepared by a client, up to this limit, is available on the - * backing server connection in transaction and statement pooling mode. Even if the statement was - * originally prepared on another server connection. Defaults to 0. Note: This field should not be - * added to client libraries if not present already. - * @param maxPreparedStatements maxPreparedStatements or {@code null} for none - */ - public ConnectionPoolConfig setMaxPreparedStatements(java.lang.String maxPreparedStatements) { - this.maxPreparedStatements = maxPreparedStatements; - return this; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The minimum pool size. Defaults to 0. Note: This - * field should not be added to client libraries if not present already. - * @return value or {@code null} for none - */ - public java.lang.String getMinPoolSize() { - return minPoolSize; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The minimum pool size. Defaults to 0. Note: This - * field should not be added to client libraries if not present already. - * @param minPoolSize minPoolSize or {@code null} for none - */ - public ConnectionPoolConfig setMinPoolSize(java.lang.String minPoolSize) { - this.minPoolSize = minPoolSize; - return this; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The pool mode. Defaults to `POOL_MODE_TRANSACTION`. - * Note: This field should not be added to client libraries if not present already. - * @return value or {@code null} for none - */ - public java.lang.String getPoolMode() { - return poolMode; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The pool mode. Defaults to `POOL_MODE_TRANSACTION`. - * Note: This field should not be added to client libraries if not present already. - * @param poolMode poolMode or {@code null} for none - */ - public ConnectionPoolConfig setPoolMode(java.lang.String poolMode) { - this.poolMode = poolMode; - return this; - } - /** * Output only. The number of running poolers per instance. * @return value or {@code null} for none @@ -327,71 +101,6 @@ public ConnectionPoolConfig setPoolerCount(java.lang.Integer poolerCount) { return this; } - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of seconds queries are allowed to - * spend waiting for execution. If the query is not assigned to a server during that time, the - * client is disconnected. 0 disables. Note: This field should not be added to client libraries if - * not present already. - * @return value or {@code null} for none - */ - public java.lang.String getQueryWaitTimeout() { - return queryWaitTimeout; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of seconds queries are allowed to - * spend waiting for execution. If the query is not assigned to a server during that time, the - * client is disconnected. 0 disables. Note: This field should not be added to client libraries if - * not present already. - * @param queryWaitTimeout queryWaitTimeout or {@code null} for none - */ - public ConnectionPoolConfig setQueryWaitTimeout(java.lang.String queryWaitTimeout) { - this.queryWaitTimeout = queryWaitTimeout; - return this; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of seconds a server is allowed to - * be idle before it is disconnected. 0 disables. Note: This field should not be added to client - * libraries if not present already. - * @return value or {@code null} for none - */ - public java.lang.String getServerIdleTimeout() { - return serverIdleTimeout; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The maximum number of seconds a server is allowed to - * be idle before it is disconnected. 0 disables. Note: This field should not be added to client - * libraries if not present already. - * @param serverIdleTimeout serverIdleTimeout or {@code null} for none - */ - public ConnectionPoolConfig setServerIdleTimeout(java.lang.String serverIdleTimeout) { - this.serverIdleTimeout = serverIdleTimeout; - return this; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The list of users that are allowed to connect to the - * MCP stats console. The users must exist in the database. Note: This field should not be added - * to client libraries if not present already. - * @return value or {@code null} for none - */ - public java.util.List getStatsUsers() { - return statsUsers; - } - - /** - * Optional. Deprecated. Use 'flags' instead. The list of users that are allowed to connect to the - * MCP stats console. The users must exist in the database. Note: This field should not be added - * to client libraries if not present already. - * @param statsUsers statsUsers or {@code null} for none - */ - public ConnectionPoolConfig setStatsUsers(java.util.List statsUsers) { - this.statsUsers = statsUsers; - return this; - } - @Override public ConnectionPoolConfig set(String fieldName, Object value) { return (ConnectionPoolConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/Instance.java b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/Instance.java index 0c5b9cfff3f..53a6f956476 100644 --- a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/Instance.java +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/Instance.java @@ -80,6 +80,17 @@ public final class Instance extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String createTime; + /** + * Optional. Controls whether the Data API is enabled for this instance. When enabled, this allows + * authorized users to connect to the instance from the public internet using the `executeSql` + * API, even for private IP instances. If this is not specified, the data API is enabled by + * default for Google internal services like AlloyDB Studio. Disable it explicitly to disallow + * Google internal services as well. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataApiAccess; + /** * Database flags. Set at the instance level. They are copied from the primary instance on * secondary instance creation. Flags that have restrictions default to the value at primary @@ -422,6 +433,31 @@ public Instance setCreateTime(String createTime) { return this; } + /** + * Optional. Controls whether the Data API is enabled for this instance. When enabled, this allows + * authorized users to connect to the instance from the public internet using the `executeSql` + * API, even for private IP instances. If this is not specified, the data API is enabled by + * default for Google internal services like AlloyDB Studio. Disable it explicitly to disallow + * Google internal services as well. + * @return value or {@code null} for none + */ + public java.lang.String getDataApiAccess() { + return dataApiAccess; + } + + /** + * Optional. Controls whether the Data API is enabled for this instance. When enabled, this allows + * authorized users to connect to the instance from the public internet using the `executeSql` + * API, even for private IP instances. If this is not specified, the data API is enabled by + * default for Google internal services like AlloyDB Studio. Disable it explicitly to disallow + * Google internal services as well. + * @param dataApiAccess dataApiAccess or {@code null} for none + */ + public Instance setDataApiAccess(java.lang.String dataApiAccess) { + this.dataApiAccess = dataApiAccess; + return this; + } + /** * Database flags. Set at the instance level. They are copied from the primary instance on * secondary instance creation. Flags that have restrictions default to the value at primary diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java index 74e1d64dc92..bb61f4b3993 100644 --- a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.java @@ -17,7 +17,7 @@ package com.google.api.services.alloydb.v1beta.model; /** - * Common model for database resource instance metadata. Next ID: 30 + * Common model for database resource instance metadata. Next ID: 31 * *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: @@ -184,6 +184,13 @@ public final class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata @com.google.api.client.util.Key private java.lang.String resourceContainer; + /** + * Optional. List of resource flags for the database resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourceFlags; + /** * Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. * That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new @@ -603,6 +610,23 @@ public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setResource return this; } + /** + * Optional. List of resource flags for the database resource. + * @return value or {@code null} for none + */ + public java.util.List getResourceFlags() { + return resourceFlags; + } + + /** + * Optional. List of resource flags for the database resource. + * @param resourceFlags resourceFlags or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata setResourceFlags(java.util.List resourceFlags) { + this.resourceFlags = resourceFlags; + return this; + } + /** * Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. * That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceFlags.java b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceFlags.java new file mode 100644 index 00000000000..8dde03acb6a --- /dev/null +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceFlags.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.alloydb.v1beta.model; + +/** + * Message type for storing resource flags. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StorageDatabasecenterPartnerapiV1mainResourceFlags extends com.google.api.client.json.GenericJson { + + /** + * Optional. Key of the resource flag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Optional. Value of the resource flag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Optional. Key of the resource flag. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Optional. Key of the resource flag. + * @param key key or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainResourceFlags setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Optional. Value of the resource flag. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Optional. Value of the resource flag. + * @param value value or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainResourceFlags setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public StorageDatabasecenterPartnerapiV1mainResourceFlags set(String fieldName, Object value) { + return (StorageDatabasecenterPartnerapiV1mainResourceFlags) super.set(fieldName, value); + } + + @Override + public StorageDatabasecenterPartnerapiV1mainResourceFlags clone() { + return (StorageDatabasecenterPartnerapiV1mainResourceFlags) super.clone(); + } + +} diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo.java b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo.java index 33dd962d2fe..edcbbfda5df 100644 --- a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo.java +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo extends com.google.api.client.json.GenericJson { + /** + * Optional. The date when the current maintenance version was released. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate currentVersionReleaseDate; + /** * Optional. List of Deny maintenance period for the database resource. * The value may be {@code null}. @@ -42,6 +49,14 @@ public final class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo com.google.api.client.util.Data.nullOf(StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule.class); } + /** + * Optional. Whether the instance is in stopped state. This information is temporarily being + * captured in maintenanceInfo, till STOPPED state is supported by DB Center. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isInstanceStopped; + /** * Optional. Maintenance window for the database resource. * The value may be {@code null}. @@ -49,6 +64,13 @@ public final class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo @com.google.api.client.util.Key private StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule maintenanceSchedule; + /** + * Output only. Current state of maintenance on the database resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenanceState; + /** * Optional. Current Maintenance version of the database resource. Example: * "MYSQL_8_0_41.R20250531.01_15" @@ -57,6 +79,31 @@ public final class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo @com.google.api.client.util.Key private java.lang.String maintenanceVersion; + /** + * Optional. Upcoming maintenance for the database resource. This field is populated once SLM + * generates and publishes upcoming maintenance window. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance upcomingMaintenance; + + /** + * Optional. The date when the current maintenance version was released. + * @return value or {@code null} for none + */ + public GoogleTypeDate getCurrentVersionReleaseDate() { + return currentVersionReleaseDate; + } + + /** + * Optional. The date when the current maintenance version was released. + * @param currentVersionReleaseDate currentVersionReleaseDate or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setCurrentVersionReleaseDate(GoogleTypeDate currentVersionReleaseDate) { + this.currentVersionReleaseDate = currentVersionReleaseDate; + return this; + } + /** * Optional. List of Deny maintenance period for the database resource. * @return value or {@code null} for none @@ -74,6 +121,25 @@ public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setDenyMaint return this; } + /** + * Optional. Whether the instance is in stopped state. This information is temporarily being + * captured in maintenanceInfo, till STOPPED state is supported by DB Center. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsInstanceStopped() { + return isInstanceStopped; + } + + /** + * Optional. Whether the instance is in stopped state. This information is temporarily being + * captured in maintenanceInfo, till STOPPED state is supported by DB Center. + * @param isInstanceStopped isInstanceStopped or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setIsInstanceStopped(java.lang.Boolean isInstanceStopped) { + this.isInstanceStopped = isInstanceStopped; + return this; + } + /** * Optional. Maintenance window for the database resource. * @return value or {@code null} for none @@ -91,6 +157,23 @@ public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setMaintenan return this; } + /** + * Output only. Current state of maintenance on the database resource. + * @return value or {@code null} for none + */ + public java.lang.String getMaintenanceState() { + return maintenanceState; + } + + /** + * Output only. Current state of maintenance on the database resource. + * @param maintenanceState maintenanceState or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setMaintenanceState(java.lang.String maintenanceState) { + this.maintenanceState = maintenanceState; + return this; + } + /** * Optional. Current Maintenance version of the database resource. Example: * "MYSQL_8_0_41.R20250531.01_15" @@ -110,6 +193,25 @@ public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setMaintenan return this; } + /** + * Optional. Upcoming maintenance for the database resource. This field is populated once SLM + * generates and publishes upcoming maintenance window. + * @return value or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance getUpcomingMaintenance() { + return upcomingMaintenance; + } + + /** + * Optional. Upcoming maintenance for the database resource. This field is populated once SLM + * generates and publishes upcoming maintenance window. + * @param upcomingMaintenance upcomingMaintenance or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo setUpcomingMaintenance(StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance upcomingMaintenance) { + this.upcomingMaintenance = upcomingMaintenance; + return this; + } + @Override public StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo set(String fieldName, Object value) { return (StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java new file mode 100644 index 00000000000..a3fdac92f54 --- /dev/null +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/com/google/api/services/alloydb/v1beta/model/StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.alloydb.v1beta.model; + +/** + * Upcoming maintenance for the database resource. This is generated by SLM once the upcoming + * maintenance schedule is published. + * + *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance extends com.google.api.client.json.GenericJson { + + /** + * Optional. The end time of the upcoming maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Optional. The start time of the upcoming maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Optional. The end time of the upcoming maintenance. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. The end time of the upcoming maintenance. + * @param endTime endTime or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Optional. The start time of the upcoming maintenance. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Optional. The start time of the upcoming maintenance. + * @param startTime startTime or {@code null} for none + */ + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance set(String fieldName, Object value) { + return (StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance) super.set(fieldName, value); + } + + @Override + public StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance clone() { + return (StorageDatabasecenterPartnerapiV1mainUpcomingMaintenance) super.clone(); + } + +} diff --git a/clients/google-api-services-alloydb/v1beta/2.0.0/pom.xml b/clients/google-api-services-alloydb/v1beta/2.0.0/pom.xml index f33f70aa510..d5a39662b3d 100644 --- a/clients/google-api-services-alloydb/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-alloydb/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-alloydb - v1beta-rev20260108-2.0.0 - AlloyDB API v1beta-rev20260108-2.0.0 + v1beta-rev20260205-2.0.0 + AlloyDB API v1beta-rev20260205-2.0.0 jar 2011 diff --git a/clients/google-api-services-alloydb/v1beta/README.md b/clients/google-api-services-alloydb/v1beta/README.md index 1c6fa0f71f1..e3b6d33e238 100644 --- a/clients/google-api-services-alloydb/v1beta/README.md +++ b/clients/google-api-services-alloydb/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-alloydb - v1beta-rev20260108-2.0.0 + v1beta-rev20260205-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-alloydb:v1beta-rev20260108-2.0.0' + implementation 'com.google.apis:google-api-services-alloydb:v1beta-rev20260205-2.0.0' } ```