{@link + * Switchover#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param project ID of the project that contains the replica. + * @param instance Cloud SQL read replica instance name. + * @since 1.13 + */ + protected Switchover(java.lang.String project, java.lang.String instance) { + super(SQLAdmin.this, "POST", REST_PATH, null, com.google.api.services.sqladmin.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + } + + @Override + public Switchover set$Xgafv(java.lang.String $Xgafv) { + return (Switchover) super.set$Xgafv($Xgafv); + } + + @Override + public Switchover setAccessToken(java.lang.String accessToken) { + return (Switchover) super.setAccessToken(accessToken); + } + + @Override + public Switchover setAlt(java.lang.String alt) { + return (Switchover) super.setAlt(alt); + } + + @Override + public Switchover setCallback(java.lang.String callback) { + return (Switchover) super.setCallback(callback); + } + + @Override + public Switchover setFields(java.lang.String fields) { + return (Switchover) super.setFields(fields); + } + + @Override + public Switchover setKey(java.lang.String key) { + return (Switchover) super.setKey(key); + } + + @Override + public Switchover setOauthToken(java.lang.String oauthToken) { + return (Switchover) super.setOauthToken(oauthToken); + } + + @Override + public Switchover setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Switchover) super.setPrettyPrint(prettyPrint); + } + + @Override + public Switchover setQuotaUser(java.lang.String quotaUser) { + return (Switchover) super.setQuotaUser(quotaUser); + } + + @Override + public Switchover setUploadType(java.lang.String uploadType) { + return (Switchover) super.setUploadType(uploadType); + } + + @Override + public Switchover setUploadProtocol(java.lang.String uploadProtocol) { + return (Switchover) super.setUploadProtocol(uploadProtocol); + } + + /** ID of the project that contains the replica. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** ID of the project that contains the replica. + */ + public java.lang.String getProject() { + return project; + } + + /** ID of the project that contains the replica. */ + public Switchover setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Cloud SQL read replica instance name. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Cloud SQL read replica instance name. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Cloud SQL read replica instance name. */ + public Switchover setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all + * database operations. Default value is 10 minutes and can be modified to a maximum value of + * 24 hours. + */ + @com.google.api.client.util.Key + private String dbTimeout; + + /** Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database + operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours. + */ + public String getDbTimeout() { + return dbTimeout; + } + + /** + * Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all + * database operations. Default value is 10 minutes and can be modified to a maximum value of + * 24 hours. + */ + public Switchover setDbTimeout(String dbTimeout) { + this.dbTimeout = dbTimeout; + return this; + } + + @Override + public Switchover set(String parameterName, Object value) { + return (Switchover) super.set(parameterName, value); + } + } /** * Truncate MySQL general and slow query log tables MySQL only. * diff --git a/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/DatabaseInstance.java b/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/DatabaseInstance.java index 9cf286ac032..4e6cbb2debf 100644 --- a/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/DatabaseInstance.java +++ b/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/DatabaseInstance.java @@ -205,7 +205,7 @@ public final class DatabaseInstance extends com.google.api.client.json.GenericJs private SqlOutOfDiskReport outOfDiskReport; /** - * Output only. The dns name of the primary instance in a replication group. + * Output only. DEPRECATED: please use write_endpoint instead. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -323,6 +323,13 @@ public final class DatabaseInstance extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.util.List 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 Cloud SQL Admin API. For a detailed explanation see:
diff --git a/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PasswordValidationPolicy.java b/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PasswordValidationPolicy.java
index 82d54667c69..ff663d3a289 100644
--- a/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PasswordValidationPolicy.java
+++ b/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PasswordValidationPolicy.java
@@ -36,6 +36,13 @@ public final class PasswordValidationPolicy extends com.google.api.client.json.G
@com.google.api.client.util.Key
private java.lang.String complexity;
+ /**
+ * Disallow credentials that have been previously compromised by a public data breach.
+ * The value may be {@code null}.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.Boolean disallowCompromisedCredentials;
+
/**
* Disallow username as a part of the password.
* The value may be {@code null}.
@@ -89,6 +96,23 @@ public PasswordValidationPolicy setComplexity(java.lang.String complexity) {
return this;
}
+ /**
+ * Disallow credentials that have been previously compromised by a public data breach.
+ * @return value or {@code null} for none
+ */
+ public java.lang.Boolean getDisallowCompromisedCredentials() {
+ return disallowCompromisedCredentials;
+ }
+
+ /**
+ * Disallow credentials that have been previously compromised by a public data breach.
+ * @param disallowCompromisedCredentials disallowCompromisedCredentials or {@code null} for none
+ */
+ public PasswordValidationPolicy setDisallowCompromisedCredentials(java.lang.Boolean disallowCompromisedCredentials) {
+ this.disallowCompromisedCredentials = disallowCompromisedCredentials;
+ return this;
+ }
+
/**
* Disallow username as a part of the password.
* @return value or {@code null} for none
diff --git a/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PscConfig.java b/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PscConfig.java
index a033dff14c3..eff3e519422 100644
--- a/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PscConfig.java
+++ b/clients/google-api-services-sqladmin/v1/2.0.0/com/google/api/services/sqladmin/model/PscConfig.java
@@ -30,10 +30,10 @@
public final class PscConfig extends com.google.api.client.json.GenericJson {
/**
- * List of consumer projects that are allow-listed for PSC connections to this instance. This
- * instance can be connected to with PSC from any network in these projects. Each consumer project
- * in this list may be represented by a project number (numeric) or by a project id
- * (alphanumeric).
+ * Optional. The list of consumer projects that are allow-listed for PSC connections to this
+ * instance. This instance can be connected to with PSC from any network in these projects. Each
+ * consumer project in this list may be represented by a project number (numeric) or by a project
+ * id (alphanumeric).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
@@ -47,10 +47,10 @@ public final class PscConfig extends com.google.api.client.json.GenericJson {
private java.lang.Boolean pscEnabled;
/**
- * List of consumer projects that are allow-listed for PSC connections to this instance. This
- * instance can be connected to with PSC from any network in these projects. Each consumer project
- * in this list may be represented by a project number (numeric) or by a project id
- * (alphanumeric).
+ * Optional. The list of consumer projects that are allow-listed for PSC connections to this
+ * instance. This instance can be connected to with PSC from any network in these projects. Each
+ * consumer project in this list may be represented by a project number (numeric) or by a project
+ * id (alphanumeric).
* @return value or {@code null} for none
*/
public java.util.List