Skip to content

Commit

Permalink
mockgcp: more updates
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pana <[email protected]>
  • Loading branch information
acpana committed Dec 13, 2024
1 parent 55164ad commit 758f3f5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mockgcp/mockbigqueryanalyticshub/analyticshub.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,24 @@ func (a *analyticsHubServer) UpdateListing(ctx context.Context, request *pb.Upda
switch path {
case "displayName":
obj.DisplayName = request.Listing.GetDisplayName()
case "description":
obj.Description = request.Listing.GetDescription()
case "documentation":
obj.Documentation = request.Listing.GetDocumentation()
case "primaryContact":
obj.PrimaryContact = request.Listing.GetPrimaryContact()
case "discoveryType":
obj.DiscoveryType = request.Listing.GetDiscoveryType().Enum()
case "publisher":
obj.Publisher = request.Listing.GetPublisher()
case "dataProvider":
obj.DataProvider = request.Listing.GetDataProvider()
case "requestAccess":
obj.RequestAccess = request.Listing.GetRequestAccess()
case "source":
obj.Source = request.Listing.GetSource()
case "categories":
obj.Categories = request.Listing.GetCategories()
default:
return nil, status.Errorf(codes.InvalidArgument, "field %q is not yet handled in mock", path)
}
Expand Down

0 comments on commit 758f3f5

Please sign in to comment.