diff --git a/SqlAdmin/metadata/V1/CloudSqlResources.php b/SqlAdmin/metadata/V1/CloudSqlResources.php
index c00bf8e6b859..e4a1e5aa9112 100644
Binary files a/SqlAdmin/metadata/V1/CloudSqlResources.php and b/SqlAdmin/metadata/V1/CloudSqlResources.php differ
diff --git a/SqlAdmin/src/V1/ApiWarning/SqlApiWarningCode.php b/SqlAdmin/src/V1/ApiWarning/SqlApiWarningCode.php
index 72fc8ebc65a1..906c9dfc8e1d 100644
--- a/SqlAdmin/src/V1/ApiWarning/SqlApiWarningCode.php
+++ b/SqlAdmin/src/V1/ApiWarning/SqlApiWarningCode.php
@@ -31,11 +31,27 @@ class SqlApiWarningCode
* Generated from protobuf enum MAX_RESULTS_EXCEEDS_LIMIT = 2;
*/
const MAX_RESULTS_EXCEEDS_LIMIT = 2;
+ /**
+ * Warning when user tries to create/update a user with credentials that
+ * have previously been compromised by a public data breach.
+ *
+ * Generated from protobuf enum COMPROMISED_CREDENTIALS = 3;
+ */
+ const COMPROMISED_CREDENTIALS = 3;
+ /**
+ * Warning when the operation succeeds but some non-critical workflow state
+ * failed.
+ *
+ * Generated from protobuf enum INTERNAL_STATE_FAILURE = 4;
+ */
+ const INTERNAL_STATE_FAILURE = 4;
private static $valueToName = [
self::SQL_API_WARNING_CODE_UNSPECIFIED => 'SQL_API_WARNING_CODE_UNSPECIFIED',
self::REGION_UNREACHABLE => 'REGION_UNREACHABLE',
self::MAX_RESULTS_EXCEEDS_LIMIT => 'MAX_RESULTS_EXCEEDS_LIMIT',
+ self::COMPROMISED_CREDENTIALS => 'COMPROMISED_CREDENTIALS',
+ self::INTERNAL_STATE_FAILURE => 'INTERNAL_STATE_FAILURE',
];
public static function name($value)
diff --git a/SqlAdmin/src/V1/Operation.php b/SqlAdmin/src/V1/Operation.php
index ae6dfadb338a..cfb27ddb76ee 100644
--- a/SqlAdmin/src/V1/Operation.php
+++ b/SqlAdmin/src/V1/Operation.php
@@ -70,6 +70,12 @@ class Operation extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.sql.v1.OperationErrors error = 8;
*/
private $error = null;
+ /**
+ * An Admin API warning message.
+ *
+ * Generated from protobuf field .google.cloud.sql.v1.ApiWarning api_warning = 19;
+ */
+ private $api_warning = null;
/**
* The type of the operation. Valid values are:
* * `CREATE`
@@ -161,6 +167,8 @@ class Operation extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Sql\V1\OperationErrors $error
* If errors occurred during processing of this operation, this field will be
* populated.
+ * @type \Google\Cloud\Sql\V1\ApiWarning $api_warning
+ * An Admin API warning message.
* @type int $operation_type
* The type of the operation. Valid values are:
* * `CREATE`
@@ -456,6 +464,42 @@ public function setError($var)
return $this;
}
+ /**
+ * An Admin API warning message.
+ *
+ * Generated from protobuf field .google.cloud.sql.v1.ApiWarning api_warning = 19;
+ * @return \Google\Cloud\Sql\V1\ApiWarning|null
+ */
+ public function getApiWarning()
+ {
+ return $this->api_warning;
+ }
+
+ public function hasApiWarning()
+ {
+ return isset($this->api_warning);
+ }
+
+ public function clearApiWarning()
+ {
+ unset($this->api_warning);
+ }
+
+ /**
+ * An Admin API warning message.
+ *
+ * Generated from protobuf field .google.cloud.sql.v1.ApiWarning api_warning = 19;
+ * @param \Google\Cloud\Sql\V1\ApiWarning $var
+ * @return $this
+ */
+ public function setApiWarning($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Sql\V1\ApiWarning::class);
+ $this->api_warning = $var;
+
+ return $this;
+ }
+
/**
* The type of the operation. Valid values are:
* * `CREATE`
diff --git a/SqlAdmin/src/V1/PasswordValidationPolicy.php b/SqlAdmin/src/V1/PasswordValidationPolicy.php
index dbc18a3d39b2..f097159ed3fa 100644
--- a/SqlAdmin/src/V1/PasswordValidationPolicy.php
+++ b/SqlAdmin/src/V1/PasswordValidationPolicy.php
@@ -52,6 +52,13 @@ class PasswordValidationPolicy extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.BoolValue enable_password_policy = 6;
*/
private $enable_password_policy = null;
+ /**
+ * Disallow credentials that have been previously compromised by a public data
+ * breach.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue disallow_compromised_credentials = 7;
+ */
+ private $disallow_compromised_credentials = null;
/**
* Constructor.
@@ -72,6 +79,9 @@ class PasswordValidationPolicy extends \Google\Protobuf\Internal\Message
* supported for PostgreSQL.
* @type \Google\Protobuf\BoolValue $enable_password_policy
* Whether the password policy is enabled or not.
+ * @type \Google\Protobuf\BoolValue $disallow_compromised_credentials
+ * Disallow credentials that have been previously compromised by a public data
+ * breach.
* }
*/
public function __construct($data = NULL) {
@@ -395,5 +405,72 @@ public function setEnablePasswordPolicyValue($var)
$this->writeWrapperValue("enable_password_policy", $var);
return $this;}
+ /**
+ * Disallow credentials that have been previously compromised by a public data
+ * breach.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue disallow_compromised_credentials = 7;
+ * @return \Google\Protobuf\BoolValue|null
+ */
+ public function getDisallowCompromisedCredentials()
+ {
+ return $this->disallow_compromised_credentials;
+ }
+
+ public function hasDisallowCompromisedCredentials()
+ {
+ return isset($this->disallow_compromised_credentials);
+ }
+
+ public function clearDisallowCompromisedCredentials()
+ {
+ unset($this->disallow_compromised_credentials);
+ }
+
+ /**
+ * Returns the unboxed value from getDisallowCompromisedCredentials()
+
+ * Disallow credentials that have been previously compromised by a public data
+ * breach.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue disallow_compromised_credentials = 7;
+ * @return bool|null
+ */
+ public function getDisallowCompromisedCredentialsValue()
+ {
+ return $this->readWrapperValue("disallow_compromised_credentials");
+ }
+
+ /**
+ * Disallow credentials that have been previously compromised by a public data
+ * breach.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue disallow_compromised_credentials = 7;
+ * @param \Google\Protobuf\BoolValue $var
+ * @return $this
+ */
+ public function setDisallowCompromisedCredentials($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
+ $this->disallow_compromised_credentials = $var;
+
+ return $this;
+ }
+
+ /**
+ * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
+
+ * Disallow credentials that have been previously compromised by a public data
+ * breach.
+ *
+ * Generated from protobuf field .google.protobuf.BoolValue disallow_compromised_credentials = 7;
+ * @param bool|null $var
+ * @return $this
+ */
+ public function setDisallowCompromisedCredentialsValue($var)
+ {
+ $this->writeWrapperValue("disallow_compromised_credentials", $var);
+ return $this;}
+
}
diff --git a/SqlAdmin/src/V1/SqlUpdateTrack.php b/SqlAdmin/src/V1/SqlUpdateTrack.php
index a889160f97c9..88e415c33b22 100644
--- a/SqlAdmin/src/V1/SqlUpdateTrack.php
+++ b/SqlAdmin/src/V1/SqlUpdateTrack.php
@@ -33,11 +33,21 @@ class SqlUpdateTrack
* Generated from protobuf enum stable = 2;
*/
const stable = 2;
+ /**
+ * For instance update that requires a restart, this update track indicates
+ * your instance prefer to let Cloud SQL choose the timing of restart (within
+ * its Maintenance window, if applicable) to be at least 5 weeks after the
+ * notification.
+ *
+ * Generated from protobuf enum week5 = 3;
+ */
+ const week5 = 3;
private static $valueToName = [
self::SQL_UPDATE_TRACK_UNSPECIFIED => 'SQL_UPDATE_TRACK_UNSPECIFIED',
self::canary => 'canary',
self::stable => 'stable',
+ self::week5 => 'week5',
];
public static function name($value)