From f16cf71e1e1b86c0a6eddf1b77547d6e2f0e932f Mon Sep 17 00:00:00 2001 From: Jason Vigil Date: Thu, 14 Nov 2024 21:14:08 +0000 Subject: [PATCH] fix: Update apigee proto definition to fix naming conflict When trying to generate protos, got the following error ``` --grpc-gateway_out: ProjectsServer.ProvisionOrganizationProject: project is a protobuf message type. Protobuf message types cannot be used as path parameters, use a scalar value type (such as string) instead: ``` It seems to be due to a naming conflict around "project" which is allowed in the JSON API definition, but causes issues when converting. Probably the easiest fix is to manually make this update. --- mockgcp/apis/mockgcp/cloud/apigee/v1/service.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mockgcp/apis/mockgcp/cloud/apigee/v1/service.proto b/mockgcp/apis/mockgcp/cloud/apigee/v1/service.proto index c9b41495f3..a12a43aec7 100644 --- a/mockgcp/apis/mockgcp/cloud/apigee/v1/service.proto +++ b/mockgcp/apis/mockgcp/cloud/apigee/v1/service.proto @@ -2623,7 +2623,7 @@ service ProjectsServer { // Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial. rpc ProvisionOrganizationProject(ProvisionOrganizationProjectRequest) returns (.google.longrunning.Operation) { option (google.api.http) = { - post: "/v1/{project=projects/*}:provisionOrganization" + post: "/v1/{name=projects/*}:provisionOrganization" body: "project" }; };