Skip to content

Commit

Permalink
feat: added support for force field for API and API version deletion (
Browse files Browse the repository at this point in the history
#35)

- [ ] Regenerate this pull request now.

docs: updated proto comments to align with the public documentation

Clients can now set the `force` field while sending delete request to allow cascade deletion of resources in the registry.

PiperOrigin-RevId: 468760464

Source-Link: googleapis/googleapis@b965a25

Source-Link: https://github.com/googleapis/googleapis-gen/commit/918d6fd0fb5419ed91f679a1b4f8fc5ae51affb7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTE4ZDZmZDBmYjU0MTllZDkxZjY3OWExYjRmOGZjNWFlNTFhZmZiNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Aug 22, 2022
1 parent d6d87bc commit 3371ba4
Show file tree
Hide file tree
Showing 84 changed files with 1,705 additions and 1,478 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<DeleteApiRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "force", request.getForce());
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down Expand Up @@ -453,6 +454,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<DeleteApiVersionRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "force", request.getForce());
return fields;
})
.setRequestBodyExtractor(request -> null)
Expand Down
Loading

0 comments on commit 3371ba4

Please sign in to comment.