Skip to content

Commit f542362

Browse files
feat: [BackupDr] Add support for AlloyDB backup and restore (#8884)
* feat: Add support for AlloyDB backup and restore docs: A comment for field `log_retention_days` in message `.google.cloud.backupdr.v1.BackupPlan` is changed PiperOrigin-RevId: 862089230 Source-Link: googleapis/googleapis@4b64cb4 Source-Link: googleapis/googleapis-gen@ee74e8b Copy-Tag: eyJwIjoiQmFja3VwRHIvLk93bEJvdC55YW1sIiwiaCI6ImVlNzRlOGIyNjM4ZTYzNGNmMGE1OTQzZWZhZDdhYzA3MTQ0OTUzYzMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 19c1500 commit f542362

9 files changed

Lines changed: 356 additions & 4 deletions
348 Bytes
Binary file not shown.
1.31 KB
Binary file not shown.

BackupDr/src/V1/AlloyDBClusterDataSourceProperties.php

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BackupDr/src/V1/AlloyDbClusterBackupProperties.php

Lines changed: 193 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BackupDr/src/V1/Backup.php

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BackupDr/src/V1/BackupPlan.php

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BackupDr/src/V1/Client/BackupDRClient.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,25 @@ public static function backupVaultName(string $project, string $location, string
358358
]);
359359
}
360360

361+
/**
362+
* Formats a string containing the fully-qualified path to represent a cluster
363+
* resource.
364+
*
365+
* @param string $project
366+
* @param string $location
367+
* @param string $cluster
368+
*
369+
* @return string The formatted cluster resource.
370+
*/
371+
public static function clusterName(string $project, string $location, string $cluster): string
372+
{
373+
return self::getPathTemplate('cluster')->render([
374+
'project' => $project,
375+
'location' => $location,
376+
'cluster' => $cluster,
377+
]);
378+
}
379+
361380
/**
362381
* Formats a string containing the fully-qualified path to represent a crypto_key
363382
* resource.
@@ -535,6 +554,7 @@ public static function storagePoolName(string $project, string $zone, string $st
535554
* - backupPlanAssociation: projects/{project}/locations/{location}/backupPlanAssociations/{backup_plan_association}
536555
* - backupPlanRevision: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
537556
* - backupVault: projects/{project}/locations/{location}/backupVaults/{backupvault}
557+
* - cluster: projects/{project}/locations/{location}/clusters/{cluster}
538558
* - cryptoKey: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
539559
* - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
540560
* - dataSource: projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

0 commit comments

Comments
 (0)