GetProjectResourceIDSheetSha256 returns the project ID and sheet SHA256 from a resource name.
(name string)
| 437 | |
| 438 | // GetProjectResourceIDSheetSha256 returns the project ID and sheet SHA256 from a resource name. |
| 439 | func GetProjectResourceIDSheetSha256(name string) (string, string, error) { |
| 440 | tokens, err := GetNameParentTokens(name, ProjectNamePrefix, SheetIDPrefix) |
| 441 | if err != nil { |
| 442 | return "", "", err |
| 443 | } |
| 444 | return tokens[0], tokens[1], nil |
| 445 | } |
| 446 | |
| 447 | // GetProjectIDWorksheetID returns the project ID and worksheet ID (resource_id) from a resource name. |
| 448 | // Format: projects/{project}/worksheets/{worksheet} |
no test coverage detected