Skip to content

Commit

Permalink
chore(deps): bump google.golang.org/api from 0.101.0 to 0.109.0
Browse files Browse the repository at this point in the history
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.101.0 to 0.109.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](googleapis/google-api-go-client@v0.101.0...v0.109.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and ericwenn committed Feb 12, 2023
1 parent 14f2517 commit 3f2a738
Show file tree
Hide file tree
Showing 30 changed files with 290 additions and 281 deletions.
4 changes: 2 additions & 2 deletions cmd/example-server/spanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (

"cloud.google.com/go/spanner"
database "cloud.google.com/go/spanner/admin/database/apiv1"
"cloud.google.com/go/spanner/admin/database/apiv1/databasepb"
instance "cloud.google.com/go/spanner/admin/instance/apiv1"
"cloud.google.com/go/spanner/admin/instance/apiv1/instancepb"
"cloud.google.com/go/spanner/spansql"
"go.einride.tech/iam/iamexample"
"go.einride.tech/iam/iamspanner"
"google.golang.org/api/option"
databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1"
instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1"
"google.golang.org/grpc"
)

Expand Down
13 changes: 7 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ module go.einride.tech/iam
go 1.18

require (
cloud.google.com/go/iam v0.8.0
cloud.google.com/go/longrunning v0.3.0
cloud.google.com/go/spanner v1.39.0
cloud.google.com/go/spanner v1.41.0
github.com/google/cel-go v0.13.0
go.einride.tech/aip v0.60.0
go.einride.tech/spanner-aip v0.49.0
google.golang.org/api v0.102.0
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6
google.golang.org/api v0.109.0
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef
google.golang.org/grpc v1.52.0
google.golang.org/protobuf v1.28.1
gotest.tools/v3 v3.4.0
)

require (
cloud.google.com/go v0.107.0 // indirect
cloud.google.com/go/compute v1.12.1 // indirect
cloud.google.com/go/compute/metadata v0.2.1 // indirect
cloud.google.com/go/compute v1.14.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
Expand All @@ -30,7 +31,7 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/stoewer/go-strcase v1.2.1 // indirect
go.opencensus.io v0.24.0 // indirect
Expand Down
26 changes: 14 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww=
cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I=
cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0=
cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU=
cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48=
cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0=
cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo=
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk=
cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE=
cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs=
cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc=
cloud.google.com/go/spanner v1.39.0 h1:L1APD/LPG+mO54Ts9L+mzwjCfgX8dHjpEObRJAguloE=
cloud.google.com/go/spanner v1.39.0/go.mod h1:c/JPjc8hsRXHxfgLaxseptOVNHeC4e78xZ7+ajkN/Gk=
cloud.google.com/go/spanner v1.41.0 h1:NvdTpRwf7DTegbfFdPjAWyD7bOVu0VeMqcvR9aCQCAc=
cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 h1:yL7+Jz0jTC6yykIK/Wh74gnTJnrGr5AyrNMXuA0gves=
Expand Down Expand Up @@ -76,8 +78,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs=
github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg=
github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ=
github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8=
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
Expand Down Expand Up @@ -188,8 +190,8 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
google.golang.org/api v0.102.0 h1:JxJl2qQ85fRMPNvlZY/enexbxpCjLwGhZUtgfGeQ51I=
google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo=
google.golang.org/api v0.109.0 h1:sW9hgHyX497PP5//NUM7nqfV8D0iDfBApqq7sOh1XR8=
google.golang.org/api v0.109.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=
Expand All @@ -198,8 +200,8 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 h1:a2S6M0+660BgMNl++4JPlcAO/CjkqYItDEZwkoDQK7c=
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef h1:uQ2vjV/sHTsWSqdKeLqmwitzgvjMl7o4IdtHwUDXSJY=
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
Expand Down
6 changes: 3 additions & 3 deletions iamannotations/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package iamannotations
import (
"testing"

"cloud.google.com/go/iam/admin/apiv1/adminpb"
iamv1 "go.einride.tech/iam/proto/gen/einride/iam/v1"
"google.golang.org/genproto/googleapis/iam/admin/v1"
"google.golang.org/genproto/googleapis/rpc/errdetails"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/testing/protocmp"
Expand All @@ -20,7 +20,7 @@ func TestValidateRoles(t *testing.T) {
{
name: "valid",
roles: &iamv1.PredefinedRoles{
Role: []*admin.Role{
Role: []*adminpb.Role{
{
Name: "roles/foo.barBaz",
Title: "Foo Bar Baz",
Expand All @@ -40,7 +40,7 @@ func TestValidateRoles(t *testing.T) {
{
name: "invalid name format",
roles: &iamv1.PredefinedRoles{
Role: []*admin.Role{
Role: []*adminpb.Role{
{
Name: "foobarbaz",
Title: "Foo Bar Baz",
Expand Down
4 changes: 2 additions & 2 deletions iamexample/iamexampledata/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package iamexampledata
import (
"context"

"cloud.google.com/go/iam/apiv1/iampb"
"cloud.google.com/go/spanner"
"go.einride.tech/aip/resourcename"
"go.einride.tech/iam/iamexample/iamexampledb"
"go.einride.tech/iam/iamresource"
iamexamplev1 "go.einride.tech/iam/proto/gen/einride/iam/example/v1"
"google.golang.org/genproto/googleapis/iam/v1"
)

// BootstrapRootAdmin bootstraps an IAM database with RootAdminMember as iamexamplev1.FreightServiceServer root admin.
Expand Down Expand Up @@ -62,7 +62,7 @@ func InitializeResources(ctx context.Context, server iamexamplev1.FreightService
return err
}
}
for _, request := range []*iam.SetIamPolicyRequest{
for _, request := range []*iampb.SetIamPolicyRequest{
EinrideSetIamPolicyRequest(),
EinrideGothenburgOfficeSetIamPolicyRequest(),
EinrideBatcaveSetIamPolicyRequest(),
Expand Down
34 changes: 18 additions & 16 deletions iamexample/iamexampledata/policy.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package iamexampledata

import "google.golang.org/genproto/googleapis/iam/v1"
import (
"cloud.google.com/go/iam/apiv1/iampb"
)

// Example IAM policy members.
const (
Expand All @@ -10,13 +12,13 @@ const (
EinrideBatcaveWorkerMember = "user:einride-batcave-worker"
)

// EinrideSetIamPolicyRequest returns an iam.SetIamPolicyRequest for the
// EinrideSetIamPolicyRequest returns an iampb.SetIamPolicyRequest for the
// Einride shipper resource.
func EinrideSetIamPolicyRequest() *iam.SetIamPolicyRequest {
return &iam.SetIamPolicyRequest{
func EinrideSetIamPolicyRequest() *iampb.SetIamPolicyRequest {
return &iampb.SetIamPolicyRequest{
Resource: Einride().Name,
Policy: &iam.Policy{
Bindings: []*iam.Binding{
Policy: &iampb.Policy{
Bindings: []*iampb.Binding{
{
Role: "roles/freight.admin",
Members: []string{EinrideAdminMember},
Expand All @@ -26,13 +28,13 @@ func EinrideSetIamPolicyRequest() *iam.SetIamPolicyRequest {
}
}

// EinrideGothenburgOfficeSetIamPolicyRequest returns an iam.SetIamPolicyRequest for the
// EinrideGothenburgOfficeSetIamPolicyRequest returns an iampb.SetIamPolicyRequest for the
// Einride Gothenburg Office site resource.
func EinrideGothenburgOfficeSetIamPolicyRequest() *iam.SetIamPolicyRequest {
return &iam.SetIamPolicyRequest{
func EinrideGothenburgOfficeSetIamPolicyRequest() *iampb.SetIamPolicyRequest {
return &iampb.SetIamPolicyRequest{
Resource: EinrideGothenburgOffice().Name,
Policy: &iam.Policy{
Bindings: []*iam.Binding{
Policy: &iampb.Policy{
Bindings: []*iampb.Binding{
{
Role: "roles/freight.editor",
Members: []string{EinrideGothenburgFreightPlannerMember},
Expand All @@ -42,13 +44,13 @@ func EinrideGothenburgOfficeSetIamPolicyRequest() *iam.SetIamPolicyRequest {
}
}

// EinrideBatcaveSetIamPolicyRequest returns an iam.SetIamPolicyRequest for the
// EinrideBatcaveSetIamPolicyRequest returns an iampb.SetIamPolicyRequest for the
// Einride Batcave site resource.
func EinrideBatcaveSetIamPolicyRequest() *iam.SetIamPolicyRequest {
return &iam.SetIamPolicyRequest{
func EinrideBatcaveSetIamPolicyRequest() *iampb.SetIamPolicyRequest {
return &iampb.SetIamPolicyRequest{
Resource: EinrideBatcave().Name,
Policy: &iam.Policy{
Bindings: []*iam.Binding{
Policy: &iampb.Policy{
Bindings: []*iampb.Binding{
{
Role: "roles/freight.viewer",
Members: []string{EinrideBatcaveWorkerMember},
Expand Down
34 changes: 17 additions & 17 deletions iamexample/server_iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ package iamexample
import (
"context"

"google.golang.org/genproto/googleapis/iam/admin/v1"
"google.golang.org/genproto/googleapis/iam/v1"
"cloud.google.com/go/iam/admin/apiv1/adminpb"
"cloud.google.com/go/iam/apiv1/iampb"
)

// SetIamPolicy implements iam.IAMPolicyServer.
// SetIamPolicy implements iampb.IAMPolicyServer.
func (s *Server) SetIamPolicy(
ctx context.Context,
request *iam.SetIamPolicyRequest,
) (*iam.Policy, error) {
request *iampb.SetIamPolicyRequest,
) (*iampb.Policy, error) {
return s.IAM.SetIamPolicy(ctx, request)
}

// GetIamPolicy implements iam.IAMPolicyServer.
// GetIamPolicy implements iampb.IAMPolicyServer.
func (s *Server) GetIamPolicy(
ctx context.Context,
request *iam.GetIamPolicyRequest,
) (*iam.Policy, error) {
request *iampb.GetIamPolicyRequest,
) (*iampb.Policy, error) {
return s.IAM.GetIamPolicy(ctx, request)
}

// TestIamPermissions implements iam.IAMPolicyServer.
// TestIamPermissions implements iampb.IAMPolicyServer.
func (s *Server) TestIamPermissions(
ctx context.Context,
request *iam.TestIamPermissionsRequest,
) (*iam.TestIamPermissionsResponse, error) {
request *iampb.TestIamPermissionsRequest,
) (*iampb.TestIamPermissionsResponse, error) {
return s.IAM.TestIamPermissions(ctx, request)
}

// ListRoles implements admin.IAMServer.
// ListRoles implements adminpb.IAMServer.
func (s *Server) ListRoles(
ctx context.Context,
request *admin.ListRolesRequest,
) (*admin.ListRolesResponse, error) {
request *adminpb.ListRolesRequest,
) (*adminpb.ListRolesResponse, error) {
return s.IAM.ListRoles(ctx, request)
}

// GetRole implements admin.IAMServer.
// GetRole implements adminpb.IAMServer.
func (s *Server) GetRole(
ctx context.Context,
request *admin.GetRoleRequest,
) (*admin.Role, error) {
request *adminpb.GetRoleRequest,
) (*adminpb.Role, error) {
return s.IAM.GetRole(ctx, request)
}
4 changes: 2 additions & 2 deletions iamexample/server_iam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"google.golang.org/genproto/googleapis/iam/v1"
"cloud.google.com/go/iam/apiv1/iampb"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"gotest.tools/v3/assert"
Expand All @@ -24,7 +24,7 @@ func (ts *serverTestSuite) testIAM(t *testing.T) {
fx.iam.AddPolicyBinding(t, "/", "roles/freight.admin", member)
got, err := fx.client.GetIamPolicy(
WithOutgoingMembers(ctx, member),
&iam.GetIamPolicyRequest{
&iampb.GetIamPolicyRequest{
Resource: "resources/foo",
},
)
Expand Down
Loading

0 comments on commit 3f2a738

Please sign in to comment.