Skip to content

feat(gcp): add Pub/Sub subscription management#105

Open
atharva-nagane wants to merge 1 commit intoc2siorg:mainfrom
atharva-nagane:feat/gcp-pubsub-subscriptions
Open

feat(gcp): add Pub/Sub subscription management#105
atharva-nagane wants to merge 1 commit intoc2siorg:mainfrom
atharva-nagane:feat/gcp-pubsub-subscriptions

Conversation

@atharva-nagane
Copy link
Copy Markdown
Contributor

@atharva-nagane atharva-nagane commented Mar 17, 2026

Closes #104

Summary

  • Adds gcp_pubsub_subscription.rs — the consumer-side complement to the existing
    gcp_notification_service.rs which only handles topics
  • 6 operations covering the full subscription lifecycle + message flow
  • No new dependencies; uses existing retrieve_token() auth helper

Operations

Method Endpoint
create_subscription PUT /v1/projects/{p}/subscriptions/{s}
delete_subscription DELETE /v1/projects/{p}/subscriptions/{s}
list_subscriptions GET /v1/projects/{p}/subscriptions
pull_messages POST /v1/projects/{p}/subscriptions/{s}:pull
acknowledge_messages POST /v1/projects/{p}/subscriptions/{s}:acknowledge
modify_push_config POST /v1/projects/{p}/subscriptions/{s}:modifyPushConfig

Test plan

  • cargo build passes with no new dependencies
  • cargo test gcp_pubsub runs without compile errors
  • Integration tests require GOOGLE_APPLICATION_CREDENTIALS set to a valid service account

@atharva-nagane atharva-nagane force-pushed the feat/gcp-pubsub-subscriptions branch from cd2adfb to 1d35377 Compare March 17, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add GCP Pub/Sub subscription management

1 participant