feat: [PubSub] add Google Pub/Sub Schema Revision support #9
+205
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses a critical gap in the existing functionality of the Google Library in PHP by introducing support for managing schema revisions within Google Pub/Sub. Currently, this feature is missing, and this PR aims to rectify that by providing the ability to retrieve all revisions for a specific schema, as well as the capability to commit and delete these revisions.
Key Changes:
Schema Revision Retrieval: We've added a new method to the Google Library that allows users to retrieve all revisions associated with a particular schema. This enhancement makes it easier to track and manage schema changes over time.
Example Usage:
Commit and Delete Revisions: To provide comprehensive schema management, we've introduced methods for committing and deleting schema revisions. These functions empower users to control their schema history effectively.
Example Usage (Committing a Revision):
Benefits:
Improved Schema Management: Users can now effortlessly access, commit, and delete schema revisions, enhancing the overall schema management experience.
Comprehensive Control: This addition provides a holistic solution for handling schema revisions within Google Pub/Sub, ensuring better version control and traceability.
We believe that this PR will significantly improve the functionality and usability of the Google Library in PHP, making it a more powerful tool for developers working with Google Pub/Sub schemas. Your feedback and review on this PR are highly appreciated.