Skip to content

Commit 3371ba4

Browse files
feat: added support for force field for API and API version deletion (#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
1 parent d6d87bc commit 3371ba4

File tree

84 files changed

+1705
-1478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1705
-1478
lines changed

java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/RegistryClient.java

+245-249
Large diffs are not rendered by default.

java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/HttpJsonRegistryStub.java

+2
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
273273
Map<String, List<String>> fields = new HashMap<>();
274274
ProtoRestSerializer<DeleteApiRequest> serializer =
275275
ProtoRestSerializer.create();
276+
serializer.putQueryParam(fields, "force", request.getForce());
276277
return fields;
277278
})
278279
.setRequestBodyExtractor(request -> null)
@@ -453,6 +454,7 @@ public class HttpJsonRegistryStub extends RegistryStub {
453454
Map<String, List<String>> fields = new HashMap<>();
454455
ProtoRestSerializer<DeleteApiVersionRequest> serializer =
455456
ProtoRestSerializer.create();
457+
serializer.putQueryParam(fields, "force", request.getForce());
456458
return fields;
457459
})
458460
.setRequestBodyExtractor(request -> null)

0 commit comments

Comments
 (0)