You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all parse() methods in xxxResourceName classes expect that input string will be formatted like projects/{project}/..., but data returned from APIs contains URL prefixes like https://www.googleapis.com/compute/v1/projects/... and as result parsing fails with ValidationException.
Then when trying to parse it with ProjectZoneName.parse(instance.zone) will cause the following exception:
ProjectZoneName.parse: formattedString not in valid format: Parameter "https://www.googleapis.com/compute/v1/projects/project-123/zones/europe-west3-c" must be in the form "projects/{project=*}/zones/{zone=*}"
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: