FormatAccessGrant returns the resource name for an access grant.
(projectID string, id string)
| 115 | |
| 116 | // FormatAccessGrant returns the resource name for an access grant. |
| 117 | func FormatAccessGrant(projectID string, id string) string { |
| 118 | return fmt.Sprintf("%s/%s%s", FormatProject(projectID), AccessGrantNamePrefix, id) |
| 119 | } |
| 120 | |
| 121 | // TrimSuffixAndGetInstanceDatabaseID trims the suffix from the name and returns the instance ID and database ID. |
| 122 | func TrimSuffixAndGetInstanceDatabaseID(name string, suffix string) (string, string, error) { |
no test coverage detected