Skip to content

Commit aa643e3

Browse files
1 parent 1bc9cee commit aa643e3

9 files changed

Lines changed: 134 additions & 39 deletions

src/SQLAdmin.php

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -884,21 +884,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
884884
'required' => true,
885885
],
886886
],
887-
],'restoreBackupMcp' => [
888-
'path' => 'v1/projects/{targetProject}/instances/{targetInstance}:restoreBackupMcp',
889-
'httpMethod' => 'POST',
890-
'parameters' => [
891-
'targetProject' => [
892-
'location' => 'path',
893-
'type' => 'string',
894-
'required' => true,
895-
],
896-
'targetInstance' => [
897-
'location' => 'path',
898-
'type' => 'string',
899-
'required' => true,
900-
],
901-
],
902887
],'rotateServerCa' => [
903888
'path' => 'v1/projects/{project}/instances/{instance}/rotateServerCa',
904889
'httpMethod' => 'POST',
@@ -1403,6 +1388,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
14031388
'location' => 'query',
14041389
'type' => 'string',
14051390
],
1391+
'revokeExistingRoles' => [
1392+
'location' => 'query',
1393+
'type' => 'boolean',
1394+
],
14061395
],
14071396
],
14081397
]

src/SQLAdmin/Backup.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,18 @@ class Backup extends \Google\Model
241241
* The database version is SQL Server 2022 Web.
242242
*/
243243
public const DATABASE_VERSION_SQLSERVER_2022_WEB = 'SQLSERVER_2022_WEB';
244+
/**
245+
* The database version is SQL Server 2025 Standard.
246+
*/
247+
public const DATABASE_VERSION_SQLSERVER_2025_STANDARD = 'SQLSERVER_2025_STANDARD';
248+
/**
249+
* The database version is SQL Server 2025 Enterprise.
250+
*/
251+
public const DATABASE_VERSION_SQLSERVER_2025_ENTERPRISE = 'SQLSERVER_2025_ENTERPRISE';
252+
/**
253+
* The database version is SQL Server 2025 Express.
254+
*/
255+
public const DATABASE_VERSION_SQLSERVER_2025_EXPRESS = 'SQLSERVER_2025_EXPRESS';
244256
/**
245257
* The state of the backup is unknown.
246258
*/
@@ -491,7 +503,8 @@ public function getBackupRun()
491503
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,
492504
* POSTGRES_18, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE,
493505
* SQLSERVER_2019_EXPRESS, SQLSERVER_2019_WEB, SQLSERVER_2022_STANDARD,
494-
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB
506+
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB,
507+
* SQLSERVER_2025_STANDARD, SQLSERVER_2025_ENTERPRISE, SQLSERVER_2025_EXPRESS
495508
*
496509
* @param self::DATABASE_VERSION_* $databaseVersion
497510
*/

src/SQLAdmin/BackupRun.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,18 @@ class BackupRun extends \Google\Model
241241
* The database version is SQL Server 2022 Web.
242242
*/
243243
public const DATABASE_VERSION_SQLSERVER_2022_WEB = 'SQLSERVER_2022_WEB';
244+
/**
245+
* The database version is SQL Server 2025 Standard.
246+
*/
247+
public const DATABASE_VERSION_SQLSERVER_2025_STANDARD = 'SQLSERVER_2025_STANDARD';
248+
/**
249+
* The database version is SQL Server 2025 Enterprise.
250+
*/
251+
public const DATABASE_VERSION_SQLSERVER_2025_ENTERPRISE = 'SQLSERVER_2025_ENTERPRISE';
252+
/**
253+
* The database version is SQL Server 2025 Express.
254+
*/
255+
public const DATABASE_VERSION_SQLSERVER_2025_EXPRESS = 'SQLSERVER_2025_EXPRESS';
244256
/**
245257
* The status of the run is unknown.
246258
*/
@@ -444,7 +456,8 @@ public function getBackupKind()
444456
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,
445457
* POSTGRES_18, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE,
446458
* SQLSERVER_2019_EXPRESS, SQLSERVER_2019_WEB, SQLSERVER_2022_STANDARD,
447-
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB
459+
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB,
460+
* SQLSERVER_2025_STANDARD, SQLSERVER_2025_ENTERPRISE, SQLSERVER_2025_EXPRESS
448461
*
449462
* @param self::DATABASE_VERSION_* $databaseVersion
450463
*/

src/SQLAdmin/CloneContext.php

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,24 @@ class CloneContext extends \Google\Collection
4646
* @var string
4747
*/
4848
public $destinationInstanceName;
49+
/**
50+
* Optional. The fully qualified URI of the VPC network to which the cloned
51+
* instance will be connected via Private Services Access for private IP. For
52+
* example:`projects/my-network-project/global/networks/my-network`. This
53+
* field is only required for cross-project cloning.
54+
*
55+
* @var string
56+
*/
57+
public $destinationNetwork;
58+
/**
59+
* Optional. The project ID of the destination project where the cloned
60+
* instance will be created. To perform a cross-project clone, this field is
61+
* required. If not specified, the clone is created in the same project as the
62+
* source instance.
63+
*
64+
* @var string
65+
*/
66+
public $destinationProject;
4967
/**
5068
* This is always `sql#cloneContext`.
5169
*
@@ -162,6 +180,44 @@ public function getDestinationInstanceName()
162180
{
163181
return $this->destinationInstanceName;
164182
}
183+
/**
184+
* Optional. The fully qualified URI of the VPC network to which the cloned
185+
* instance will be connected via Private Services Access for private IP. For
186+
* example:`projects/my-network-project/global/networks/my-network`. This
187+
* field is only required for cross-project cloning.
188+
*
189+
* @param string $destinationNetwork
190+
*/
191+
public function setDestinationNetwork($destinationNetwork)
192+
{
193+
$this->destinationNetwork = $destinationNetwork;
194+
}
195+
/**
196+
* @return string
197+
*/
198+
public function getDestinationNetwork()
199+
{
200+
return $this->destinationNetwork;
201+
}
202+
/**
203+
* Optional. The project ID of the destination project where the cloned
204+
* instance will be created. To perform a cross-project clone, this field is
205+
* required. If not specified, the clone is created in the same project as the
206+
* source instance.
207+
*
208+
* @param string $destinationProject
209+
*/
210+
public function setDestinationProject($destinationProject)
211+
{
212+
$this->destinationProject = $destinationProject;
213+
}
214+
/**
215+
* @return string
216+
*/
217+
public function getDestinationProject()
218+
{
219+
return $this->destinationProject;
220+
}
165221
/**
166222
* This is always `sql#cloneContext`.
167223
*

src/SQLAdmin/ConnectSettings.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ class ConnectSettings extends \Google\Collection
247247
* The database version is SQL Server 2022 Web.
248248
*/
249249
public const DATABASE_VERSION_SQLSERVER_2022_WEB = 'SQLSERVER_2022_WEB';
250+
/**
251+
* The database version is SQL Server 2025 Standard.
252+
*/
253+
public const DATABASE_VERSION_SQLSERVER_2025_STANDARD = 'SQLSERVER_2025_STANDARD';
254+
/**
255+
* The database version is SQL Server 2025 Enterprise.
256+
*/
257+
public const DATABASE_VERSION_SQLSERVER_2025_ENTERPRISE = 'SQLSERVER_2025_ENTERPRISE';
258+
/**
259+
* The database version is SQL Server 2025 Express.
260+
*/
261+
public const DATABASE_VERSION_SQLSERVER_2025_EXPRESS = 'SQLSERVER_2025_EXPRESS';
250262
/**
251263
* CA mode is unknown.
252264
*/
@@ -409,7 +421,8 @@ public function getCustomSubjectAlternativeNames()
409421
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,
410422
* POSTGRES_18, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE,
411423
* SQLSERVER_2019_EXPRESS, SQLSERVER_2019_WEB, SQLSERVER_2022_STANDARD,
412-
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB
424+
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB,
425+
* SQLSERVER_2025_STANDARD, SQLSERVER_2025_ENTERPRISE, SQLSERVER_2025_EXPRESS
413426
*
414427
* @param self::DATABASE_VERSION_* $databaseVersion
415428
*/

src/SQLAdmin/DatabaseInstance.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ class DatabaseInstance extends \Google\Collection
247247
* The database version is SQL Server 2022 Web.
248248
*/
249249
public const DATABASE_VERSION_SQLSERVER_2022_WEB = 'SQLSERVER_2022_WEB';
250+
/**
251+
* The database version is SQL Server 2025 Standard.
252+
*/
253+
public const DATABASE_VERSION_SQLSERVER_2025_STANDARD = 'SQLSERVER_2025_STANDARD';
254+
/**
255+
* The database version is SQL Server 2025 Enterprise.
256+
*/
257+
public const DATABASE_VERSION_SQLSERVER_2025_ENTERPRISE = 'SQLSERVER_2025_ENTERPRISE';
258+
/**
259+
* The database version is SQL Server 2025 Express.
260+
*/
261+
public const DATABASE_VERSION_SQLSERVER_2025_EXPRESS = 'SQLSERVER_2025_EXPRESS';
250262
/**
251263
* This is an unknown Cloud SQL instance type.
252264
*/
@@ -730,7 +742,8 @@ public function getDatabaseInstalledVersion()
730742
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,
731743
* POSTGRES_18, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE,
732744
* SQLSERVER_2019_EXPRESS, SQLSERVER_2019_WEB, SQLSERVER_2022_STANDARD,
733-
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB
745+
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB,
746+
* SQLSERVER_2025_STANDARD, SQLSERVER_2025_ENTERPRISE, SQLSERVER_2025_EXPRESS
734747
*
735748
* @param self::DATABASE_VERSION_* $databaseVersion
736749
*/

src/SQLAdmin/PreCheckMajorVersionUpgradeContext.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,18 @@ class PreCheckMajorVersionUpgradeContext extends \Google\Collection
229229
* The database version is SQL Server 2022 Web.
230230
*/
231231
public const TARGET_DATABASE_VERSION_SQLSERVER_2022_WEB = 'SQLSERVER_2022_WEB';
232+
/**
233+
* The database version is SQL Server 2025 Standard.
234+
*/
235+
public const TARGET_DATABASE_VERSION_SQLSERVER_2025_STANDARD = 'SQLSERVER_2025_STANDARD';
236+
/**
237+
* The database version is SQL Server 2025 Enterprise.
238+
*/
239+
public const TARGET_DATABASE_VERSION_SQLSERVER_2025_ENTERPRISE = 'SQLSERVER_2025_ENTERPRISE';
240+
/**
241+
* The database version is SQL Server 2025 Express.
242+
*/
243+
public const TARGET_DATABASE_VERSION_SQLSERVER_2025_EXPRESS = 'SQLSERVER_2025_EXPRESS';
232244
protected $collection_key = 'preCheckResponse';
233245
/**
234246
* Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
@@ -291,7 +303,8 @@ public function getPreCheckResponse()
291303
* POSTGRES_13, POSTGRES_14, POSTGRES_15, POSTGRES_16, POSTGRES_17,
292304
* POSTGRES_18, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE,
293305
* SQLSERVER_2019_EXPRESS, SQLSERVER_2019_WEB, SQLSERVER_2022_STANDARD,
294-
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB
306+
* SQLSERVER_2022_ENTERPRISE, SQLSERVER_2022_EXPRESS, SQLSERVER_2022_WEB,
307+
* SQLSERVER_2025_STANDARD, SQLSERVER_2025_ENTERPRISE, SQLSERVER_2025_EXPRESS
295308
*
296309
* @param self::TARGET_DATABASE_VERSION_* $targetDatabaseVersion
297310
*/

src/SQLAdmin/Resource/Instances.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
use Google\Service\SQLAdmin\SqlInstancesAcquireSsrsLeaseResponse;
4343
use Google\Service\SQLAdmin\SqlInstancesExecuteSqlResponse;
4444
use Google\Service\SQLAdmin\SqlInstancesReleaseSsrsLeaseResponse;
45-
use Google\Service\SQLAdmin\SqlInstancesRestoreBackupMcpRequest;
4645

4746
/**
4847
* The "instances" collection of methods.
@@ -630,24 +629,6 @@ public function restoreBackup($project, $instance, InstancesRestoreBackupRequest
630629
$params = array_merge($params, $optParams);
631630
return $this->call('restoreBackup', [$params], Operation::class);
632631
}
633-
/**
634-
* Restores a backup of a Cloud SQL instance for Model Context Protocol (MCP)
635-
* server. (instances.restoreBackupMcp)
636-
*
637-
* @param string $targetProject Required. Project ID of the target project.
638-
* @param string $targetInstance Required. Cloud SQL instance ID of the target.
639-
* This does not include the project ID.
640-
* @param SqlInstancesRestoreBackupMcpRequest $postBody
641-
* @param array $optParams Optional parameters.
642-
* @return Operation
643-
* @throws \Google\Service\Exception
644-
*/
645-
public function restoreBackupMcp($targetProject, $targetInstance, SqlInstancesRestoreBackupMcpRequest $postBody, $optParams = [])
646-
{
647-
$params = ['targetProject' => $targetProject, 'targetInstance' => $targetInstance, 'postBody' => $postBody];
648-
$params = array_merge($params, $optParams);
649-
return $this->call('restoreBackupMcp', [$params], Operation::class);
650-
}
651632
/**
652633
* Rotates the server certificate to one signed by the Certificate Authority
653634
* (CA) version previously added with the addServerCA method. For instances that

src/SQLAdmin/Resource/Users.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ public function listUsers($project, $instance, $optParams = [])
115115
* the user. body.database_roles will be ignored for update request.
116116
* @opt_param string host Optional. Host of the user in the instance.
117117
* @opt_param string name Name of the user in the instance.
118+
* @opt_param bool revokeExistingRoles Optional. Specifies whether to revoke
119+
* existing roles that are not present in the `database_roles` field. If `false`
120+
* or unset, the database roles specified in `database_roles` are added to the
121+
* user's existing roles.
118122
* @return Operation
119123
* @throws \Google\Service\Exception
120124
*/

0 commit comments

Comments
 (0)