Skip to content

Commit c55beef

Browse files
1 parent 06d0d22 commit c55beef

3 files changed

Lines changed: 107 additions & 7 deletions

File tree

src/OracleDatabase/AutonomousDatabase.php

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,22 @@ class AutonomousDatabase extends \Google\Collection
2121
{
2222
protected $collection_key = 'peerAutonomousDatabases';
2323
/**
24-
* Optional. Immutable. The password for the default ADMIN user.
24+
* Optional. Immutable. The password for the default ADMIN user. Note: Only
25+
* one of `admin_password_secret_version` or `admin_password` can be
26+
* populated.
2527
*
2628
* @var string
2729
*/
2830
public $adminPassword;
31+
/**
32+
* Optional. Immutable. The resource name of a secret version in Secret
33+
* Manager which contains the database admin user's password. Format:
34+
* projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
35+
* `admin_password_secret_version` or `admin_password` can be populated.
36+
*
37+
* @var string
38+
*/
39+
public $adminPasswordSecretVersion;
2940
/**
3041
* Optional. Immutable. The subnet CIDR range for the Autonomous Database.
3142
*
@@ -120,7 +131,9 @@ class AutonomousDatabase extends \Google\Collection
120131
protected $sourceConfigDataType = '';
121132

122133
/**
123-
* Optional. Immutable. The password for the default ADMIN user.
134+
* Optional. Immutable. The password for the default ADMIN user. Note: Only
135+
* one of `admin_password_secret_version` or `admin_password` can be
136+
* populated.
124137
*
125138
* @param string $adminPassword
126139
*/
@@ -135,6 +148,25 @@ public function getAdminPassword()
135148
{
136149
return $this->adminPassword;
137150
}
151+
/**
152+
* Optional. Immutable. The resource name of a secret version in Secret
153+
* Manager which contains the database admin user's password. Format:
154+
* projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
155+
* `admin_password_secret_version` or `admin_password` can be populated.
156+
*
157+
* @param string $adminPasswordSecretVersion
158+
*/
159+
public function setAdminPasswordSecretVersion($adminPasswordSecretVersion)
160+
{
161+
$this->adminPasswordSecretVersion = $adminPasswordSecretVersion;
162+
}
163+
/**
164+
* @return string
165+
*/
166+
public function getAdminPasswordSecretVersion()
167+
{
168+
return $this->adminPasswordSecretVersion;
169+
}
138170
/**
139171
* Optional. Immutable. The subnet CIDR range for the Autonomous Database.
140172
*

src/OracleDatabase/AutonomousDatabaseProperties.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ class AutonomousDatabaseProperties extends \Google\Collection
128128
* Backup based recovery.
129129
*/
130130
public const LOCAL_DISASTER_RECOVERY_TYPE_BACKUP_BASED = 'BACKUP_BASED';
131+
/**
132+
* Local disaster recovery is not available.
133+
*/
134+
public const LOCAL_DISASTER_RECOVERY_TYPE_NOT_AVAILABLE = 'NOT_AVAILABLE';
131135
/**
132136
* Default unspecified value.
133137
*/
@@ -1332,7 +1336,7 @@ public function getLocalDataGuardEnabled()
13321336
* an Autonomous Database.
13331337
*
13341338
* Accepted values: LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED, ADG,
1335-
* BACKUP_BASED
1339+
* BACKUP_BASED, NOT_AVAILABLE
13361340
*
13371341
* @param self::LOCAL_DISASTER_RECOVERY_TYPE_* $localDisasterRecoveryType
13381342
*/

src/OracleDatabase/Database.php

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)