Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

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: googleapis/googleapis-gen@918d6fd
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTE4ZDZmZDBmYjU0MTllZDkxZjY3OWExYjRmOGZjNWFlNTFhZmZiNyJ9
  • Loading branch information
gcf-owl-bot[bot] committed Aug 22, 2022
1 parent 51be767 commit 01d3a88
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.

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

0 comments on commit 01d3a88

Please sign in to comment.