From 758f3f548495948df52426b38418596fdb64024e Mon Sep 17 00:00:00 2001 From: Alex Pana <8968914+acpana@users.noreply.github.com> Date: Fri, 13 Dec 2024 00:43:12 +0000 Subject: [PATCH] mockgcp: more updates Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com> --- .../mockbigqueryanalyticshub/analyticshub.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mockgcp/mockbigqueryanalyticshub/analyticshub.go b/mockgcp/mockbigqueryanalyticshub/analyticshub.go index f9a1c9f11a..eda4d09e39 100644 --- a/mockgcp/mockbigqueryanalyticshub/analyticshub.go +++ b/mockgcp/mockbigqueryanalyticshub/analyticshub.go @@ -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) }