Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SqlAdmin/metadata/V1/CloudSqlInstances.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion SqlAdmin/metadata/V1/CloudSqlOperations.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SqlAdmin/metadata/V1/CloudSqlResources.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion SqlAdmin/metadata/V1/CloudSqlUsers.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions SqlAdmin/src/V1/Client/SqlInstancesServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,72 @@ public static function networkName(string $project, string $network): string
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_secret_secret_version resource.
*
* @param string $project
* @param string $location
* @param string $secret
* @param string $secretVersion
*
* @return string The formatted project_location_secret_secret_version resource.
*/
public static function projectLocationSecretSecretVersionName(
string $project,
string $location,
string $secret,
string $secretVersion
): string {
return self::getPathTemplate('projectLocationSecretSecretVersion')->render([
'project' => $project,
'location' => $location,
'secret' => $secret,
'secret_version' => $secretVersion,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_secret_secret_version resource.
*
* @param string $project
* @param string $secret
* @param string $secretVersion
*
* @return string The formatted project_secret_secret_version resource.
*/
public static function projectSecretSecretVersionName(
string $project,
string $secret,
string $secretVersion
): string {
return self::getPathTemplate('projectSecretSecretVersion')->render([
'project' => $project,
'secret' => $secret,
'secret_version' => $secretVersion,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* secret_version resource.
*
* @param string $project
* @param string $secret
* @param string $secretVersion
*
* @return string The formatted secret_version resource.
*/
public static function secretVersionName(string $project, string $secret, string $secretVersion): string
{
return self::getPathTemplate('secretVersion')->render([
'project' => $project,
'secret' => $secret,
'secret_version' => $secretVersion,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* service_connection_policy resource.
Expand Down Expand Up @@ -258,6 +324,9 @@ public static function serviceConnectionPolicyName(
* Template: Pattern
* - backup: projects/{project}/backups/{backup}
* - network: projects/{project}/global/networks/{network}
* - projectLocationSecretSecretVersion: projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}
* - projectSecretSecretVersion: projects/{project}/secrets/{secret}/versions/{secret_version}
* - secretVersion: projects/{project}/secrets/{secret}/versions/{secret_version}
* - serviceConnectionPolicy: projects/{project}/regions/{region}/serviceConnectionPolicies/{service_connection_policy}
*
* The optional $template argument can be supplied to specify a particular pattern,
Expand Down
Loading
Loading