dependencies: migrate go-genproto to google-cloud-go

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2022-12-08 11:26:51 +01:00
parent eff3dd8aea
commit 9b1551e76a
28 changed files with 49 additions and 48 deletions

View file

@ -11,7 +11,7 @@ import (
"errors"
"regexp"
"google.golang.org/genproto/googleapis/cloud/compute/v1"
"cloud.google.com/go/compute/apiv1/computepb"
)
var numericProjectIDRegex = regexp.MustCompile(`^\d+$`)
@ -21,7 +21,7 @@ func (c *Client) canonicalProjectID(ctx context.Context, project string) (string
if !numericProjectIDRegex.MatchString(project) {
return project, nil
}
computeProject, err := c.projectAPI.Get(ctx, &compute.GetProjectRequest{Project: project})
computeProject, err := c.projectAPI.Get(ctx, &computepb.GetProjectRequest{Project: project})
if err != nil {
return "", err
}