Skip to content

Commit

Permalink
feat(containeranalysis): add GetVulnerabilityOccurrencesSummary RPC
Browse files Browse the repository at this point in the history
I hand patched this change in because this "generated" client is
very hand tailored. I also took the opportunity to update the client
in general to match other generated practices today.

Fixes: googleapis#10517
  • Loading branch information
codyoss committed Jul 10, 2024
1 parent 8ecc4e9 commit 3ed533d
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 34 deletions.
82 changes: 63 additions & 19 deletions containeranalysis/apiv1/container_analysis_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions containeranalysis/apiv1/container_analysis_client_example_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 5 additions & 15 deletions containeranalysis/apiv1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,13 @@
// please visit godoc.org/cloud.google.com/go.
package containeranalysis // import "cloud.google.com/go/containeranalysis/apiv1"

import (
"context"
var versionClient string

"google.golang.org/grpc/metadata"
)

func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context {
out, _ := metadata.FromOutgoingContext(ctx)
out = out.Copy()
for _, md := range mds {
for k, v := range md {
out[k] = append(out[k], v...)
}
func getVersionClient() string {
if versionClient == "" {
return "UNKNOWN"
}
return metadata.NewOutgoingContext(ctx, out)
return versionClient
}

// DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Expand All @@ -55,5 +47,3 @@ func DefaultAuthScopes() []string {
"https://www.googleapis.com/auth/cloud-platform",
}
}

var versionClient = "20220222"

0 comments on commit 3ed533d

Please sign in to comment.