Skip to content

Googledriveendpoints#43776

Open
ymishrapalo1992 wants to merge 3 commits intodemisto:contrib/ymishrapalo1992_googledriveendpoints-1from
ymishrapalo1992:googledriveendpoints
Open

Googledriveendpoints#43776
ymishrapalo1992 wants to merge 3 commits intodemisto:contrib/ymishrapalo1992_googledriveendpoints-1from
ymishrapalo1992:googledriveendpoints

Conversation

@ymishrapalo1992
Copy link
Copy Markdown

@ymishrapalo1992 ymishrapalo1992 commented Apr 6, 2026

PR: Add Google Drive File Move and File Create Remediation Commands

Summary

Adds 2 new commands to the GoogleDrive integration for SaaS Security remediation workflows (System Quarantine steps 4 & 5), completing full 8/8 endpoint coverage.

New Commands

  • google-drive-file-move — Moves a file between folders via PATCH /drive/v3/files/{fileId} with addParents/removeParents query parameters. Used for System Quarantine step 4.
  • google-drive-file-create — Creates metadata-only files/folders via POST /drive/v3/files (no media upload). Used for System Quarantine step 5 — quarantine folders and tombstone placeholders.

Changed Files (7 — Integration only)

File Change
Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py Added file_move_command(), file_create_command(), URL suffixes, and main() routing
Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml Added YAML command definitions for both new commands
Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive_test.py Added 3 unit tests (file move, folder create, tombstone create)
Packs/GoogleDrive/Integrations/GoogleDrive/README.md Added documentation sections for both new commands
Packs/GoogleDrive/Integrations/GoogleDrive/command_examples.txt Added CLI examples for both new commands
Packs/GoogleDrive/Integrations/GoogleDrive/test_data/file_move_response.json New file — mock API response fixture
Packs/GoogleDrive/Integrations/GoogleDrive/test_data/file_create_response.json New file — mock API response fixture

Validation

All demisto-sdk pre-commit checks passed (20/20): format, validate, pylint, mypy, pytest, ruff, xsoar-lint, secrets, coverage, markdownlint.

relates: https://jira-dc.paloaltonetworks.com/browse/CIAC-16476

@content-bot content-bot added Contribution Thank you! Contributions are always welcome! External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack labels Apr 6, 2026
@content-bot content-bot changed the base branch from master to contrib/ymishrapalo1992_googledriveendpoints-1 April 6, 2026 12:32
@content-bot content-bot requested a review from kamalq97 April 6, 2026 12:32
@content-bot
Copy link
Copy Markdown
Contributor

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @kamalq97 will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

@content-bot
Copy link
Copy Markdown
Contributor

Hi @ymishrapalo1992, thanks for contributing to the XSOAR marketplace. To receive credit for your generous contribution please follow this link.

@content-bot
Copy link
Copy Markdown
Contributor

🤖 AI-Powered Code Review Available

Hi @kamalq97, you can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @marketplace-ai-reviewer start review - Initiate a full AI code review
  • @marketplace-ai-reviewer re-review - Incremental review for new commits

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels Apr 6, 2026
@JudahSchwartz JudahSchwartz removed the request for review from kamalq97 April 9, 2026 12:32
@JudahSchwartz JudahSchwartz requested a review from YuvHayun April 9, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants