Skip to content

Commit

Permalink
feat: Add export config protos to API (#1196)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 468442481

Source-Link: googleapis/googleapis@154b410

Source-Link: googleapis/googleapis-gen@d49c3ee
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDQ5YzNlZTk0MDZmZWY2MDgyMDZkNTRlNDI1OWFmYTNjOWU4YzBjOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Aug 19, 2022
1 parent 4d4cb6a commit 96ca781
Show file tree
Hide file tree
Showing 126 changed files with 9,601 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.google.cloud.pubsublite.proto.DeleteReservationRequest;
import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest;
import com.google.cloud.pubsublite.proto.DeleteTopicRequest;
import com.google.cloud.pubsublite.proto.ExportConfig;
import com.google.cloud.pubsublite.proto.GetReservationRequest;
import com.google.cloud.pubsublite.proto.GetSubscriptionRequest;
import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest;
Expand Down Expand Up @@ -666,6 +667,7 @@ public void createSubscriptionTest() throws Exception {
.setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString())
.setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString())
.setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build())
.setExportConfig(ExportConfig.newBuilder().build())
.build();
mockAdminService.addResponse(expectedResponse);

Expand Down Expand Up @@ -712,6 +714,7 @@ public void createSubscriptionTest2() throws Exception {
.setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString())
.setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString())
.setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build())
.setExportConfig(ExportConfig.newBuilder().build())
.build();
mockAdminService.addResponse(expectedResponse);

Expand Down Expand Up @@ -758,6 +761,7 @@ public void getSubscriptionTest() throws Exception {
.setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString())
.setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString())
.setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build())
.setExportConfig(ExportConfig.newBuilder().build())
.build();
mockAdminService.addResponse(expectedResponse);

Expand Down Expand Up @@ -798,6 +802,7 @@ public void getSubscriptionTest2() throws Exception {
.setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString())
.setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString())
.setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build())
.setExportConfig(ExportConfig.newBuilder().build())
.build();
mockAdminService.addResponse(expectedResponse);

Expand Down Expand Up @@ -926,6 +931,7 @@ public void updateSubscriptionTest() throws Exception {
.setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString())
.setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString())
.setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build())
.setExportConfig(ExportConfig.newBuilder().build())
.build();
mockAdminService.addResponse(expectedResponse);

Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 96ca781

Please sign in to comment.