Skip to content

Commit

Permalink
mockgcp: update readme for renaming of new services
Browse files Browse the repository at this point in the history
If adding a new API not under google/cloud, we may need a few new sed
lines.
  • Loading branch information
justinsb committed Feb 5, 2024
1 parent 4f00864 commit 25ce9b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mockgcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<servicename>`.

Copying one of the existing ones. `mockprivateca` is a reasonable basic one. Keep the files names.go and service.go,
Expand Down

0 comments on commit 25ce9b5

Please sign in to comment.