Skip to content

Commit e18020b

Browse files
feat: [SqlAdmin] Added cross-project cloning support and enhanced database user role management to the v1 API (#8894)
* feat: Added cross-project cloning support and enhanced database user role management to the v1 API docs: A comment for enum `Edition` is changed PiperOrigin-RevId: 864786941 Source-Link: googleapis/googleapis@7ef9d7a Source-Link: googleapis/googleapis-gen@0571e60 Copy-Tag: eyJwIjoiU3FsQWRtaW4vLk93bEJvdC55YW1sIiwiaCI6IjA1NzFlNjBiYmQyYjEzOWIzZDYxNTcxOGY1MzZmNGJkNzEyZThlNDUifQ== * 🦉 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 6a19f52 commit e18020b

8 files changed

Lines changed: 184 additions & 1 deletion

File tree

161 Bytes
Binary file not shown.
81 Bytes
Binary file not shown.
68 Bytes
Binary file not shown.

SqlAdmin/src/V1/Client/SqlInstancesServiceClient.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,29 @@ public static function backupName(string $project, string $backup): string
213213
]);
214214
}
215215

216+
/**
217+
* Formats a string containing the fully-qualified path to represent a network
218+
* resource.
219+
*
220+
* @param string $project
221+
* @param string $network
222+
*
223+
* @return string The formatted network resource.
224+
*/
225+
public static function networkName(string $project, string $network): string
226+
{
227+
return self::getPathTemplate('network')->render([
228+
'project' => $project,
229+
'network' => $network,
230+
]);
231+
}
232+
216233
/**
217234
* Parses a formatted name string and returns an associative array of the components in the name.
218235
* The following name formats are supported:
219236
* Template: Pattern
220237
* - backup: projects/{project}/backups/{backup}
238+
* - network: projects/{project}/global/networks/{network}
221239
*
222240
* The optional $template argument can be supplied to specify a particular pattern,
223241
* and must match one of the templates listed above. If no $template argument is

SqlAdmin/src/V1/CloneContext.php

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

SqlAdmin/src/V1/Settings/Edition.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SqlAdmin/src/V1/SqlUsersUpdateRequest.php

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

SqlAdmin/src/V1/resources/sql_instances_service_descriptor_config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@
781781
],
782782
'templateMap' => [
783783
'backup' => 'projects/{project}/backups/{backup}',
784+
'network' => 'projects/{project}/global/networks/{network}',
784785
],
785786
],
786787
],

0 commit comments

Comments
 (0)