@@ -48,11 +48,21 @@ class Database extends \Google\Model
4848 */
4949 public const OPS_INSIGHTS_STATUS_FAILED_DISABLING = 'FAILED_DISABLING ' ;
5050 /**
51- * Optional. The password for the default ADMIN user.
51+ * Optional. The password for the default ADMIN user. Note: Only one of
52+ * `admin_password_secret_version` or `admin_password` can be populated.
5253 *
5354 * @var string
5455 */
5556 public $ adminPassword ;
57+ /**
58+ * Optional. The resource name of a secret version in Secret Manager which
59+ * contains the database admin user's password. Format:
60+ * projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
61+ * `admin_password_secret_version` or `admin_password` can be populated.
62+ *
63+ * @var string
64+ */
65+ public $ adminPasswordSecretVersion ;
5666 /**
5767 * Optional. The character set for the database. The default is AL32UTF8.
5868 *
@@ -142,14 +152,27 @@ class Database extends \Google\Model
142152 protected $ propertiesType = DatabaseProperties::class;
143153 protected $ propertiesDataType = '' ;
144154 /**
145- * Optional. The TDE wallet password for the database.
155+ * Optional. The TDE wallet password for the database. Note: Only one of
156+ * `tde_wallet_password_secret_version` or `tde_wallet_password` can be
157+ * populated.
146158 *
147159 * @var string
148160 */
149161 public $ tdeWalletPassword ;
162+ /**
163+ * Optional. The resource name of a secret version in Secret Manager which
164+ * contains the TDE wallet password for the database. Format:
165+ * projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
166+ * `tde_wallet_password_secret_version` or `tde_wallet_password` can be
167+ * populated.
168+ *
169+ * @var string
170+ */
171+ public $ tdeWalletPasswordSecretVersion ;
150172
151173 /**
152- * Optional. The password for the default ADMIN user.
174+ * Optional. The password for the default ADMIN user. Note: Only one of
175+ * `admin_password_secret_version` or `admin_password` can be populated.
153176 *
154177 * @param string $adminPassword
155178 */
@@ -164,6 +187,25 @@ public function getAdminPassword()
164187 {
165188 return $ this ->adminPassword ;
166189 }
190+ /**
191+ * Optional. The resource name of a secret version in Secret Manager which
192+ * contains the database admin user's password. Format:
193+ * projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
194+ * `admin_password_secret_version` or `admin_password` can be populated.
195+ *
196+ * @param string $adminPasswordSecretVersion
197+ */
198+ public function setAdminPasswordSecretVersion ($ adminPasswordSecretVersion )
199+ {
200+ $ this ->adminPasswordSecretVersion = $ adminPasswordSecretVersion ;
201+ }
202+ /**
203+ * @return string
204+ */
205+ public function getAdminPasswordSecretVersion ()
206+ {
207+ return $ this ->adminPasswordSecretVersion ;
208+ }
167209 /**
168210 * Optional. The character set for the database. The default is AL32UTF8.
169211 *
@@ -400,7 +442,9 @@ public function getProperties()
400442 return $ this ->properties ;
401443 }
402444 /**
403- * Optional. The TDE wallet password for the database.
445+ * Optional. The TDE wallet password for the database. Note: Only one of
446+ * `tde_wallet_password_secret_version` or `tde_wallet_password` can be
447+ * populated.
404448 *
405449 * @param string $tdeWalletPassword
406450 */
@@ -415,6 +459,26 @@ public function getTdeWalletPassword()
415459 {
416460 return $ this ->tdeWalletPassword ;
417461 }
462+ /**
463+ * Optional. The resource name of a secret version in Secret Manager which
464+ * contains the TDE wallet password for the database. Format:
465+ * projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
466+ * `tde_wallet_password_secret_version` or `tde_wallet_password` can be
467+ * populated.
468+ *
469+ * @param string $tdeWalletPasswordSecretVersion
470+ */
471+ public function setTdeWalletPasswordSecretVersion ($ tdeWalletPasswordSecretVersion )
472+ {
473+ $ this ->tdeWalletPasswordSecretVersion = $ tdeWalletPasswordSecretVersion ;
474+ }
475+ /**
476+ * @return string
477+ */
478+ public function getTdeWalletPasswordSecretVersion ()
479+ {
480+ return $ this ->tdeWalletPasswordSecretVersion ;
481+ }
418482}
419483
420484// Adding a class alias for backwards compatibility with the previous class name.
0 commit comments