feat: Add cancel subscription request and delete graph operation models#110
Merged
feat: Add cancel subscription request and delete graph operation models#110
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements new API models and endpoints to support cancel subscription requests with configurable parameters and a new delete graph operation for immediate graph deprovisioning.
Key Accomplishments
Cancel Subscription Request Model & API Updates
CancelSubscriptionRequestmodel (cancel_subscription_request.py): Introduces a structured request body for canceling organization subscriptions, enabling richer request semantics beyond simple endpoint calls.cancel_org_subscriptionAPI to accept and serialize the newCancelSubscriptionRequestmodel, replacing the previous minimal implementation with a more fully-featured request/response flow.Delete Graph Operation
DeleteGraphOpmodel (delete_graph_op.py): Defines the data model for tracking delete graph operations, supporting the immediate deprovision workflow.op_delete_graphAPI module (op_delete_graph.py): Implements the full API client surface for the delete graph operation endpoint, including synchronous and asynchronous variants with both parsed and raw HTTP response options (4 method variants total).Model Registry
models/__init__.pyto export the two new models (CancelSubscriptionRequest,DeleteGraphOp), ensuring they are available as part of the public client API surface.Breaking Changes
cancel_org_subscriptionAPI signature has changed to accommodate the newCancelSubscriptionRequestbody parameter. Callers that previously invoked this endpoint will need to update their calls to provide the request model.Testing Notes
op_delete_graphendpoint.Infrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/graph-immediate-deprovisionmainCo-Authored-By: Claude noreply@anthropic.com