Repository navigation
Compute API v1: xxxResourceName.parse throws ValidationException #3604
Copy link
Copy link
Closed
googleapis/gapic-generator
#2478Labels
api: computeIssues related to the Compute Engine API.Issues related to the Compute Engine API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Activity
- addedapi: computeIssues related to the Compute Engine API.Issues related to the Compute Engine API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on Aug 24, 2018 - addedtriage meI really want to be triaged.I really want to be triaged.
on Aug 25, 2018 - addedpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
on Aug 27, 2018 - removedtriage meI really want to be triaged.I really want to be triaged.
on Aug 27, 2018 @andreamlin I added
priotity: p2to remove thetriage melabel. Feel free to bump to p1 if you find it necessary.- added a commit that references this issue
on Dec 11, 2018 - added a commit that references this issue
on Dec 13, 2018 - added a commit that references this issue
on Mar 9, 2026
Metadata
Metadata
Assignees
Labels
api: computeIssues related to the Compute Engine API.Issues related to the Compute Engine API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Currently all
parse()methods inxxxResourceNameclasses expect that input string will be formatted likeprojects/{project}/..., but data returned from APIs contains URL prefixes likehttps://www.googleapis.com/compute/v1/projects/...and as result parsing fails withValidationException.Example
Receive instance details where:
Then when trying to parse it with
ProjectZoneName.parse(instance.zone)will cause the following exception: