From 25ce9b508bcd4c59a8386554dc17dc07dba0322b Mon Sep 17 00:00:00 2001 From: justinsb Date: Thu, 1 Feb 2024 20:32:00 -0500 Subject: [PATCH] mockgcp: update readme for renaming of new services If adding a new API not under google/cloud, we may need a few new sed lines. --- mockgcp/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mockgcp/README.md b/mockgcp/README.md index d2fab1ee20..fe2d1889c9 100644 --- a/mockgcp/README.md +++ b/mockgcp/README.md @@ -32,7 +32,8 @@ Broadly the steps are: refer to your resource's API documentation to identify the service name, for example [privateca](https://cloud.google.com/certificate-authority-service/docs/reference/rest#service:-privateca.googleapis.com). Once you identify the service, find the proper path to the proto files, for example: `cloud/security/privateca/v1/*.proto`. Then replace the prefix `googleapis/google/` to `./third_party/googleapis/mockgcp/`, - and add into the Makefile. + and add into the Makefile. If you're adding an API outside of googleapis/google/cloud, + you may need to add commands to rename the API o mockgcp in [fixup-third-party.sh](fixup-third-party.sh] 1. Add a subdirectory called `mock`. Copying one of the existing ones. `mockprivateca` is a reasonable basic one. Keep the files names.go and service.go,