Repository navigation
Pass the documented ID to the path for RunIntegrationTaskAdmin and RunIntegrationTaskV2 - #1538
Open
qianeric-backup wants to merge 1 commit into
Open
qianeric-backup wants to merge 1 commit into
qianeric-backup wants to merge 1 commit into
Conversation
…nIntegrationTaskV2
Both operations document an id keyword, accept it into **kwargs and then drop it, so the
literal {} path placeholder is transmitted. The other three operations in the same route
family resolve the ID, and the Uber Class maps both operation IDs to ["id"] already -
only the Service Class side was never wired.
Validate the ID the way run_integration_task does and pass it as path_id.
qianeric-backup
marked this pull request as ready for review
December 1, 2026 06:31
qianeric-backup
requested review from
alhumaw,
crowdstrikedcs and
jshcodes
as code owners
December 1, 2026 06:31
This branch has not been deployed
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.
RunIntegrationTaskAdminandRunIntegrationTaskV2accept theidkeyword their docstrings document and then drop it. Both routes declareIDas a required path parameter, so the call is transmitted with the literal placeholder:RunIntegrationTask,UpdateIntegrationTaskandDeleteIntegrationTask(same file, same route family, sameIDdeclaration) resolve it, and so does the Uber Class for the same operation IDs:_util/_uber.pyalready mapsRunIntegrationTaskAdminandRunIntegrationTaskV2to["id"]; the Service Class side was never wired.Change
Both methods now validate the ID the way
run_integration_taskdoes and pass it aspath_id.run_integration_task_admin(id=42)/integration_tasks/%7B%7D/run/admin/integration_tasks/42/run/adminrun_integration_task_v2(id=42)/integration_tasks/%7B%7D/run/v2/integration_tasks/42/run/v2run_integration_task_admin()%7B%7D400result, no requestrun_integration_task(id=42)/integration_tasks/42/runupdate_integration_task(id=42)/integration_tasks/42delete_integration_task(id=42)/integration_tasks/42Not a breaking change: no public signature, keyword or return type moves.
Test
tests/test_aspm_path_id.pyis fully mocked (no credentials, no network). It asserts the transmitted URL for the keyword andparametersforms of both operations, the400refusal when the ID is missing, and the unchanged routes of the three siblings.